|
/ Documentation /Creating Forms/ How to Add Smart Tags as Default Values in SureForms

How to Add Smart Tags as Default Values in SureForms

SureForms makes it easy to use Smart Tags to automatically fill form fields with dynamic data like the site URL, current page URL, admin email, and more. This is especially helpful when you want to prefill fields without user input.

Step-by-Step: Add a Smart Tag as a Default Value

1. Add a Form Field

  • Open your form in the SureForms builder.
  • Drag and drop a Text field into your form.

2. Give It a Name

  • Click the field to edit its label (e.g., “Site URL”).
Give It a Name

3. Set a Default Value Using Smart Tags

  • On the left panel, the Default Value setting.
Set a Default Value Using Smart Tags
  • Click inside the Default Value box.

4. Choose a Smart Tag

  • A dropdown menu (Smart Tag Picker) will appear.
Choose a Smart Tag
  • Select a tag like {{site_url}} or {{current_page_url}} from the list.

✨ Example: If you select Site URL, it will insert {{site_url}} into the field.

5. Make It Read-Only (Optional)

  • Enable the Read-only toggle.
Make It Read-Only (Optional)
  • This prevents users from editing the field on the front end.

6. Publish the Form

  • Click Save to publish the form.

What Happens on the Frontend?

Once your form is live:

  • The field will automatically show the selected value (e.g., your site URL).
  • If the field is set to read-only, visitors won’t be able to change it.
Frontend

Available Smart Tags

Some commonly used smart tags in SureForms:

  • {{site_url}} – Your website’s base URL
  • {{current_page_url}} – The URL of the page where the form is displayed
  • {{admin_email}} – The WordPress admin email address
  • {{user_ip}} – The IP address of the user filling the form
  • {{user_agent}} – The browser details of the user

You can explore more smart tags directly from the dropdown in the form builder.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top