zend-form icon indicating copy to clipboard operation
zend-form copied to clipboard

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

Open jackdpeterson opened this issue 8 years ago • 3 comments

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 avatar Apr 14 '17 17:04 jackdpeterson

This is a more concise description of #153.

jackdpeterson avatar Apr 14 '17 17:04 jackdpeterson

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.

froschdesign avatar Apr 28 '17 20:04 froschdesign

This repository has been closed and moved to laminas/laminas-form; a new issue has been opened at https://github.com/laminas/laminas-form/issues/16.

weierophinney avatar Dec 31 '19 22:12 weierophinney