Difference between revisions of "Custom Field Type: Display - Text and Variables"

From SmartWiki
Jump to: navigation, search
Line 21: Line 21:
 
[[Image:Cf45.png]]
 
[[Image:Cf45.png]]
  
<pre>
 
e.g. <script>var datestr='@parent.submission year@'; datestr=parseInt(datestr.substring(0,4)); document.write(datestr);</script>
 
</pre>
 
  
 
The field in '''view''' mode is shown at the top of the page.  The body combines text, HTML and variable references.
 
The field in '''view''' mode is shown at the top of the page.  The body combines text, HTML and variable references.
Line 55: Line 52:
 
* [[sscalculation]]
 
* [[sscalculation]]
  
[[Category:Custom Fields]][[Category:JavaScript]]
+
[[Category:Custom Fields]]

Revision as of 14:04, 20 May 2010

Field Display

Cf44.png

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

  • Display Order: The order (relative to other fields) in which this field is displayed
  • Tab Name: Displays the field under a given tab
  • Field Name: The name of the field, used internally to reference the user's input
  • Caption: The leading question or prologue before the field
  • Track Changes: Keeps track of changes made to this field

Special Options for Field

Variables – set this area to the content required.

Cf45.png


The field in view mode is shown at the top of the page. The body combines text, HTML and variable references.

Services

  • Enable Map Service: displays the map icon next to the field name that will launch the user’s selected map service and display a map of the content of the field
  • Enable People Search Service: displays the search Internet icon next to the field name that will launch a variety of search services and display the contact details from those services
  • Enable Organization Search Service: displays the search Internet icon next to the field name that will launch a variety of search services and display the organisations details from those services

Field Formatting Options

  • Read Only: Checkbox
  • HTML Tag: Additional attributes to the field HTML tag
  • Visibility Condition: Conditions upon which the field is visible

Role - Field Permissions

These fields allow you to control by Role who is allowed to view and/or modify the field.

Status - Field Permissions

These fields allow you to control by the Status of the record whether or not the field can be viewed and/or modified.


Notes

Nothing is stored to the database when this field type is used.

See Also