Difference between revisions of "Template Variables for Actions Using Execute JavaScript"

From AgileApps Support Wiki
imported>Evelyn
m
 
imported>Aeric
Line 1: Line 1:
The following template variables are available for use in [[Actions]] using the Execute JavaScript option. Some template variables are not evaluated when the action is executed. In the following table:
The following [[JavaScript]] template variables are available for use in [[Actions]] using the Execute JavaScript option. Some template variables are not evaluated when the action is executed. In the following table:
:* "Yes" indicates that the template variable is evaluated when the action is executed
:* "Yes" indicates that the template variable is evaluated when the action is executed
:* "--" indicates that the template variable is ''not evaluated'' when the action is executed
:* "--" indicates that the template variable is ''not evaluated'' when the action is executed.


:A warning message is displayed when a template variable is included that is of the ''not evaluated'' type.
:A warning message is displayed when a template variable is included that is of the ''not evaluated'' type.
Line 49: Line 49:
| ||<tt>{$user.mobile}</tt>||Yes||Yes||Yes||Yes
| ||<tt>{$user.mobile}</tt>||Yes||Yes||Yes||Yes
|}
|}
<noinclude>
[[Category:JavaScript APIs]]
</noinclude>

Revision as of 18:32, 7 October 2011

The following JavaScript template variables are available for use in Actions using the Execute JavaScript option. Some template variables are not evaluated when the action is executed. In the following table:

  • "Yes" indicates that the template variable is evaluated when the action is executed
  • "--" indicates that the template variable is not evaluated when the action is executed.
A warning message is displayed when a template variable is included that is of the not evaluated type.
Category Template Variable Single Record Group Action Both

Single Record

Both

Group Action

Object {$fieldname} Yes -- Yes --
$AppSessionID {$AppSessionID} Yes Yes Yes Yes
User
{$user.today} Yes Yes Yes Yes
{$user.full_name} Yes Yes Yes Yes
{$user.first_name} Yes Yes Yes Yes
{$user.last_name} Yes Yes Yes Yes
{$user.email} Yes Yes Yes Yes
{$user.phone} Yes Yes Yes Yes
{$user.city} Yes Yes Yes Yes
{$user.state} Yes Yes Yes Yes
{$user.zip} Yes Yes Yes Yes
{$user.country} Yes Yes Yes Yes
{$user.title} Yes Yes Yes Yes
{$user.division} Yes Yes Yes Yes
{$user.fax} Yes Yes Yes Yes
{$user.mobile} Yes Yes Yes Yes