Prefill Fields on an Application

Set fields on an application when a user begins a new submission. Variables in direct to program link

Kunal Johar avatar
Written by Kunal Johar
Updated over a week ago

When creating a new submission it may be helpful to pre-fill some fields for the user.  A common use case of this may be a program that has many categories.  You may wish to have a home page that has a Begin Submission link for each category.

When the form loads it would be nice of the category was set exactly to avoid the user from having to select it.

To accomplish this you can use both GET and POST methods.

Configure Field Aliases
In the Submission Form > Developer Settings

You can see or edit the aliases for each field.

Build the Parameters
To pre-fill the form begin with the Direct to Program URL, for example

Then add the query string field.alias=value as follows:

Application Name Field
field.alias=value (when using 1 value)
field.alias.firstValue=first&field.alias.secondValue=second (when using 2 values)

Application Category

Text Fields / Number / Date / Radio / Drop Down

Checkbox Field

Address Field

Table Field
field.tableName={field.alias=value, field.alias2.value}, {field.alias=value, field.alias2.value}

Rows should be in {} separated by commas; fields should be separated by commas

Example (POST)

<form action="" method="POST">
<input type="hidden" name="field.yourName.firstValue" value="PostFirst">
<input type="hidden" name="field.yourName.secondValue" value="PostLast">
<input type="hidden" name="field.category" value="03-PLACES">
<input type="submit">
Did this answer your question?