Make a field mandatory when User clicks Resolve button on incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 03:27 AM
Hi Experts,
Recently We had a requirement to add an additional option as 'Break Fix' to 'On Hold reason' field and a new field 'Retrieved Break Fix' on the Incident form.
Now when the Incident state is On hold, and the On Hold reason is 'Break Fix', sometimes Users directly click on Resolve button, by parallelly filling the Resolution code and Resolution notes. How do I make 'Retrieved Break Fix' mandatory when the user try to click Resolve button.
1. I tried creating UI policy, stating the conditions and making the respective field mandatory. The mandatory field pops up on the form, but the moment when I click on Resolve buttom, the incident is getting resolved even though 'Retrieved Break Fix' is not filled.
2. Tried OnSubmit clients script also, But it doesnt work. Any suggestions/help much appreciated.
Thanks,
Rini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 06:48 AM
Hi,
I have given the steps and code which you need to use for your requirement. have you tried it. It's shared above.
let me know if you are still facing an issue. I have tested it and is working as you want.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 07:45 AM
Hi Shloke,
Thank you for your reply. I tried updating the OOB Resolve button, unfortunately it dint work.
Meanwhile I have included one more field to the form. I have written a data policy, when the state is Resolved and the Break Fix is 'Yes', Retrieved Break fix field should become mandatory.
Initially it dint work Coz Retrieved Break Fix field type was True/False. WHen I updated the type to choice, Its working now.
Your help in this is really appreciated 🙂
Rini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 09:09 AM
You do not need to add any additional field here. You can achieve this using existing script only.
Can you share your complete code of Resolve UI action here and I can modify it for you to use it.
Share a Screenshot as well along with the code.
Regards,
Shloke
Regards,
Shloke