UI Policy

shubhi211
Tera Guru

There is Catalog item and under that there is 4 fields:

Field 1:  Are you onboarding a Hitachi Employee? (Select Box) 

option 1: YES

option 2: NO

Field 2: Select Company's Division (Select Box)

option 1: AB

option 2: CD

option 3: other

Field 3: Please outline alternate Company's Division (Single Line Text)

Field 4: Please provide the Hitachi email address of the New Employee (Single Line Text)

Conditions to be followed

if: Are you onboarding a Hitachi Employee -> Yes

Show fields: Select Company's Division, 

Show fields: Please provide the Hitachi email address of the New Employee

 

if: Are you onboarding a Hitachi Employee -> Yes

   if: Select Company's Division -> Other

         Show Fields: Please outline alternate Company's Division

Show fields: Please provide the Hitachi email address of the New Employee

 

if: Are you onboarding a Hitachi Employee -> Yes

   if: Select Company's Division -> AB, CD

Show fields: Please provide the Hitachi email address of the New Employee

 

UI Policy.png

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @shubhi211 

 

Where you stuck?  It's look easy and straight forward. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

shubhi211
Tera Guru

UI Policy used:

Ui policy 1: Alternate email id disable 

Condition (Not Given)

UI Action: please_outline_alternate_company_division    Visible -> False

 

UI Policy2: if onboarding is YES and Company division is Other

Condition: Are you onboarding a Hitachi Employee -> is -> Yes

    AND      Select Company's Division ->is -> None 

    OR         Select Company's Division ->is -> AB

    OR         Select Company's Division ->is -> CD

UI Action: please_outline_alternate_company_division    Visible -> False

 

UI Policy3: if onboarding is NO and Company division is Other

Condition: Are you onboarding a Hitachi Employee -> is -> NO

or Are you onboarding a Hitachi Employee -> is -> NONE

 

UI Action: Please provide the Hitachi email address of the New Employee    Visible -> False

Select Company division  Visible -> False

---------------------------------------------------------------------------------------------

But issue is: OnLoading of form it is working Fine, but for testing if we are checking different condition

After all yes

then after selecting -> No -> Are you onboarding

then Please outline alternate Olympus Division field is showing but this should be hidden

 

"There are multiple UI Policies with the same Order for this field - their run order is not predictable:"

 

Hi @shubhi211 ,

 

The ui policy 1 and 2 might be conflicting when you select No because reverse if false will be checked so try one thing for all the ui policy open the ui action and for each select Clear the field value 

swathisarang98_0-1716468138392.png

 

let me know if this is works for you or not.

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

Hi @shubhi211 

 

please share screenshot of your UI policy, seems 2 policies are conflicting with each other. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************