Skip to content
How to pre-fill the fields

How to pre-fill the fields

By Loïc Bresler 1 min read

Operation

Each field can be pre-filled.

The values to appear in the fields must be passed as arguments in the URL to the form.

Simple example

In the following example, we have declared several fields:

Declaration of the form fields and their associated variables
Declaration of the form fields and their associated variables

Example of URL with pre-filled fields :

http://www.cgrx.com/?serial=XXXXXX&civilite=Monsieur&nom=Dupont&
prenom=Jean&adresse=18 rue Bach&code_postal=75015&ville=Paris

What displays:

Field pre-filled from URL parameters
Field pre-filled from URL parameters

Example from a campaign

To build the link to a form from a campaign, you must use the customization variables.

Let’s assume that the columns of the campaign’s recipient file are in the following order:

Header of the recipients file columns (Email, Last name, First name, Perso1...)
Header of the recipients file columns (Email, Last name, First name, Perso1...)

The link to the form will have the following form:

http://www.cgrx.com/?serial=XXXXXX&civilite=%p1%&nom=%nom%&prenom=%prenom%
&adresse=%p2%&code_postal=%p3%&ville=%p4%

This post is also available in Français.

Last updated on