Difference between revisions of "Custom Field Type: Display - Text and Variables"
From SmartWiki
Julia Decker (talk | contribs) |
m |
||
Line 27: | Line 27: | ||
* '''Type''': N/A | * '''Type''': N/A | ||
* '''JavaScript Validation''': N/A | * '''JavaScript Validation''': N/A | ||
+ | <pre> | ||
+ | e.g. <script>var datestr='@parent.submission year@'; datestr=parseInt(datestr.substring(0,4)); document.write(datestr);</script> | ||
+ | </pre> | ||
+ | |||
* '''Message''': N/A | * '''Message''': N/A | ||
* '''HTML Tag''': N/A | * '''HTML Tag''': N/A | ||
Line 42: | Line 46: | ||
Nothing is stored to the database when this field type is used. | Nothing is stored to the database when this field type is used. | ||
− | [[Category:Custom Fields]] | + | [[Category:Custom Fields]][[Category:Browser Scripts]] |
Revision as of 14:19, 19 June 2008
Field Display
General Description
This field type is similar to a web page view field and can contain HTML, text field references and expressions. Unlike a web page view field, there are no options to save the data.
Field Options
- Allow Empty: N/A
- Default Text: N/A
- Options: Variables
- Track Changes: Yes
- Store To Value: No
Special Options for Field
Variables – set this area to the content required.
The field in view mode is shown at the top of the page. The body combines text, HTML and variable references.
Field Validation
- Type: N/A
- JavaScript Validation: N/A
e.g. <script>var datestr='@parent.submission year@'; datestr=parseInt(datestr.substring(0,4)); document.write(datestr);</script>
- Message: N/A
- HTML Tag: N/A
Field Formatting Options
Height: N/A Measure: Default: Width: N/A Measure: Default: Number Format: N/A Style: N/A Tool Tip: N/A
Notes
Nothing is stored to the database when this field type is used.