Prefill default values for Base forms

4 min read
I. Intro
You can add parameters to a form link to prefill default values for questions or to track submission sources.
250px|700px|reset
II. Steps
Go to Form View, click Invite Respondents, and turn on Invite via link. Set who can fill out the form with the link, and copy the link.
250px|700px|reset
Parameter format
To prefill default values, add URL parameters to the shareable link.
  • Format: [Form sharing link]?prefill_ [Question]=[Prefilled value]
Note: To prefill default values for multiple questions, use an ampersand (&) to connect them. For example: [Form sharing link]?prefill_Progress=In Progress&prefill_Date=2023/04/01
250px|700px|reset
image.png
Details to note
  • Field types that support default values: Text, single option, multiple options, one-way link, two-way link, person, checkbox, number, currency, progress, phone number, and date.
  • The question after prefill_ must be entered exactly as it is written in the form.
  • To prefill default values that contain special characters, refer to the table below to convert them for the link.
Special character
Convert to the following before adding it to the link
Special character
Convert to the following before adding it to the link
Space
%20 or +
(
%28
;
%3B
)
%29
:
%3A
&
%26
[
%5B
$
%24
]
%5D
,
%2C
{
%7B
!
%21
}
%7D
@
%40
#
%23
Default value specifications
Field type
Specifications
Text, number, progress, hyperlink, phone number, and currency
  • Enter the text, number, phone number, or link directly.
  • For example: [Form sharing link]?prefill_Number of members=3
Single option and multiple options
Note: You can't prefill values for referenced options.
  • Enter the option directly. For multiple options fields, use a comma (,) to separate the options.
  • For example: [Form sharing link]?prefill_Tags=Function,Experience
One-way and two-way links
  • You can enter the linked record's index field content or linked record ID. (If multiple records have the same index field content, the content of the first record will be returned.)
  • For multiple records, use a comma (,) to separate them. (If a field doesn't allow adding multiple records, the first record will be prefilled.)
  • For example: [Form sharing link]?prefill_Projects=Innovative function exploration,User experience improvement
Person
  • Enter the full name of a member that is one of your Lark contacts. (If there are multiple people in the organization with the same name, it can't be prefilled.)
  • For multiple members, use a comma (,) to separate them. (If a field doesn't allow adding multiple members, only the first member will be prefilled.)
  • For example: [Form sharing link]?prefill_Project leader=Kato,Sophia
Checkbox
  • Enter 1 for a selected checkbox and 0 for a cleared checkbox.
  • For example: [Form sharing link]?prefill_Weekly report submission status=1
Date
  • Separate the year, month, and day with a slash (/): yyyy/mm/dd (for example, 2000/01/01)
  • When the prefill value contains year, month, day, and time, use a space to separate the date and time: yyyy/mm/dd hh:mm (for example, 2000/01/01 00:00)
Review the prefilled default values in the form
After the parameters are added, you can paste the link into any browser to check whether the default values have been entered correctly.
Note: The form link has a limit of 16,000 characters. If this limit is exceeded, the default values won't appear in the form.
To share the form using a QR code, open the form sharing link with the pre-filled value parameters in a browser and click Share in the upper-right corner to get the QR code.
Hide default value questions
To hide a question with default values from the form, add &hide_[Question]=1 to the form link. For example, to hide the project manager question, set the form link to: [Form sharing link]?prefill_project leader=Kato&hide_project leader=1.
You can use this method to track the source of responses:
For example, when collecting feedback about an event, you may want to analyze which channels the users are coming from.
Steps:
  1. Add a question to the form: Source platform
  1. Turn on sharing, set who can fill out the form, and copy the shareable link.
  1. Add a parameter to the form link. If the link comes from Lark: [Form sharing link]?prefill_source platform=Lark&hide_source platform=1.
  1. Share these links on their respective platforms. The default value helps you track where the form was submitted from.
Configure default values using an extension
You can configure default values using a Base extension.
  1. Click the Base extension icon in the upper-right corner of the base, click Explore Extensions, and search for Form Default Value Configurator.
250px|700px|reset
  1. In the extension, paste the sharing link of the form into Form address.
250px|700px|reset
  1. Click Add default values and all the fields from the table where default values can be set will be displayed. Set the default values as needed.
  • Note: Supported field types include text, single option, multiple options, one-way link, two-way link, person, number, currency, progress, phone number, link, date, and checkbox.
  1. (Optional) Click the Eye icon on the right to hide or display the questions with default values configured. Click the × icon on the rightmost side to delete the default value configuration.
250px|700px|reset
  1. After completing the configuration, click Generate default value address.
  • Click Click to preview to preview the configuration of default values in the browser.
  • Click Click to copy address to copy the sharing link of the form with default values.
  • You can also scan or download the QR code for previewing or sharing.
250px|700px|reset
When configuring the settings, ensure that the field name of the default value is consistent with the question in the form. If you make any changes to the field name in grid view, it may affect the settings of the form questions and default values. You can click the Refresh in the extension panel to obtain the latest fields.
250px|700px|reset
III. FAQs
Why is the member's name that I prefilled invalid?
There are three likely reasons:
  • The member's name is the same as someone else in the organization.
  • The member is from outside of the organization and isn't your Lark contact.
  • You enter the name incorrectly.
How do I access the record ID when prefilling a default value for a linked field?
You can access it using RECORD_ID in a formula field. To learn more, visit Commonly used Base formulas.
Can everyone filling out the form see the default values?
Yes. To hide certain questions from the form, add the parameter &hide_[Question]=1 to the question in the form link. See Part III: Hide default value questions above for more information.
How do I add special characters to default values?
Refer to the table below to convert special characters to be used in the link.
Special character
Format for link
Special character
Format for link
Space
%20 or +
(
%28
;
%3B
)
%29
:
%3A
&
%26
[
%5B
$
%24
]
%5D
,
%2C
{
%7B
!
%21
}
%7D
@
%40
Will the default values be affected if I change the question in the form?
Yes, it will make the default values invalid.
Why did a question I set as hidden still appear in the form?
A possible reason is that the field is a required field and the default value you've prefilled is invalid. As a result, the field is considered empty and must be filled in.
Written by: Lark Help Center
Updated on 2025-02-11
How satisfied are you with this content?
Thank you for your feedback!
Need more help? Please contact Support.
rangeDom
rangeDom
rangeDom
rangeDom
rangeDom
rangeDom
rangeDom