Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Would like to keep the field blank onload (I dont want to have --None-- also)

Naveenkumar Sat
Tera Contributor

Hello,

 

I would like to have a field empty or blank when loading the form, I see there is a none option but i would like to use blank instead of none. Can someone help me out here please?

1 ACCEPTED SOLUTION

Voona Rohila
Mega Patron
Mega Patron

Hi @Naveenkumar Sat 

You can just use Onload Client script with below line.

g_form.addOption('fieldname', '', '', 1);

Configure choice as Dropdown without None.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

View solution in original post

1 REPLY 1

Voona Rohila
Mega Patron
Mega Patron

Hi @Naveenkumar Sat 

You can just use Onload Client script with below line.

g_form.addOption('fieldname', '', '', 1);

Configure choice as Dropdown without None.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP