Is there any way to stop user to submit catalog item in onchange client script ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2023 11:33 PM - edited ‎04-27-2023 11:35 PM
I got a requirment that to be done in onchange client script ! I m not able to stop user to submit the record in onChange client script!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2023 11:48 PM
Hi @priyankar umesh ,
Can you please explain more why you want to stop users to submit the form, is there any field you want to restrict?
Regards,
Ankit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2023 12:22 AM
There is one field (list collector type ) ,if user will select less or equal to 2 record then it should show an error message , and user should not be able tosubmit the record.
I done the above requirment but i m not able to stop user to submiting the form .
this requirment should be done through onChange client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2023 12:36 AM
Hi @priyankar umesh ,
Recommended option is to use OnSubmit Client script.
or you can use this method also-
Make your onchange field (list collector field) mandatory. If user trying to enter wrong value in onChange field clear the field value it means when user trying to submit the form field remains empty i.e. mandatory and it will restrict the form submission.
Regards,
Ankit