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

do one thing, you have to identify here which ui policy is creating an issue. 

 

Deactivate two UI policy and set active one ui policy and test the first ui policy condition is working fine or not, then activate other one and test both UI policy condition and see if that is working or not, so one test 3rd one . 

 

see which one is giving you an issue here. 

I made UI Policy which u_wi_update = "1:xxx" || "2:xxx" is true, other two is false.  firstly I choose u_wi_update = "1:xxx", and make states= closed, it check 4 fields, but if I change states =open, now it not meet the condition, but it still check those 4 fields, changing u_wi_update from  "1:xxx" to "3:xxx"  still check. so, that's where it went wrong.

just confirming , reverse if false has set as true ?

yes , it is true. yesterday, I achieved it by using Client Script, just writing many codes. it's better to use UI Policy if it is possible.

Glad you solved it.

this is bit strange . it should work with UI Policy as well. 

 

did you try to make other ui policy as true and rest of two are active false ? other one is also creating an issue ?

have you written any script in UI Policy ? 

i am assuming here there is not other ui policy which try hide the mandatory fields?