Mandatory option removal from Area field on Incident form

RSSG
Tera Contributor

Hi All

 

I want to remove madatory from "Area" field on Incident form view. how can I do that in most simple way .

RSSG_0-1688399141870.png

 

2 REPLIES 2

Weird
Mega Sage

Depends. Mandatory might be set on the field level. You can check the dictionary to see if "Mandatory" is checked for your field and uncheck to make it optional.

If Mandatory is not checked in dictionary level for your field, then it's probably set through a client script or a UI policy. You need to check those to make the field optional.

UI policies for incidents are in "sys_ui_policy" table. You can search for any where table is incident OR table is task and inherit is true.
Each UI policy has UI Policy actions that help set the field mandatory, visible or read only. You're looking for any that are setting the Area as mandatory.

Client scripts are found in "sys_script_client" table.
You're looking for ones in incident table OR task table and inherited true.
On client scripts "g_form.setMandatory()" is used to set fields mandatory.
You're looking "g_form.setMandatory("your_field", true):
You can set it to "g_form.setMandatory("your_field", false) to set it optional. You can also completely delete the line and see if that's enough to make it optional. There might be multiple scripts and UI policies working in a complex way to set fields visible, read only and mandatory depending on multiple different selections.

AndersBGS
Tera Patron
Tera Patron

Hi @RSSG .

 

I really depends on where the rule for making the field "read only" lies. try to do a "incident.config" in the application navigator, and go through the different settings on the incident application.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/