Changes

Jump to: navigation, search

Show/Hide Header

101 bytes added, 15:16, 25 September 2009
Syntax
:<font size="3">onchange="_showhideheader(xxxxxx,this.value=='Yes')"</font>
 
:* [[Custom Field Type: Select Many – Check Boxes|Check Boxes]] use a different syntax. See [[#Check Boxes|below]])''
'''Where''':
* ''xxxxxx'' is the field ID of the [[Custom Field Type: Title Bar – Multiple Columns|Title Bar]] field that you wish to control.
* ''Yes'' is the value in the control field that you wish to use to trigger the display of '''Title''' '''Bar''' and the other '''Controlled''' fields in the block.
 
'''Note:''' [[Custom Field Type: Select Many – Check Boxes|Check Boxes]] use a different syntax. See [[#Check Boxes|below]]
'''Examples:'''
* Display the controlled fields when the control field (Custom Field ID 123456) is '''not equal''' to Yes:
onchange="_showhideheader(123456,this.value!='Yes')"
* '''Multiple Conditions''' the control field (Custom Field ID 123456) is either Yes or Maybe:
onchange="_showhideheader(123456,(this.value=='Yes' || this.value=='Maybe'))"
* Display the controlled fields when the control field (Custom Field ID 123456) is '''empty''':
onchange="_showhideheader(123456,this.value==''")
*Display the controlled fields when the control field is a '''numerical''' control field (Custom Field ID 123456) is greater than 6):
onchange="_showhideheader(123456, parseInt(this.value ) >6)"
 
==Multiple Headers==
0
edits

Navigation menu