restrict user to order more then 1 item

showsid02
Tera Contributor

How to restrict user to order more then 1 item from cart layout. please provide me the approach and code also if possible. 

1 REPLY 1

Voona Rohila
Kilo Patron
Kilo Patron

Hi @showsid02 

You can write onSubmit client script with glideajax to call the scriptinclude which checks if the requestor has already any open requests or not.

Refer below links with similar requirement, try and let us know if you're stuck

https://www.servicenow.com/community/itsm-forum/how-can-we-check-the-requested-for-user-if-he-has-al...

https://www.servicenow.com/community/developer-forum/script-for-onsubmit-client-script-request-shoul...

 

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP