Open
Description
When using this form render the toggle function doesn't work anymore. How can I achieve the toggle function?
Example:
$form->addCheckbox('accommodation','Enable accomodation?')
->setDefaultValue(false)
->addCondition($form::EQUAL, true)
->toggle('accommodation_price');
$form->addText('accommodation_price','Accommodation price / night')
->setOption('id', 'accommodation_price')
->addConditionOn($form['accommodation'], Form::EQUAL, true)
->setRequired('The accommodation price is required.')
The accommodation_price input is always visible, no matter if the accommodation checkbox is checked or not.
Metadata
Metadata
Assignees
Labels
No labels