How to make field visible and make mandatory when we change from one field value to other field ?

Deepika61
Tera Contributor

Hi All,

 

Actually we have  three reference fields(Officer, Specialist officer, Gb Officer), so here whenever case created these are empty and we assigned one officer, now the requirement was like

1) if for example when case created three are empty so when we try assigned one of them there is one more field "Remarks " will not display

2)if for example after created i selected "Officer " field value and save the form, after if user trying to change that value to another then remarks field will appear and mandatory

3)And next scenario continuation to above one, if user want to change the other field value like , making "Officer" field value as empty and if he want to select "specialist officer" value , then also remarks field will appear and mandatory

 

Please help me to achieve this

 

Thanks

Deepika

2 REPLIES 2

Community Alums
Not applicable

Hi @Deepika61 ,

You can write a OnChange Client Script.

 

Mark Manders
Mega Patron

https://www.servicenow.com/community/itsm-forum/how-to-make-field-visible-and-make-mandatory-when-we...

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark