Record Producer Multiple Checkbox label mandatory

Sam Ogden
Tera Guru

Hi All,

I have the following label and checkboxes on a record producer:

find_real_file.png

These appear based on the answer of another variable.   I need the label to be mandatory when these variables appear, but if any of the checkboxes are ticked for it to no longer be mandatory.   This needs to work so if any or all or anything inbetween are ticked.

I've been trying to achieve this through UI Policy but have been struggling, is this possible using this or do I need to write a catalog client script?

Any help on this is greatly appreciated.

Thanks

Sam

1 ACCEPTED SOLUTION

Hi,



the idea is correct the place to use   wrong, use it on a catalog ui policy as already mentioned.



better approach using conditions to work if the   current   value is not default value. Eg. false is default for cert field, i would use condition as cert is not false.


View solution in original post

14 REPLIES 14

Hi Sam,



In that case, you just need to create a Catalog UI policy with Applies To = Catalog Item and Catalog Item=name of your catalog item.




find_real_file.png



Save it. Then create a UI policy action for this UI policy, select the variable name and set Mandatory to true.


Below snapshot is just for reference, you need to put actual value for variable name



find_real_file.png




Raj


Hi Raj,



Thanks for the above.   This is what I have been trying, but I am having difficulty creating the condition for this to work.



find_real_file.png


find_real_file.png



cod_affected is the label variable that has the question above the checkboxes.   I am setting the label to be mandatory, but I am struggling on the condition I need to create to cater so that when any of the checkboxes are selected then the label is no longer mandatory.



As mentioned the label and checkboxes only appear when there is the answer documents in another variable.



Thanks


can you please check if reverse if true is set false? if yes set true.


Hi Sam,



I do not think you need to set any condition for this.


You only need add UI policy action as I described. Catalog UI policy run on form load and the field will be mandatory.




Raj


Hi Raj,



Thanks for the above.   I need some condition as the label is not always visible.



I have the following Catalog UI policy



find_real_file.png


find_real_file.png


This makes the label and checkboxes display



I then created another Catalog UI Policy which was intended to set when the label field would be mandatory.   Therefore I need a condition to say that the label becomes mandatory when the label become visible i.e. when inc_rel_to = documentation and that it is only mandatory when all the checkboxes are false.   If any of the checkboxes become true then it is no longer mandatory.



find_real_file.png