Changes

Web Page View Field Variables

892 bytes added, 15:28, 19 August 2010
no edit summary
=Miscellaneous Variables=
==How Adding a File Upload button==To display a button to upload to display a [[Single File]] or [[Multiple Files]] custom field:* Single File: * Multiple Files::<font size="3"><input type=button class=Button value='Multiple files...' onclick="x_uploadfolder(123456,'@codedid@')" />  '''Note:''' if adding to a [[Web Page View]] you will need to add the following to the page:<pre>function include_dom(script_filename) { var html_doc = document.getElementsByTagName('head').item(0); var js = document.createElement('script'); js.setAttribute('language', 'javascript'); js.setAttribute('type', 'text/javascript'); js.setAttribute('src', script_filename); html_doc.appendChild(js); return false;}function includejsfiles() { include_dom("/validate.js");}</pre>You will also have to call the ''includejsfiles'' function in the body onload: <body onload="includejsfiles();">   ==Displaying a Dynamic Data grid Grid field==
To show a [[Custom Field Type: Dynamic Data – Data Grid|Dynamic Data – Data Grid]] field in a webpage view field use the following syntax:
=Controls=
 ==How to hide Hide a variable if it is missing==
Put the following in front of variable name.
0
edits