User criteria type setup to validate submission of ticket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 10:49 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 10:53 PM
Hi,
You can write the on submit script for the same.
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 10:58 PM
Thanks for your reply. On submit script should take the condition from User criteria. Any script examples of it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 11:14 PM - edited 12-17-2023 11:16 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 11:37 PM
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.