Make a field mandatory when User clicks Resolve button on incident form

rin1
Kilo Guru

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.

find_real_file.png

 

Thanks,

Rini

12 REPLIES 12

shloke04
Kilo Patron

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

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

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

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

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke