The CreatorCon Call for Content is officially open! Get started here.

true/false ui action

nestoracevedo
Mega Contributor

Hello Everyone,

I am creating a UI Action that is dependent on the choice of a checkbox.

When I submit the request, I leave the checkbox unchecked, I want it to go to Schedule status, instead it keeps going to Estimate Approval.

What am I doing wrong?

find_real_file.png

1 ACCEPTED SOLUTION

Can you just try to remove the quotes from false keyword and try, let's see if this helps.


View solution in original post

12 REPLIES 12

SanjivMeher
Kilo Patron
Kilo Patron

Remove the space in curent. u_sow_status and also action.setRedirectURL(current). And move action.setRedirectURL(current) to line 4, after current.update();



Please mark this response as correct or helpful if it assisted you with your question.

I updated it the way you said.



It did not work still. I provided the new code below.



find_real_file.png


Great. Can you add one more line.



on line 1, gs.addInfomessage('My current.u_estimate_approval_needed is -- '+current.u_estimate_approval_needed);



Let me know, what message you get on your screen



Please mark this response as correct or helpful if it assisted you with your question.

I did not get a message when I submitted the request.



The request stayed in the same status (instead of moving forward) and it also backed me out of the request (instead of staying on it).



I am providing the updated code below


find_real_file.png