How do you prevent a user from submitting a request based on field values?

apriled
Tera Expert

We have an item for users to request access to groups - however if the user doesn't make a valid selection we do not what the Request to be created, but rather a info message to the user to "fix" the request before submitting. I have created a business rule (attached) but cannot get it to work -the Request is still created without any RITM or any approvals (attached), etc...

 

Can anybody show me what I am doing wrong?

 

BusinessRule.png

1 ACCEPTED SOLUTION

mitchell_stutle
Mega Expert

Hey April,



You will probably want to do this in an onSubmit client script. This way, when you cancel their submission they can stay on the form to change the values.


View solution in original post

4 REPLIES 4

mitchell_stutle
Mega Expert

Hey April,



You will probably want to do this in an onSubmit client script. This way, when you cancel their submission they can stay on the form to change the values.


User140988
Kilo Guru

Hello April,



I have a similar catalogue item and I think a client script is a better way to handle this for user experience   and the user gets an alert when he tries to add to cart (onsubmit client script on the catalogue item).



The issue with the script is that the condition current.cat_item, because on sc_request cat_item field doesnt exist, cat_item belongs to sc_req_item.


apriled
Tera Expert

Thanks Mitchell and Chandana.
The onSubmit client script worked!!


How you resolved this?