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, 7 months ago by
Jules Colle.
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.
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.
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.