- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2016 11:30 AM
Does anyone have a script for not allowing a request to be submitted if they have a certain value in a selectbox or multiple choice selected? So that the request don't go any where or "Order now" can't be submitted unless they change the value to the option in the selectbox or multiple choice that will allow them to submit the request or they cancel the request due to their answers not qualifying the request to be submitted. For example there are two options in a drop down list:
<20
> 20
If the user selects <20, they can't submit the request and will need to cancel it.
If they select >20 then they can select the request.
Please advise if you can.
Thanks
Chenelle
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2016 09:57 PM
Hi,
You can write onSubmit client script on catalog item.
Go to item -> right click on catalog item header -> click on configure item
Then go to Catalog Client scripts tab
Then click on 'New' the write onSubmit client script as below
Now try to click on 'Order now'. Now you can see alert and form will not submit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2016 01:47 PM
Nevermind. I was able to fix the script. Thank you!