• Resolved designer20

    (@designer20)


    A previous thread had the same question: I have a picklist that I want to require but I don’t want to have any of the selection items shown by default. I want it to say “select one” in the visible field, and then if someone does not choose one of my options from the dropdown, the form can’t be submitted. In other words, it’s required to choose something other than “select one”. Is there a way to do this?
    The solution provided was to “Put Select One| as the first line in the options box (above the others) and mark the field required.”
    I did this and Select One does come up as the first option on the list, but a user can do nothing (keep Select One as the selected option) and submit the form. This doesn’t solve the issue of making them select one of the options below Select One. How can I make it so they have to pick something other than Select One?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    This is covered in the FAQ.

    
    // Use different data for display and value passed to SF, require user to select something (assuming field is required)
    Select One|
    name1|value1
    name2|value2
    

    Any item with a blank value with not be allowed to be chosen if the field is required.

    The first item is always chosen by default (unless the user has made a different selection, or you specify a default value).

Viewing 1 replies (of 1 total)
  • The topic ‘Picklist use “Select One” as default and require selection of another option’ is closed to new replies.