Build a form
Create a form in the form builder: add and order fields, set required fields, format rules and default values, and enter the French text.
The form builder is where you decide what a form asks. You add fields, set which ones people must fill in, and give each field English and French text.
Before you start
- You need the Admin or Editor role.
- Use a computer. The builder needs a large screen.
Create a form
- In the sidebar, select Website, then Forms.
- At the top of the page, select Create form. The form builder opens.
- At Form name, enter a name, for example "Passport help request".
- Optional: at Description, write a short line that people see above the form.
- Add the fields. See the next section.
- Select Save form.
The message "Form created" shows. A new form is a Draft until you publish it. See Publish and share a form.
Add fields
On the left, under Quick add field, select a field type. The field is added at the bottom of the form.
| Field type | Use it for |
|---|---|
| Text | A short answer on one line, such as a name. |
| An email address. | |
| Phone | A phone number. |
| Long text | A longer message. |
| Dropdown, Radio | One choice from a list. |
| Checkbox | One yes-or-no box, such as a consent box. |
| Checkboxes | Several choices from a list. |
| Number, Date | A number or a date. |
| Hidden | A value that is sent with the form but not shown. |
| File upload | Photos and PDF documents, up to 10 MB each. |
| People list | The other people on one application, added one at a time. |
A File upload field works on the form's own page. It does not work on the website's Contact page. A People list field also shows only on the form's own page.
Set up a field
Select a field in the form. Its settings open on the right.
- At Field label, enter the question people see.
- Optional: enter a Placeholder (example text inside the box) and Help text (a line under the field).
- For Dropdown, Radio and Checkboxes, enter the choices in Options (one per line).
- Tick Required if people must answer.
A required field shows "(required)" after its label on the public form.
To move a field, select the up or down arrow on it. To copy or remove a field, point at it and use the buttons that show. Removing a field asks you to confirm with Remove field.
Field name
Each field also has a Field name, made from the label. CivicOffice uses it to store the answers. It stays fixed once the form is saved, so earlier answers keep their question.
Some fields show a lock. The contact form's name, email and message fields, and the subject field of a "Your voice" form, are needed by the website. They cannot be removed or renamed.
Format rules
For Text, Email, Phone and Long text fields, you can make CivicOffice check the answer before the form is sent.
- At Format, choose a rule: Email address, Phone number, Canadian postal code, Numbers only or Letters only.
- Optional: at Message on mismatch, enter the message people see when the answer does not fit. Enter it again in French.
Custom⦠lets you enter your own pattern (a regular expression). Use it only if you know how to write one, and test the form after you save it.
Default value
At Default value, enter text to put in the field before the person types, for example "Ontario". This works when people open the form from its own link. On the office website's form pages, the default value is used only for Hidden fields.
Enter the French text
- At the top of the builder, open the language menu, which shows English, and select French.
- Enter the French form name, description, labels, placeholders, help text and options.
- Select Save form.
A count such as "2 missing FR" at the top shows how many French texts are still empty. Select it to go to French.
Save your changes
Select Save form before you leave the page. If you try to leave with changes that are not saved, CivicOffice asks first. On a published form, a saved change is live at once.
