Support » Plugin: Smart Grid-Layout Design for Contact Form 7 » Dynamic dropdowns – inlcude blank

  • ResolvedPlugin Contributor altworks

    (@altworks)


    I’ve created a dynamic dropdown menu and was wondering if there was a way of including a blank option as default, like include_blank on regular dropdowns.

    In my case, the dropdown is populated by all posts in a particular category (which are actually seminars/events they are using the form to make a booking to). By having a blank option and making it a required field I really want to prompt users to enter the menu and select the correct one, not run the risk of them ignoring it and have the top post(seminar/event) in the menu be used.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    You need to use the field specific filters that are created (see screenshot #20) For dynamic dropdowns, there is a filter that allows you to change the default option.

    Plugin Contributor altworks

    (@altworks)

    Sorry mate, but this is still a bit of an issue for me.

    I can only see one filter not the 4 listed on your screenshot (not sure if that’s a bug).
    Although it looks like the filter I need, the text is also cramped and hard to see -> https://ln.sync.com/dl/6bad07790/6qrhfmtj-h3sgegn4-s4xnqt4r-p8hc8un9
    Its the same in both Firefox 65 and Chrome 71

    I have copied it into functions.php but there is no change to the dropdown.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I can only see one filter not the 4 listed on your screenshot (not sure if that’s a bug).

    no it’s not. the filter appears only if they are valid for that field tag. So depending on your dynamic dropdown settings, you may see one or more hook.

    the text is also cramped and hard to see

    I noticed that too and fixed it in v2.7

    However, just copy the filter helper (click the link to copy) and paste it in your functions.php file

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dynamic dropdowns – inlcude blank’ is closed to new replies.