Skip to main content

We're utilizing the Google API to search for an address and populate five read-only fields in Omni script if the address is found. If not, we're providing users with the option to manually enter the address via an LWC pop-up screen. After they've entered the address, we return to the Omni script. Although the fields are updating in JSON, the old values persist on the screen. How can we refresh the screen to display the new address data?

#Omnistudio
1 réponse
  1. 21 juin, 01:11

    If the JSON is being updated correctly, then the issue is likely related to the OmniScript UI not re-rendering after the LWC updates the data.

    A few things I'd check:

    •  Make sure the data is being updated through omniApplyCallResp() or another supported OmniScript API. 
    •  Verify whether the read-only fields are bound directly to the updated JSON node. 
    •  Some OmniScript elements don't automatically refresh when data changes outside their lifecycle. In those cases, navigating to the next step and back often confirms whether it's a rendering issue rather than a data issue. 
    •  If you're using a custom LWC, you may need to trigger a refresh/re-render after updating the OmniScript data. 

    If the values appear correctly in the OmniScript JSON but not on screen, focus on how those specific read-only fields are being rendered and whether they're re-evaluating their data source after the update.

0/9000