We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

using UI Policy check field Mandatory, but sometimes it seems didn' t work

zhihong
Tera Contributor

hi experts,

I have a requirement , when both of the following conditions are met, it need to check some fields Mandatory. All of those fields Mandatory check is before  clicking update button.

1. states=closed;

2.when u_wi_update = 1-7, checking related fieldsfind_real_file.png

i want to use UI Policy to achieve it.

find_real_file.pngfind_real_file.png

find_real_file.pngfind_real_file.pngfind_real_file.pngfind_real_file.png

, but it always have some check errors.

for example, when i choose "1:xxxxxx", it check 4 fields Mandatory, it hasn't error , but if  i change to "3:xxxxxx" , it just check 1 fields.

find_real_file.pngfind_real_file.png

i don't know why . could anyone give some advise? thanks in advance.

19 REPLIES 19

zhihong
Tera Contributor

hi Harshvardhan,

My requirement is when states=closed(states field is a choice) and  u_wi_update = 1-7(u_wi_update is a reference field), then  check related fields Mandatory.

find_real_file.png

According to my requirement, I set  3 UI Policies. and all Order is 100.

However, it always have some check errors.

for example, when i choose u_wi_update = "1:xxxxxx", it check 4 fields Mandatory, it hasn't error , but if  i change to "3:xxxxxx" , it just check 1 fields. I don't know why

find_real_file.png

find_real_file.png

you used 3 ui policy , if yest then make the order 100 ,200 , 300 and see if that is working or not. 

zhihong
Tera Contributor

I change order 100 ,200 , 300 , still have problem .

firstly, I choose 1:xxxxx, it check 4 fields, then I change 3:xxx, it check 5 fields, change 4, it still check 5 fields.

quick question .

may i know what are the 3 ui policy is doing ? is it doing the same thing , to make field mandatory ? 

zhihong
Tera Contributor

yes. you can see my original question. I have pasted pictures.