The Zurich release has arrived! Interested in new features and functionalities? Click here for more

User criteria type setup to validate submission of ticket

imran rasheed
Tera Contributor

Hi All,

 

I require a User criteria like setup, where the catalog item should be shown to all users. But the criteria will decide if the user can submit the ticket or not. Maybe such validations can be done on submit. How to achieve such scenarios?

5 REPLIES 5

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,
You can write the on submit script for the same.

 


Thanks and Regards,

Saurabh Gupta

Thanks for your reply. On submit script should take the condition from User criteria. Any script examples of it?

Aniket Chavan
Tera Sage
Tera Sage

Hello @imran rasheed 

You can use onSubmit client script for that and inside that you can add whatever conditions you want to check like you want to add the logic in user criteria.

You will need one onSubmit client script and one script include, So can you able to share the conditions  which you want to check, so that accordingly we can help you.

This post Restrict user to submit form (via onSubmit Client script) is just an example for that.

 

Let me know your views on this and Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.


Regards,
Aniket

Hi @Aniket Chavan ,

Thanks for your response. The conditions in onSubmit should come from a table like user criteria. 
We need a setup like User criteria where instead of restricting the availability of catalogs, we need to restrict the submission of ticket. So all conditions in onSubmit should be pulled from User criteria table.