How to add -Please Select- option under a select box variable on catalog item

jituksingh
Kilo Guru

Hi All,

I am using a Select box variable on a catalog under which there are several options. I know I can use None option on top however I want to use -Please Select-option on top. How can I do that please help.

find_real_file.png

Thanks in Advance!

 

Regards,

Jitendra Singh

 

1 ACCEPTED SOLUTION

jituksingh
Kilo Guru

function onLoad() {
g_form.addOption('variablename', '', '--Please Select--', 0);
g_form.setValue('variablename','--Please Select --');
}

 

change the variable name with your variable name.

View solution in original post

4 REPLIES 4

dharanikumar
Giga Guru

Hi Jitendra,

Go to the variable and select Include none.

find_real_file.png

_Kumar

Mike Patel
Tera Sage

you can create onLoad client script with something like below

g_form.addOption(<fieldName>, <choiceValue>, <choiceLabel>, <targetIndex>);
 
g_form.addOption('yourvariablename', '-Please Select-', '-Please Select-', 0);
 

Vishakha
Mega Guru

Hi,

Go to maintain item-->open particular item-->Go to Variable-->Select "Select Box"-->Select New Question Choices-->Add -Please Select- Give order less than Audio Issue order number(If Audio Issue contain order no as 100 then give order for -Please Select- is 50.

find_real_file.png

find_real_file.png

 

find_real_file.pngfind_real_file.png

If it helps then please mark my answer Correct and Helpful.

Vishakha

jituksingh
Kilo Guru

function onLoad() {
g_form.addOption('variablename', '', '--Please Select--', 0);
g_form.setValue('variablename','--Please Select --');
}

 

change the variable name with your variable name.