How can I remove the blank option from a dropdown

  • Profile Image
    Asked on April 13, 2016 at 11:42 AM

    In my test form, I specified a default value in each of my drop down menus for panel colors.  Nevertheless, when you actually access the menu on the form, a blank selection remains available.  I tried making the first one a required field as well, but this didn't prevent the blank choice from showing.  I realize that the form will function and I can assume the default value if blank is chosen, but I wanted to ask you to make sure there's no way to remove the blank choice.  Please let me know.

    My test form:

  • Profile Image
    Answered on April 13, 2016 at 11:51 AM

    It is not possible to remove the blank option in the form builder.  It requires using the full source code of your form and embedding that code to a web page.  You would then be able to disable the blank option by modifying your forms source code:


    <option value="" disabled="disabled" selected="selected">Select your option</option>

    <option value="1">1</option>

    <option value="2">2</option>

    <option value="3">3</option>

    You would find the code for your dropdown and modify the first option similar to the above.

    It is not possible to do in the form itself.