- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2018 02:35 PM
I have a strange issue that I can't figure out. I've added a field decoration that shows a small icon next to a field, and when someone hovers over that icon it displays a hover popup window (which is actually an iframe). Everything works fine on that front, but now when I click the update button on the form itself it redirects to the iframe url. I'm very perplexed why this would happen....
Here is the field decoration which points to the UI Macro called rm_enhancement_show_priority
Here is what the form looks like with the custom icon next to the field and the hover feature. Basically it's just a UI Macro which points to a UI Page using an iFrame within the UI Macro.
**The problem is when I click the Update button, the record is saved but it redirects the the main body frame of CMS to the UI Page which was shown in the iframe instead of going back to the list view.
Any help would be much appreciated.
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 08:19 AM
Thanks for the response, I tried a bunch of different things with iFrames to remove the history and nothing worked successfully. I was able to resolve the issue by overriding the global ui action for "Update" and simply redirecting back to the form after the save.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2018 01:42 AM
Hi,
The behavior you describe makes me think that your iframe has been considered as a new page loading and has been added to the history of your browser.
Then when click "update" ServiceNow want to go back to the previous page, which is no more your original page.
In your popup, we can see the "chrono" icon which make me think ServiceNow interpreted it in some way.
So maybe a thread like this:
https://stackoverflow.com/questions/821359/reload-an-iframe-without-adding-to-the-history
could be helpful to you (especially the "object" solution instead of an iframe?)
Nb: I have not experienced or tested all this. These are just my thoughts.
But I hope that helps you.
Regards,
Marc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 08:19 AM
Thanks for the response, I tried a bunch of different things with iFrames to remove the history and nothing worked successfully. I was able to resolve the issue by overriding the global ui action for "Update" and simply redirecting back to the form after the save.