Make field mandatory on problem form when moving from New to Assess

Richard T
Kilo Guru

Hi, how would I go about making a field on the problem form mandatory when a user changes the state from New to Assess?

We dont want the field to mandatory when the state is New, only when the state changes.

Thanks in advance for any suggestions

Richard

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi,

You hvae to create UI policy for this.

Condition as-

State ISONE OF select all states except New.

 

UI policy action -

Field1 -- mandatory as true

Field2 -- mandatory as true

 

Thanks,

Sagar Pagar

The world works with ServiceNow

View solution in original post

2 REPLIES 2

Sagar Pagar
Tera Patron

Hi,

You hvae to create UI policy for this.

Condition as-

State ISONE OF select all states except New.

 

UI policy action -

Field1 -- mandatory as true

Field2 -- mandatory as true

 

Thanks,

Sagar Pagar

The world works with ServiceNow

Gaurav Rotke1
Kilo Guru

Hi Richard T,

You can create a UI policy for this requirement.

In the condition provide, state changes to access.

And in run script set the field mandatory by using g_form.setMandatory()

 

Please mark helpful and correct.

Thank you

Gaurav Rotke