- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2017 03:24 AM
Hi All,
I have the following label and checkboxes on a record producer:
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2017 05:15 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2017 04:57 AM
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.
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
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2017 05:28 AM
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2017 05:41 AM
can you please check if reverse if true is set false? if yes set true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2017 10:27 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2017 08:02 AM
Hi Raj,
Thanks for the above. I need some condition as the label is not always visible.
I have the following Catalog UI policy
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.