UI Policy to hide Choice Value based on something another field contains

Joshuu
Kilo Sage

Hi All,

I have a field on incident form as "follow up status" which is having 4 choices as below.

find_real_file.png

So, whenever this field changes to New, In progress and On Hold the incident state "Resolved" should be hidden.

find_real_file.png

I have tried the following UI Policy. It is working when the followup status is (New/In Progress/On Hold), I am able to hide the resolved choice from incident state without saving the form. If I save the form I can see the resolved state as normal.

And also it should be visible when the follow up state is completed. That is also not working. 

UI Policy condition:

find_real_file.png

Script in UI Policy:

find_real_file.png

 

Please correct me If I am wrong.

 

Thank you,

Priya.

 

1 ACCEPTED SOLUTION

Hi DVP,

I have set on load to TRUE, it is working for New, In Progress and On Hold.

But when it comes to completed it is working only when I change the follow up status from None to completed. It is not working when I change it from New to Completed, In progress to Completed, On Hold to Completed.

please suggestion what is wrong in this..

 

Thank you,

Priya. 

View solution in original post

8 REPLIES 8

dvp
Mega Sage
Mega Sage

On UI Policy set on Load to TRUE and try again

Hi DVP,

I have set on load to TRUE, it is working for New, In Progress and On Hold.

But when it comes to completed it is working only when I change the follow up status from None to completed. It is not working when I change it from New to Completed, In progress to Completed, On Hold to Completed.

please suggestion what is wrong in this..

 

Thank you,

Priya. 

in the else part of the script try

g_form.addOption('incident_state','6', 'Resolved');

Hi DVP,

Yes, it is working now. Thank you 🙂

 

Thanks,

Priya.