178
| Guest Management
Amigopod 3.7
| Deployment Guide
A comparison of these two approaches is shown below to illustrate the difference:
When using a Conversion or Value Format function, you will almost always have to set up a Display
Function for the form field. This function is used to perform the conversion in the reverse direction –
between the internal stored value and the value displayed in the form field.
See
“Form Field Conversion Functions”
in the Reference chapter for a detailed list of the options available
to you for the Conversion and Value Format functions.
The
Display Param
is the name of a form field, the value of which will be passed to the Display Function.
In almost all cases this option should contain the name of the form field.
Display Arguments are available for use with a form field and are used to control the conversion process. In
the case of the
expire_time
form field, the Display Function is set to
NwaDateFormat
to perform a
conversion from a UNIX time to a date/time string, and the Display Argument specifies the format to use for
the conversion.
See
“Form Field Display Formatting Functions”
in the Reference chapter for a detailed list of the options
available to you for the Display Function and Static Display Function.
The
Enable If
and
Visible If
options in the form field editor allow you to specify JavaScript expressions.
The result obtained by evaluating these expressions is used to enable/disable, or show/hide the form field in
real time, while an operator is using the form.
Unlike the other parts of the form field editor, the
Enable If
and
Visible If
expressions are evaluated by
the operator’s Web browser. These expressions are not used by the server for any other purpose.
The expression must be a Boolean expression in the JavaScript language; statements and other code should
not be included as this will cause a syntax error when the form is displayed in a Web browser.
Because of the scoping rules of JavaScript, all of the user interface elements that make up the form are
available as variables in the local scope with the same name as the form field. Thus, to access the current
value of a text field named
sample_field
in a JavaScript expression, you would use the code
sample_field.value
.
Summary of Contents for Amigopod 3.7
Page 1: ...Amigopod 3 7 Deployment Guide...
Page 14: ...14 Amigopod 3 7 Deployment Guide...
Page 30: ...30 Management Overview Amigopod 3 7 Deployment Guide...
Page 108: ...108 RADIUS Services Amigopod 3 7 Deployment Guide...
Page 132: ...132 Operator Logins Amigopod 3 7 Deployment Guide...
Page 240: ...240 Guest Management Amigopod 3 7 Deployment Guide...
Page 332: ...332 Administrator Tasks Amigopod 3 7 Deployment Guide...
Page 336: ...336 Administrator Tasks Amigopod 3 7 Deployment Guide...
Page 345: ...Amigopod 3 7 Deployment Guide Hotspot Manager 345...
Page 362: ...362 High Availability Services Amigopod 3 7 Deployment Guide...