This dialog allows maintenance of template field properties.
Edit Template Field Dialog |
The following options are available:
Name
The Name field allows specifying the name of the template field. Please note that this name should be unique within particular template.
Default Value
The Default Value field allows specifying the initial value should be assigned to the field on template execution.
Complete on Init
The Complete on Init checkbox specifies whether the field should be completed if it gets a value after initialization. Completed fields are represented in the running template as simple fragments of code rather then editors.
This group allows specifying the expressions applicable to different stages of template field lifecycle. The Check button allows checking entered expressions to avoid syntax errors.
On Init
The On Init editor pane allows specifying the expression will be evaluated to assign initial value for the template field.
On Calculate
The On Calculate editor pane allows specifying the expression will be evaluated to assign value for the template field to reflect changes in this one or in other fields.
On Change
The On Change editor pane allows specifying the expression will be executed to make some actions to reflect value changes of this field. Please note that if this expression returns some value, this value will be ignored so execution of this expression can't change any fields anyway.
Insert Function
The Insert Function action list button allows insertion of functions to the expression. Pressing the core button inserts default function (or last inserted one) while pressing the button with triangle icon allows choosing other functions to insert.
This group allows defining the policy and conditions used to determine whether this field should be first focused one on template expand. The following options are available:
None
If this option is turned on, this field can be the first focused field only if there are no other candidate fields.
When has Value
If this option is turned on, this field can be the first focused field only if it has value after initialization.
When has no Value
If this option is turned on, this field can be the first focused field only if it has no value after initialization.
Always
If this option is turned on, this field can be the first focused field without any conditions.
This group defines which field should be focused when the user presses the Enter key within this field. The following options are available:
Next Field
If this option is turned on, the next field with the different name will be focused.
Next Default Field
If this option is turned on, the field to be focused will be determined using the Default Policy of the rest of fields.
See also: Edit Template Dialog, Smart.Templates, Productivity! General Property Page