live-form-validation icon indicating copy to clipboard operation
live-form-validation copied to clipboard

toggle not work

Open attreid opened this issue 8 years ago • 2 comments

$form->addCheckbox('check')
	->addCondition($form::EQUAL, true)
	->toggle('checked');
$form->addText('input')
	->setOption('id', 'checked');

This code work with original netteForms.js

attreid avatar Apr 24 '17 11:04 attreid

Update: its not problem with toggle, but when I use jquery 3, sometimes live validation work and sometimes not.

attreid avatar Apr 24 '17 12:04 attreid

Update: its not problem with toggle, but when I use jquery 3, sometimes live validation work and sometimes not.

I am using jquery 1.12.4 and toggle still doesn't work

for example multi toggle doesn't work at all, only one toggle will be showns / hidden.

->addCondition($form::EQUAL, TRUE) ->toggle('frm_confirm_yes',FALSE) ->toggle('frm_u_businessName') ->toggle('frm_u_firstName') ->toggle('frm_u_lastName');

only 'frm_confirm_yes' hides and the rest stay hidden.

EDIT: problem occurs when you use one or more toggles to hide and others to show or vice versa

FTCP avatar May 05 '21 10:05 FTCP