Skip to main content
Kinetic Community

Event Field Maps

A field map can be created for set fields internal or set fields external events with the field_map function. The field_map function takes two string arguments. The first argument is the text label of the question we want to populate. The second argument is the text value that will populate the question. The text value may contain references to other questions or even data on other forms in a set fields external event.

Event Field Map Flags

The :fire_change_event flag (Kinetic Request 5.0) configures the field map to fire change event.

Event Field Map Options

The :visible_in_table option configures the field map to be visible in the table of a set fields external event.

The :table_label flag configures the table label of the field map of a set fields external event.

Creating Event Field Maps

field_map "Comments", "Please enter comments here."

The field map above is for a set fields internal event that sets a question field to a static value.

field_map "Shipping Address", "<FLD>Billing Address</FLD>"

The field map above is for a set fields internal event that sets the Shipping Address question to a dynamic value, the answer value of the question Billing Address.

field_map "Requester Name", "<FLD>Name</FLD>",
  :visible_in_table => "Yes",
  :table_label => "Name"

The field map above is for a set fields external event that sets a question field to a dynamic value, the field specified between the <FLD></FLD> on the form specified by the required associated data request. This field map is also configured to be visible in the table with the table label “Name”.

Field maps for set fields external events that use bridging (Kinetic Request 5.1.0) can also set questions to dynamic values, but it is done with a different notation than above.  Below is an example of a field map that sets a question to the "Full Name" attribute of a bridge model.

field_map "Set Fields Target", "<%=attribute[\"Full Name\"]%> "