- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello,
I have an HTML variable that is updated via a Catalog UI Policy. An ajax call is utilized to get a URL from the server and format that as HTML code that is displayed to the end user in the catalog item. When the user clicks the link it takes them to another page or catalog item in the Employee Center. I would like to stop the 'Leave page' modal from appearing and have the current tab take them to the destination.
After doing some research I have attempted the following but none have solved the issue:
1) After the HTML variable is updated with g_form.setValue, I added '
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I wanted to provide a quick update on this in case someone else is researching the same issue I had. After doing some more analysis, Google AI suggested adding this line of code after the HTML variable is updated:
g_form.$private.userState.clearModifiedFields();
Including this in the script now prevents the 'Leave page' modal from showing on the screen when the user clicks the hyperlink.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I wanted to provide a quick update on this in case someone else is researching the same issue I had. After doing some more analysis, Google AI suggested adding this line of code after the HTML variable is updated:
g_form.$private.userState.clearModifiedFields();
Including this in the script now prevents the 'Leave page' modal from showing on the screen when the user clicks the hyperlink.