remove mandatory field messages on change form

pujitha K
Tera Contributor

Hi Team 

 

I have requirement that during change new state we have to make Risk assessment fields mandatory Risk Fields are customized field on change

 

We have written Ui policy to make the fields mandatory during new state.

 

Now everything is working as expected but now client want now to remove all mandatory Risk Assessment field messages on top of the form instead of that we need to have only one single message that "Risk Assessment is mandatory"

 

Is there any option that to remove oob functionality and add customized message 

pujithaK_1-1765810534545.png

 

Please check and help me to proceed further on the requirement.

 

Thanks,

Pujitha

 

1 REPLY 1

Hemanth M1
Giga Sage
Giga Sage

Hi @pujitha K ,

 

Instead of a UI policy, Can you write a client script(onSubmit) and check if these fields are empty if so throw a single error message "Risk Assessment is mandatory"

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025