Why is the behavior of custom JS on a Screen Set different on a webpage and preview mode in the UI Builder?
78 Views 0 Helpful

Question

Why is the behavior of custom JavaScript on a Screen-Set different on a webpage and preview mode in the UI Builder?

Product

  • Registration-as-a-Service (RaaS)

Details

Sometimes, when adding custom JavaScript that relies on element selection to perform actions upon, changes render differently in preview mode and on a webpage. 

Answer

This is likely due to element selection not being specific enough. The preview frame holds the template in memory and not in the DOM. It is best practice to start with the Gigya container when performing selections.

Was this article helpful?