Determining URL on UI Action condition

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 09:02 AM
Hello,
I'm trying to create an UI Action that only displays if the URL stack contains certain text. IE, I only want this UI Action available if they were coming/going to a certain page.
I've tried using RP.getReferringURL() and gs.getUrlOnStack(), both of which work, but also create the error "Action not authorized" after the action is submitted. Error goes away when I remove them from the condition. Apparently the condition is checked up front but also when it's executed, at which point it no longer seems to have access to the RP/gs functions. Any thoughts?
Thanks!
Jeremy
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 10:45 AM
Hi Jeremy,
How about the client script route to hide the ui action?
Thanks
Srinivas

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 12:41 PM
Certainly a solid option, but would prefer to find something that works in a single UI Action and avoid a multi-element solution.