Replacing 'None' with 'Please Select' in select box : Catalog Item

asasas
Kilo Contributor

I have a variable in Catalog item "e-transfer Inquiry type" which is select box type and mandatory field.

40.PNG

When I   tick check box" Include None"   that option is added in select box(as shown above )

That I want is:   I want to replace "--None--" With "--Please Select--" option

can someone help.

6 REPLIES 6

Kalaiarasan Pus
Giga Sage

Unselect "inlcude none' checkbox and add this in any onload script.



g_form.addOption('variablename', '', '--Please Select--');


Thanks Kalaiarasan



Thanks a lot.



But i am getting "Please Select" at the bottom. I want at the top.


g_form.addOption('variablename', '', '--Please Select--', 0);


Now I am getting at top also but I need "Please select" auto populated at the beginning only


I am seeing some option in select box not "Please Select" as default.



22.PNG\


You can see that "a " selected as default values and Mandatory field is still Red.