Difference between revisions of "Template:TriggerType"

From SmartWiki
Jump to: navigation, search
m (Added two extra options: Show button in Footer and Show in view mode)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
* '''Trigger Type''': This setting is unique to Browser Script fields and works in conjunction with [[System Call]]s. The options are:
 
* '''Trigger Type''': This setting is unique to Browser Script fields and works in conjunction with [[System Call]]s. The options are:
  
:*On Page - The JavaScript defined in the ''JavaScript'' section will be loaded and functions defined therein can be called by other fields on the page.
+
:* On Page - The JavaScript defined in the ''Custom Script'' section will be loaded and functions defined therein can be called by other fields on the page.
 
+
:* On Demand - The JavaScript or System Call is executed by the server when the user clicks a button on the page. The button will be displayed for the Browser Script field when you select this type of trigger. As a result, a few extra settings are displayed when the Trigger Type is flipped to On Demand.
:*On Demand - The JavaScript or System Call is executed by the server when the user clicks a button on the page. The button will be displayed for the Browser Script field when you select this type of trigger. As a result, a few extra settings are displayed when the Trigger Type is flipped to On Demand.
+
:** Show Button in Footer
::* Show Button in Footer  
+
:** Button Label
::* Show in View mode  
+
:** Show in View mode
::* [[Label Display Options|Label Display]]
+
:** [[Label Display Options|Caption Location]]
::* [[SmartField View]]  
+
:** [[SmartField View]]
::* [[Tool Tip]]  
+
:** [[Tool Tip]]
::'''Note:''' Only Browser Script fields set to ''On Demand'' have any visibility on a page.  
+
'''Note:''' Only Browser Script fields set to ''On Demand'' have any visibility on a page.
 
+
On Load - Only [[System Call]]s can be used with this trigger type. The System Call will be processed server-side when the page is requested ("loaded").
:*On Load - Only [[System Call]]s can be used with this trigger type. The System Call will be processed server-side when the page is requested ("loaded").
+
:* On Save - Only [[System Call]]s can be used with this trigger type. The System Call will be processed server-side when the page is saved.
 
 
:*On Save - Only [[System Call]]s can be used with this trigger type. The System Call will be processed server-side when the page is saved.
 

Latest revision as of 12:08, 4 December 2018

  • Trigger Type: This setting is unique to Browser Script fields and works in conjunction with System Calls. The options are:
  • On Page - The JavaScript defined in the Custom Script section will be loaded and functions defined therein can be called by other fields on the page.
  • On Demand - The JavaScript or System Call is executed by the server when the user clicks a button on the page. The button will be displayed for the Browser Script field when you select this type of trigger. As a result, a few extra settings are displayed when the Trigger Type is flipped to On Demand.

Note: Only Browser Script fields set to On Demand have any visibility on a page. On Load - Only System Calls can be used with this trigger type. The System Call will be processed server-side when the page is requested ("loaded").

  • On Save - Only System Calls can be used with this trigger type. The System Call will be processed server-side when the page is saved.