[TYPO3-mvc] Fluid checkbox validation with js
Jacco van der Post
jacco at id-internetservices.com
Thu Oct 23 15:59:13 CEST 2014
Hi,
I am using http://bootstrapvalidator.com/ to validate form fields
interactive with js. This works well, except for checkboxes.
A checkbox in Fluid :
<f:form.checkbox property="terms" value="1"
additionalAttributes="{data-bv-notempty:'true',
data-bv-notempty-message:'Please accept the terms..'}" />
Creates in the source an extra hidden input field :(
<input type="hidden" value=""
name="tx_levenmedia_medialisting[newMedia][terms]"
data-bv-field="tx_levenmedia_medialisting[newMedia][terms]">
<input type="checkbox" value="1"
name="tx_levenmedia_medialisting[newMedia][terms]"
data-bv-notempty-message="Please accept the terms.."
data-bv-notempty="true"
data-bv-field="tx_levenmedia_medialisting[newMedia][terms]">
So the validator does not work correctly since it scans on the name
property "tx_levenmedia_medialisting[newMedia][terms]".
Anyone an idea how to make this work?
--
Kind Regards
Jacco van der Post
More information about the TYPO3-project-typo3v4mvc
mailing list