client script

soniya patil
Tera Contributor

how to make  short description field  mandatory  in table

7 REPLIES 7

Community Alums
Not applicable

Hello @soniya patil,
You can write below code in client script onSubmit condition

Priyankaagarwal_0-1692960237645.png

 

Please mark my answer as helpful if it helped in finding solution

 

Thanks,
Priyanka

manjusha_
Kilo Sage

@soniya patil 

 

Below are multiple ways to make a field mandatory ,but need to select it based on your requirement

 

1.Dictionary 

2.Ui policy

3.Client script

 

As a best practice suggested by ServiceNow we should go with ui policies

If you want to make field mandatory on Onload of form or Onchange of  a field you should go with Ui policy

Explain your requirement in detail so i can help you

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact

Thanks,

Manjusha Bangale

Ankur Bawiskar
Tera Patron
Tera Patron

@soniya patil 

I could see multiple responses to your question.

But I would like to know what did you try so far and where are you stuck?

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader