<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Pre-populate fields with (logged in) user info (eg. name, email)</title>
		<link>https://legacy.forums.gravityhelp.com/topic/pre-populate-fields-with-logged-in-user-info-eg-name-email</link>
		<description>Gravity Support Forums Topic: Pre-populate fields with (logged in) user info (eg. name, email)</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 22:29:44 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/pre-populate-fields-with-logged-in-user-info-eg-name-email" rel="self" type="application/rss+xml" />

		<item>
			<title>Grant Bivens on "Pre-populate fields with (logged in) user info (eg. name, email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-populate-fields-with-logged-in-user-info-eg-name-email#post-51465</link>
			<pubDate>Tue, 06 Mar 2012 13:48:40 +0000</pubDate>
			<dc:creator>Grant Bivens</dc:creator>
			<guid isPermaLink="false">51465@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry for the delay in reply Nick, I haven't checked back on the site until now.&#60;/p&#62;
&#60;p&#62;To make it 'locked' you'll need to set an attribute to read only which looks like this: &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;form&#38;gt;
  Name: &#38;lt;input type=&#38;quot;text&#38;quot; name=&#38;quot;userName&#38;quot; value=&#38;quot;John Smith&#38;quot;
  readonly=&#38;quot;readonly&#38;quot; /&#38;gt;&#38;lt;br /&#38;gt;
  &#38;lt;input type=&#38;quot;submit&#38;quot; value=&#38;quot;Submit&#38;quot; /&#38;gt;
&#38;lt;/form&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You could probably write a function to add the readonly=&#34;readonly&#34; bit via jQuery to the field for each value you want to do that to. I haven't been able to test that or anything. I guess my only concern would be when the default value is set in relation with when the readonly attribute was set. If it was set to early the name couldn't be set.&#60;/p&#62;
&#60;p&#62;Best of luck!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick Davis on "Pre-populate fields with (logged in) user info (eg. name, email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-populate-fields-with-logged-in-user-info-eg-name-email#post-51045</link>
			<pubDate>Thu, 01 Mar 2012 15:10:11 +0000</pubDate>
			<dc:creator>Nick Davis</dc:creator>
			<guid isPermaLink="false">51045@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you very much, that is a big help.&#60;/p&#62;
&#60;p&#62;It led me onto another thought though (and possibly stupid question). Is it possible to display that info in a field but 'lock' it so it can't be changed/edited, if you know what I mean?&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Grant Bivens on "Pre-populate fields with (logged in) user info (eg. name, email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-populate-fields-with-logged-in-user-info-eg-name-email#post-50960</link>
			<pubDate>Wed, 29 Feb 2012 18:13:49 +0000</pubDate>
			<dc:creator>Grant Bivens</dc:creator>
			<guid isPermaLink="false">50960@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nick,&#60;/p&#62;
&#60;p&#62;You can do this by setting a default value for the field.&#60;/p&#62;
&#60;p&#62;Go to the field you want to populate automatically and click the edit link to expand the settings. Then click the 'Advanced' tab. About the 3rd option down you'll see 'Default value' and a drop-down list. At the bottom of that list are the items you are talking about, User Display Name and User Email. Just set the value you need and repeat for the other fields and you're good to go.&#60;/p&#62;
&#60;p&#62;Have a good one,&#60;br /&#62;
-GB
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick Davis on "Pre-populate fields with (logged in) user info (eg. name, email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-populate-fields-with-logged-in-user-info-eg-name-email#post-50952</link>
			<pubDate>Wed, 29 Feb 2012 16:27:24 +0000</pubDate>
			<dc:creator>Nick Davis</dc:creator>
			<guid isPermaLink="false">50952@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi guys, I'm a big fan of yours but a rare forum visitor, hoping you can help.&#60;/p&#62;
&#60;p&#62;I've created a form that can be seen by logged in users only, could I pre-populate some of the form fields (I'm specifically thinking of name/email for example) with the user's (already registered) data in the WordPress user database.&#60;/p&#62;
&#60;p&#62;That way they could tweak the info easily if they wanted or (more likely) leave it the same for the form submission, saving them typing time.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
