The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to verify at least one item is checked in an order guide before moving to the next step?

gjz
Mega Sage

I have an order guide that has 5 checkboxes that are used in the rules to determine which catalog item gets included in the order guide.  They are optional, but at least one needs to be checked before moving to the next step of the order guide.  How can I validate at least one has been checked?  I tried creating an onSubmit catalog client script, but it doesn't work.

 

I need to check on the "Describe Needs" form, prior to moving to the "Choose Options" form.

gjz_0-1737057019374.png

 

7 REPLIES 7

AshishKM
Kilo Patron
Kilo Patron

Hi @gjz

 

Please share the onSubmit script. 

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Harsh Vardhan
Giga Patron

@gjz  Have you tried to use "Selection Required" checkbox to set as true on anyone of the checkbox type variable,

If you set it as true it will disable the "Next" button on order guide form and user need to select one of the checkbox to go on further step.  It act as mandatory. 

 

checbox.PNG

 

Thanks,

Harsh

 

I don't think that will work.  None of the checkboxes (there are 5) are mandatory, but at least one must be selected.  It doesn't matter which one.

I tried on my PDI, I created three checkbox type variable, and set only one of them as "Selection Required" as true , now if i don't select any of the checkbox it will not allow me to go further, but if you select anyone of them then only you will go to next tab. Give a try at least. 

 

Thanks,

Harsh