Created
December 19, 2015 03:22
-
-
Save khoand0000/280c2b5bde8d13b694d3 to your computer and use it in GitHub Desktop.
update condition is not working with html control
ref: https://piklist.com/user-guide/docs/field-parameters/conditions/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
piklist('field', array( | |
'type' => 'select' | |
,'field' => 'master_field' | |
,'label' => 'Master field' | |
,'choices' => array( | |
'update_field' => 'Update' | |
,'no_update_field' => 'No update' | |
) | |
,'conditions' => array( | |
array( | |
'type' => 'update' | |
,'value' => 'update_field' | |
,'field' => 'my_field' | |
,'update' => 'Hello World!' | |
) | |
) | |
)); | |
piklist('field', array( | |
// 'type' => 'html' // is not working | |
'type' => 'text' | |
,'field' => 'my_field' | |
,'label' => 'Show/Hide Field' | |
,'description' => 'This field is updated by the Select field above' | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation was missing the clearing part of the condition. I just updated it. Try this: