Form Actions‎ > ‎

Context

The context is like a container where actions can read and write data. The Context action has two options: Inject Form Data and Load User.

Inject Form Data

The Inject Form Data action lets you manually add and write data in the form. This action is very useful, for example, when you want to add data which is specific to the button when you click on it or for when you want to append data that you don't want exposed through hidden fields. Note that this is only valid for current action list, it does not persist until next list of actions executes, for example on submit. In this case, store the data in hidden fields, cookies or server session. Each piece of data in the context is stored under a name and can be accessed through tokens using that name. Use this action to load data that other actions down the stack need.

The values inserted into context can be constant text or tokens, including tokens created with My Tokens. Loading over a name that already exists will overwrite the existing data. If a field with the same name exists, data is also loaded into the form. 

Click here to see a tutorial where we present some Core concepts in Action From and where you'll find a practical example where Inject Form Data action is used.

Load User Action

A form runs in the context of a user, it could be the current user performing the submit or it could be the result of other actions. This lets you manually set a user. Note that this is only valid for current action list - it does not persist until next list of actions executes, for example, on submit.