Yes. There are two ways to do this. If it's information on the user that is logged into the site you may be able to simply use available merge tags and the default value option on fields it's available for.
Merge tags are documented here:
http://www.gravityhelp.com/documentation/page/Merge_Tags
So if you want to populate the email field with the email of the user that is logged in and filling out your form, you would:
- Edit the email field on your form
- Select the advanced tab
- In the default value set it to {user:user_email}
- Save your form
Now that field's default value will be set to the email of the user viewing the form if they are logged in.
If it's information that can't be output via available merge tags then you can always use some custom PHP and dynamically populate the field. Here is some information on how to dynamically populate fields:
http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population
Posted 12 years ago on Wednesday November 16, 2011 |
Permalink