-- None -- option gets added in a choice list

pradeep37
Tera Contributor

Hi,

I have a choice list from which I can choose multiple options. but it allow me to select none option as well in the list, which is not correct.

please suggest

 

Thanks & Regards

Pradeep Sharma

 

8 REPLIES 8

Hi, 

 still it --None-- is coming after select this option "Dropdown without --None---".

 

Thanks

Musab Rasheed
Tera Sage
Tera Sage

Check if --none-- has been added as part of Choices there in second tab.? If yes then make it inactive.

Please hit like and mark my response as correct if that helps
Regards,
Musab

Saurav11
Kilo Patron
Kilo Patron

Hello Ankita,

1)Please follow below steps:-

Right Click--> Configure Dictionary---> Select Dropdown without Choice

2)If the above is already done please specify a degault value in the default tab field
 
3) Check if there is any client script with addoption which may be adding it on the field
 
Please mark answer correct/helpful based on impact.
 

Bryan Tay3
Mega Guru

hi there, 

Thought of sharing how I overcome this problem with a OnChange Client Script as below:

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
   if (isLoading || newValue === '') {
      return;
   }

   //Type appropriate comment here, and begin script below
    if(newValue.includes('-- None --')){
        var arrValues=newValue.split(',');
        var outArr=[];
        for(var i=0;i<arrValues.length;i++){
            var eachSelection=arrValues[i];
            if(eachSelection!='-- None --'){
                outArr.push(eachSelection);
            }
        }

//note that second array is the Display Value array for the GlideList.
        g_form.setValue('u_service_response_service',outArr,outArr);
   }
}

hope this helps. 🙂