I am using UI rule setfieldrequired(true) in following scenario.
There are fields ABC and XYZ, I want in dependencies section ABC is NULL, Status = Active (Lite)... Rules are on page load and field change event...
Per dependencies XYZ should get required.
I have implemented the same and able to get XYZ as required per dependencies.
Issue that I am facing is, if I am not putting any value in XYZ field and try to process the request further or saving it, system allows me to do so but it should not happen because we have XYZ field as required and if it is blank, I should not be able to save it or process the request.
Any idea, why it is happening? Am I missing something?
Just to update you that field is getting required if I am passing NULL in dependency field (ABC) but if I do not fill any value for REQUIRED field XYZ (Field got required per rule) and try to save or process the request further, system allows me to do so but IT SHOULD HAPPEN AND SYSTEM SHOULD THROW A MESSAGE TO FILL REQUIRED FIELD VALUE.
Hope you are clear on my doubt. Please advise if it is an expected behavior or I am doing something wrong.
It seems like I didn't explain my issue properly. Let me start it again.
I have created two rules, RULE1 and RULE2. RULE1 works on FIELD CHANGE EVENT and RULE2 works on PAGE LOAD EVENT. See attached for description.
In RULE1, I have mentioned three fields in dependency section and applying UI RULE SETFIELDREQUIRED(true) so field mentioned in RESULT section should get REQUIRED.
Same thing I am doing in RULE2 but here it is on PAGE LOAD EVENT.
Both the rules are working fine for RESULT field and field mentioned in RESULT FIELDS section is getting required (able to see * along with field).
Issue is : If I am not filling any value for RESULT FIELD i.e. Policy 564 Architecture & Significance and trying to save the request or process the request to further status, system should not allow me to process further and should throw message to fill value for Policy 564 Architecture & Significance required field but I am not getting any message and able to save the request or process the request to further status. Any idea WHY?