Changes

Show/Hide Header

36 bytes added, 20:41, 5 November 2008
Example
The controlled fields must all be placed under a '''Title Bar''' type field.
==Example==
Place the following code in the '''HTML Tag''' box of the '''Control''' field:
Where '''xxxxxx''' is the field ID of the '''Title Bar''' field that you wish to control.
Where '''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.
'''More complex syntax can also be used:''' <pre>
onchange="_showhideheader(xxxxxx,this.value!='Yes')" - Display the controlled fields when the control field is not equal to Yes.
 
onchange="_showhideheader(xxxxxx,(this.value=='Yes' || this.value=='Maybe'))" - Display the controlled fields when the control field is either Yes or Maybe.
 
onchange="_showhideheader(xxxxxx,this.value==''") - Display the controlled fields when the control field is empty.
 onchange="_showhideheader(xxxxxx, parseInt(this.value ) >6)" - Display the controlled fields when the control field is greater than 6. </pre>
The difference between this feature and [[Custom Field Type (87): Dynamic Data – Dynamic Control Field|Dynamic Control]] field is that:
4,401
edits