- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 07:31 PM
I'm trying to block a item from being submitted if they state its not an Emergency by selecting No.
I need it to Block which its doing but I need it to clear the 2 fields and that is not working.
It worked 1 day and stopped the next
What is wrong here? and will this work in the portal?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 08:18 PM
If you want to clear variables and also abort the submission if emergency variable is No then you should not have two return false statements in your client script.
You can move clearValue statements also to the If block and remove return false statement from line no-5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 08:01 PM - edited 09-18-2024 08:10 PM
Hi @Tom Thompson Make your Catalog Client Script UI Type as All and which type of variable is Emergency Request?
If it's Choice field you need to use backend value of No choice option in getValue() API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 08:08 PM
Emergency Request is a Yes/No box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 08:18 PM
If you want to clear variables and also abort the submission if emergency variable is No then you should not have two return false statements in your client script.
You can move clearValue statements also to the If block and remove return false statement from line no-5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 08:31 PM
That was the problem, Thank you..