We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
Wrap the accommodation_price input pair in a div (or any other tag) with html id accommodation_price.
accommodation_price
Sorry, something went wrong.
No branches or pull requests
When using this form render the toggle function doesn't work anymore. How can I achieve the toggle function?
Example:
The accommodation_price input is always visible, no matter if the accommodation checkbox is checked or not.
The text was updated successfully, but these errors were encountered: