<?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: Submitting form with custom hidden field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/submitting-form-with-custom-hidden-field</link>
		<description>Gravity Support Forums Topic: Submitting form with custom hidden field</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 22:05:06 +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/submitting-form-with-custom-hidden-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Tristan on "Submitting form with custom hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/submitting-form-with-custom-hidden-field#post-30203</link>
			<pubDate>Sun, 17 Jul 2011 08:24:39 +0000</pubDate>
			<dc:creator>Tristan</dc:creator>
			<guid isPermaLink="false">30203@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey Hugo,&#60;/p&#62;
&#60;p&#62;Thanks for the code.  Looking at the database structure i've realised that it probably won't suit me.  I need all the relevant data in a row, not in separate rows as GF does things by default.&#60;/p&#62;
&#60;p&#62;I would need to be able to get data for all fields based on the user_login or the page_url, but pertaining to a particular date.  Hmmm, come to think of it, maybe it is possible, although rows seems like it would make things easier.&#60;/p&#62;
&#60;p&#62;Hmmm.  At least I know where to go from here to keep working on the idea.&#60;/p&#62;
&#60;p&#62;Thanks all.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hugocf on "Submitting form with custom hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/submitting-form-with-custom-hidden-field#post-30081</link>
			<pubDate>Fri, 15 Jul 2011 06:24:52 +0000</pubDate>
			<dc:creator>hugocf</dc:creator>
			<guid isPermaLink="false">30081@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Like Chris said, you can use the &#60;code&#62;{user:user_login}&#60;/code&#62; fields anywhere in the form definition.&#60;/p&#62;
&#60;p&#62;I have a similar situation where I included that in the form submission itself:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;created a hidden field in the form&#60;/li&#62;
&#60;li&#62;set its default value to &#60;code&#62;{user:user_login}&#60;/code&#62;&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;So, for logged in users, that hidden field will contain his username. For guest users, that field will be empty, so it won't even exist in the lead details db table.&#60;/p&#62;
&#60;p&#62;Your db query would therefore be something like this (with example &#60;code&#62;filter.*&#60;/code&#62; values):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;select entry.id, entry.lead_id, entry.field_number, entry.value
from wp_rg_lead_detail entry
left join wp_rg_lead_detail filter on filter.lead_id = entry.lead_id
where filter.form_id = 1
  and filter.field_number = 1
  and filter.value like &#38;#39;%username%&#38;#39;
order by entry.lead_id, entry.field_number;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Tristan on "Submitting form with custom hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/submitting-form-with-custom-hidden-field#post-30064</link>
			<pubDate>Thu, 14 Jul 2011 21:23:46 +0000</pubDate>
			<dc:creator>Tristan</dc:creator>
			<guid isPermaLink="false">30064@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey Chris,&#60;/p&#62;
&#60;p&#62;Thanks for your reply.  I should have provided the full picture of what I'm trying to achieve.&#60;/p&#62;
&#60;p&#62;Basically, I want my users to report statistics every week and I want those statistics tied to individual users.  I want to then show the previous week/month/year statistics on a chart so I need these statistics to go into a database.&#60;/p&#62;
&#60;p&#62;That's why I need some way of including a username so that I can query the database using a WHERE statement to select only the statistics tied to a particular user.  I also need to link the statistics to a particular action, thus my requirement to submit the name of the page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Submitting form with custom hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/submitting-form-with-custom-hidden-field#post-29987</link>
			<pubDate>Thu, 14 Jul 2011 11:37:07 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">29987@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That information is already captured by Gravity Forms.  Assuming you want it send in the admin email notification, you can just add these two fields to your notification:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;{user:user_login}
{embed_url}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;along with whatever else you want sent in the notification.  If you want to do something else with the information, please post your use case and we'll help you out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tristan on "Submitting form with custom hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/submitting-form-with-custom-hidden-field#post-29965</link>
			<pubDate>Thu, 14 Jul 2011 04:44:08 +0000</pubDate>
			<dc:creator>Tristan</dc:creator>
			<guid isPermaLink="false">29965@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please point me in the right direction if this has already been addressed.  I did a few searched but couldn't find anything.&#60;/p&#62;
&#60;p&#62;I'm wondering how I might go about appending a hidden field to a form submission?&#60;/p&#62;
&#60;p&#62;I have certain forms that will be submitted by logged in users and I want to append their username and the name of the Page their on to the form, but make this invisible on the form.&#60;/p&#62;
&#60;p&#62;Any pointers?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
