NSOA.form.get_value(field)
Use this function to get the value of the field on the OpenAir form. Keep in mind, any pick lists (for example Customer:Project, Employee, Expense item) will return an internal_id and not a text value. In this release, only fields directly related to the form are available (for example no related table lookups are available now).
You should use NSOA.form.getValue(field) or NSOA.form.getAllValues() in preference to using NSOA.form.get_value(field).
Parameters
-
field {string} [required] — The name of the field on the form.
Returns
-
The value of the field on the form as a string.
Units Limit
-
1 unit
For more information, see Scripting Governance.
Since
-
March 17, 2012
Example
-
This example creates a local variable called receiptDate and sets its value to the content of the date field on the form the script is attached to.
var receiptDate = NSOA.form.get_value('date');
See also NSOA.form.getValue(field) and NSOA.form.getAllValues().
See Code Samples for more examples.