• Resolved Meet Shah

    (@meet1347)


    Hi there, I am using this plugin to populate different drop-down menu according to conditions.

    ‘Velg bandagist’ is the field which will derive a related drop-down but the problem is with the validations of the field being populated. The fields being populated is a dropdown and I have added * to make it mandatory and allow_null to have a null value on the top but the populated field is not being validated for null value on form submit

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    Could you share your form code? As far as I know there is no allow_null option in Contact Form 7. In case you meant include_blank, you should leave the value field empty, so it would look like this: if [field] equals then show [whatever]

    • This reply was modified 7 years, 4 months ago by Jules Colle.
    Thread Starter Meet Shah

    (@meet1347)

    Hey Jules, thanks for the reply.
    Here is the code,

    <p class="form_text bandagist">Velg bandagist*</p>[select* 
     class:region include_blank "Akershus" "Aust-Agder" "Buskerud" "Finnmark" "Hedmark" "Hordaland" "M?re og Romsdal" "Nordland" "Nord-Tr?ndelag" "Oppland" "Oslo" "Rogaland" "Sogn og Fjordane" "S?r-Tr?ndelag" "Telemark" "Troms" "Vest-Agder" "Vestfold" "?stfold"][/bscolumns]
    [bscolumns class="clear"][/bscolumns]
    [group group-857][select* store id:Shop_Akershus class:form-control "" "Velg butikk" "Banda Follo AS,Ski" "Bandagist 1 B?rum" "L?renskog Bandasje AS" "Nes Sykepleieprodukter, ?rnes"][/group]

    OR

    <p class="form_text bandagist">Velg bandagist*</p>[select* 
     class:region include_blank "Akershus" "Aust-Agder" "Buskerud" "Finnmark" "Hedmark" "Hordaland" "M?re og Romsdal" "Nordland" "Nord-Tr?ndelag" "Oppland" "Oslo" "Rogaland" "Sogn og Fjordane" "S?r-Tr?ndelag" "Telemark" "Troms" "Vest-Agder" "Vestfold" "?stfold"][/bscolumns]
    [bscolumns class="clear"][/bscolumns]
    [group group-857][select* store id:Shop_Akershus class:form-control include_blank  "Banda Follo AS,Ski" "Bandagist 1 B?rum" "L?renskog Bandasje AS" "Nes Sykepleieprodukter, ?rnes"][/group]

    I have applied ‘*’ to make it mandatory and have tried to add blank with “” (blank value) and ‘include_blank’, but output remains same in both of the options. The 2nd drop-down is not being validated !

    Thank you in advance.

    Thread Starter Meet Shah

    (@meet1347)

    Hey Jules, I gave you the code of my form.
    Will you please reply me ? The site is live with this issue.

    It’s a request from my side to have a look into this…

    Thank you in advance.

    Plugin Author Jules Colle

    (@jules-colle)

    Looks good. Keep in mind that hidden groups will not trigger validation. That might be the problem in your case.

    I will add an option to enable validation for hidden groups in the future, but for now most people seem to want to make only visible fields trigger validation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘validation on droptdown’ is closed to new replies.