Policy Automation for B2C Service

Get Involved. Join the Conversation.

Topic

    Kalaimagal Eswaran
    Field Update By Changing Another Field
    Topic posted October 21, 2019 by Kalaimagal EswaranBlue Ribbon: 750+ Points 
    28 Views, 2 Comments
    Title:
    Field Update By Changing Another Field
    Summary:
    Update Interview Field
    Content:

    Hi,

    I have a requirement in Policy Modeling while changing Postcode value I have to change CRM_ID value.  In this below code I can only edit the value of Postcode. I can't change the value of CRM_ID.

    In Modeling for both fields name property added (Postcode & CRM_ID).

    Can anyone please help me to solve this issue.

     

    Thanks,

    Kalaimagal Eswaran

    Version:
    19B
    Code Snippet:

    Comment

     

    • Annie Fisher

      Hiya,

      I've had this issue in the past.  I could not use the setInputValue method on a field that was not on the same screen, which is what you're trying to do.

      What I did to get around this was add the input field CRM_ID to the bottom of the same screen that has the Postcode field on it, and set its visibility property to Shown Never.  If unable to set the visibility property this way I would use an extension to do it via CSS.

      Hope this helps,

      Annie

    • Andrew Higginbottom

      Since 19A you can make any attribute available for your extensions on any page, see

      http://documentation.custhelp.com/euf/assets/devdocs/cloud19c/PolicyAutomation/en/Default.htm#Guides/Developer_Guide/Web_Interviews/Styles_and_scripts/Allow_interview_extensions_access_data.htm

      UPDATE: Sorry, this provides read-only access so you won't be able to use setValue on those attributes.