Setting reference values based on checkbox selection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 09:24 PM
Hi All,
I have a requirement to set the reference field values based on the checkboxes selected. I have a catalog item with 4 checkboxes and a "Groups" reference variable, based on the checkboxes selected the Groups variable should show only the groups of particular type.
Ex: 1) Checkbox 1 selected - Groups variable should show groups of "type 1"
2) Checkbox 1 and 2 selected - Groups variable should show groups of "type 1" and "type 2"
Kindly, help me with the logic or code.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2024 12:43 AM - edited 09-03-2024 12:45 AM
Hi @Vihar2,
You may try with following reference qualifier and script include
Script Include:
ref qualifier :
javascript : new GroupType().group(current.variables.checkbox_01,current.variables.checkbox_02) // checkbox_01 & checkbox_02 are backend name of checkboxes.
Attaching screenshot for reference:
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi