UI Condition Action

Sam Jae
Tera Contributor

Hi, 

I have a UI Action button that is called "Send For Internal Review" I only want it to load when the "Report Status" variable is changed to "Due" 


The script I have in the condition is (current.reportstatus=="Due") but that is not working and neither is anything else I am trying. 

Please help

1 ACCEPTED SOLUTION

Let me guess your testing scenario: when you got into the Default Report form to create a new record, the Report Status was not Due, we are seeing Due selected there in your screenshot because you clicked the drop down and selected Due. And you expect to see button to show up at this moment?

If that's the case, please note the condition runs at server side. Your change without saving the record won't execute the condition

View solution in original post

8 REPLIES 8

JimMarciano
Tera Contributor

Hi Sam,

 

Could you please share your UI Action configuration?

 

Best Regards,

Jim

Hi, here is what it looks like right now! This is what it looks like right nowThis is what it looks like right nowScreenshot (5).png

JimMarciano
Tera Contributor

Add an action name and uncheck the show insert checkbox.
I recommend removing the () from the condition, keeping only current.reportstatus=="Due"

You need also to add the onclick function and the script. to test add this
onclick: executeFunction();

Script:
function executeFunction(){

gs.addErrorMessage('It is a test');

}

 

If you think my answers are useful for you, I would appreciate it if you could mark my answers as helpful. 

Best regards,

Jim

Sam Jae
Tera Contributor

Like this? Sorry if this is a dumb question. I just don't know why I can't figure it outScreenshot (9).png