UI policy script not working.

abhisek
Tera Contributor

I have written a UI Policy script on a date field but that is not working.

 

g_form.setDisplay('field_date', 'true');
 
Can anyone please help me out.
1 ACCEPTED SOLUTION

kkrushkov
Mega Sage

Hello, @abhisek  

Check the order; if a UI Policy applies the same actions to the same field and has the same or higher order, it won't take effect.
Also, if you need such a simple functionality, why not use UI policy actions instead?

kkrushkov_0-1711723297211.png

 

View solution in original post

5 REPLIES 5

SN_Learn
Kilo Patron
Kilo Patron

Hi @abhisek  ,

 

Please try the below:

SN_Learn_0-1711723321506.png

 

SN_Learn_1-1711723335918.png

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.