Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Conditional Elements + Conditional InputFilter Feature request or documentation request if functionality already exists #155

Open
jackdpeterson opened this issue Apr 14, 2017 · 3 comments
Labels

Comments

@jackdpeterson
Copy link
Contributor

jackdpeterson commented Apr 14, 2017

Given a form that is defined as an array data structure and constructed using the factory and outputting the rendered content using the Form View Helper ... how would one go about adding in conditional elements and their respective Filters and Validators?

Sample:
Regular fieldsets
--> Elements / fieldsets
--> Radio button
------> Option A
------------> Show the conditional fieldset / element(s) for option A.
------> Option B
------------> Show the conditional fieldset / element(s) for option B.

@jackdpeterson jackdpeterson changed the title Feature request or documentation request if functionality already exists Conditional Elements + Conditional InputFilter Feature request or documentation request if functionality already exists Apr 14, 2017
@jackdpeterson
Copy link
Contributor Author

This is a more concise description of #153.

@froschdesign
Copy link
Member

You can extend the method Form::isValid() in your form and check the data property and the values. Then manipulate the InputFilter for your needs.

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-form; a new issue has been opened at laminas/laminas-form#16.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants