Pre-populate with static data

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

Search 3B Knowledge Base

You are here:
< Back

Usage

Forms have the ability to pre-populate the fields of a form from parameters that you put in the URL

For example, you have created a form that creates new “Applicant” in Salesforce once completed. You want, however to set the value of a Salesforce field called “Source” depending on which Job Board you distribute the form on. You want to avoid creating multiple forms for every single Job Board, but you want to just add the Source dynamically at the time of posting

To achieve this, go to the section Main Object Fields  in the URL Builder.

What you can do here, is select a field to which you want to assign a parameter (find the “Source”) fields and the URL will automatically update to include that field. The default parameter is [XXXX] so what you can do is at the time of posting the form on a Job Board, just substitute the [XXXX] portion with the name of the Job Board.

End result should look like this:

For Reed

https://simple-forms-developer-edition.eu9.force.com/site1/apex/formcomplete?id=a000O00000xQrpeQAC&Source__c=Reed

For CV Library

https://simple-forms-developer-edition.eu9.force.com/site1/apex/formcomplete?id=a000O00000xQrpeQAC&Source__c=CV%20Library

 

Note: 

  • You may have noticed that the CV Library example has “%20” between the two words. This is what’s called URL encoding – you won’t always need to do it, but it is a good practice in order to avoid some older browsers from only taking the wrong part of the lin
  • You can use this to help you format a URL correctly.

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

3B Initiative

Jonathan B – 5 Stars

Get this and simplify your processes Thank you for your review, Jonathan, a happy little acacia tree is planted in your name! The exact coordinates

3B Initiative

Andy K – 5 Stars

Makes forms easy Thank you for your review, Andy, a happy little acacia tree is planted in your name! The exact coordinates of the tree

3B Initiative

Matthew W – 5 Stars

Best Free Forms Product on the AppExchange Thank you for your review, Matthew, a happy little acacia tree is planted in your name! The exact

Innovate, improve, empower. We believe engaged and happy customers make great partners, and see continuous feedback and collaboration as key levers in our shared drive for success. You need a small customisation to fit that nonconforming process step you have? We are more than happy to offer it free of charge. You have a recommendation for improvement/feature implementation? We are happy to listen, and will issue you with a special certificate to credit you for an idea that goes into the product.

As (we hope) you probably guessed yourself already – we want to be the single most flexible and customer-friendly forms solution on the market.