0
edits
Changes
no edit summary
Level 1: ''document.'''form1'''.startdate.value''<br>
Level 2 & 3: ''document.'''frmevent'''.startdate.value''
* To reference [[Custom Fields]] use cf_xxxxxx where xxxxxx is the field ID<br>
Level 1: ''document.'''form1'''.cf_12345.value<br>
Level 2 & 3: ''document.'''frmevent'''.cf_54321.value</nowiki>''
Instead of using document.form1 at Level 1, and document.frmevent at Levels 2 & 3
you can use the following, which will simply take the first form, so works at any level:
<br />
'''document.forms[0]'''
<u>'''Examples'''</u> (For more examples of scripts see [[:Category:JavaScript Examples]])