For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pre-fill

A pre-filled field is when a field is filled on behalf of the respondent, when a form is loaded. This is done by adding the pre-filled value in a specific format to the form’s URL. Pre-filling adds convenience for the respondent when field values are known beforehand.

For example, the names of your respondents can be pre-filled if you know them in advance.

Pre-fills are currently only available on Short answer fields.

Create pre-fills

Original form

Pre-fill Examples

Form link ? Field ID = Pre-Fill

  • form.gov.sg/631707fe74cd7300119bc80f?62a997e37e757400142154ad=Sr%20PM

  • form.gov.sg/631707fe74cd7300119bc80f?62a997e37e757400142154ad=Intern

%20 represents a space. The browser will still add this automatically when you use a space instead. (e.g. =Sr Pm)

Form link ? Field ID 1 = Pre-Fill 1 & Field ID 2 = Pre-Fill 2

  • form.gov.sg/631707fe74cd7300119bc80f?62a997e37e757400142154ad=Software%20Engineer&62aae6db6e99e1001289415d=Open%20Government%20Products

Video Tutorial: Pre-fill

The video above is outdated but still relevant. To use pre-fills, create a Short answer field.

Text Tutorial: Pre-fill

1) Click on "Short answer" field

Go to the form builder. Look for and create the Short answer field. Click on it.

2) Enable pre-fill and create the field

Scroll down to bottom of the editor and enable pre-fill. Click on the "Create Field" button to proceed.

3) Find the Field ID

To obtain the Field ID necessary to create the pre-filled link, click on the Short answer field that you have just created. Scroll down the editor and you should find a newly generated Field ID.

4) Create the pre-fill link

Add the Field ID and pre-fill value to the back of your form link in this format: Form link ? Field ID = Pre-Fill In the URL, %20 represents a space while %23 represents a #.

To automate this process, you can create a spreadsheet to generate your pre-fill links quickly. You may also bulk create shortened links on go.gov.sg and send out the personalised links via postman.gov.sg.

Sample files to make creation of prefill links easier:

Last updated

Was this helpful?