hub.eb?material_id=183

Fields - get and set field values


The keyword fields lets you access fields from the form.

Use this to get or set the value of a particular field.

For example, you can get the value of the field 'first_name' and store it in a temporary variable using the following:

var name = fields.first_name.value;

You can use a single = character to assign a value to a field:

fields.first_name.value = "John";

Related