Prefilling Community Forms from Logged-in User

In this article, we will demonstrate how with just a couple clicks, you can set up your community form to prefill data from your Logged in User.

First, you will want to ensure that your Remote Site Settings are configured properly

For the purpose of this article, we've already built our form. So now, let's publish it, and navigate to our publishing options.

 

From here, simply enable Dynamic Prefill, and you will be presented with some new options.  Our form has a contact object, and provides us with an automatic set up for Dynamic Prefill:

 

NOTE: This option only is presented if you have a Contact or User object in your form.

Once it has been set up, hit Save Prefill.

With Prefill in place, prefilling the details from the contact record, you can now log in to your community as a user, and see the details from their related contact record.

If you do NOT want to prefill based on the logged in User context, you can specify matching criteria on your primary object, and display records that are related to this object within the community

 

In the above example, any Contact record that is related to an account named "Test2000" will be prefilled here.

 

🔺 Guest users cannot see prefilled data on forms configured with the Logged-in User context and prefill. If you wish to prefill Community forms for Guest/Anonymous users then please use the Admin user context to prefill and submit the form.

Guest users can still submit Logged-In User context Community forms (even when prefill fails) however the submission will fail in the Submission Dashboard. The Formstack Admin will need to go in and resubmit the submission so that it can be submitted using the Admin user context. The record owner will be set to the site's default guest user that you have configured. 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.