lookup multiple choice default selection

richofing
Mega Contributor

Hello all, I have a lookup multi select that displays one or more choices (dependent upon the number of values returned by the ref qualifier).   It appears that the first of the values returned is the default. Is there a way to do this so that there is no default selected?   We want to avoid the user simply clicking Submit without taking the time to look at the list (it is a mandatory field). If there is no default then the user won't be able to submit and he will be forced to look at the list and select one of the values.

Thank you!

Ric

8 REPLIES 8

jake_mckenna
ServiceNow Employee
ServiceNow Employee

Did you select the Include none option on the variable? That should make the start require them to select something like in the screenshot below.



find_real_file.png


Hi Jake, yes, I did that (sorry, I should have mentioned that in my initial post) but it displays the value "None". If I do that I know that a user (more than one, actually) is going to call us and ask   why "None" is an option when this is a mandatory field. They will complain that this is confusing.



I was really hoping that I could display the list with no value selected by default.



Ric


In that case may i suggest a Client Catalog script (onLoad) that would clear the value for the Catalog View?



function onLoad() {


    //Type appropriate comment here, and begin script below


    g_form.setValue('variablename','');


}


Thank you, Jake, that should resolve my issue nicely.



Ric