Extend OnSubmit Catalog Client Script for making mandatory fields non-mandatory

AdamUMC
Giga Guru

Hi there,

I have a simple question:

I have OnSubmit Catalog Client Script with disables the "Submit" form button when a specific choice is given at an answer. Now I want to extend this script, to make the mandatory fields non-mandatory.

What now happens is:
- User fills in form from above to beneath. Mandatory fields are for example skipped.
- User answers to a choice question. 
- User presses "Submit" button.
- User gets "OOTB Mandatory fields" message.
- User has to fill in the mandatory fields AND pressing again at the "Submit" button before getting "No submit possible" message from the Catalog Client Script.

This is not very nice nor efficient.

If anyone has any idea, I would appreciate. Thanks in advance!

1 REPLY 1

BrahmjeetTanwar
Tera Guru

Instead of checking fields in on-submit client script, instaed on-change client scripts should be created for the fields on change of which mandatory fields are required and it should be removed from on-submit client script.


Please let me know if you have any questions.
Thanks,
Brahm