Determining URL on UI Action condition

jeremy_gardner
Tera Expert

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

2 REPLIES 2

srinivasthelu
Tera Guru

Hi Jeremy,



How about the client script route to hide the ui action?



Thanks


Srinivas


Certainly a solid option, but would prefer to find something that works in a single UI Action and avoid a multi-element solution.