<?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: How to populate a single line text field based on select field value</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-populate-a-single-line-text-field-based-on-select-field-value</link>
		<description>Gravity Support Forums Topic: How to populate a single line text field based on select field value</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 17:00:47 +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/how-to-populate-a-single-line-text-field-based-on-select-field-value" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "How to populate a single line text field based on select field value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-populate-a-single-line-text-field-based-on-select-field-value#post-23674</link>
			<pubDate>Tue, 19 Apr 2011 11:17:39 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">23674@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The problem is PHP runs when the form is submitted.  What you want is for code to run when a drop down is selected.  That requires Javascript usage, because no form action is taking place so there is no place for the PHP to execute in that example.  Javascript can run when the drop down selection is made, and then populate the field you want to populate with the value.  So you would want to use jQuery.&#60;/p&#62;
&#60;p&#62;Unless you don't want to show the user the pre-populated value and only have it happen on submit.  Is this what you want or do you want to have it be visible to the user?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stefanweise on "How to populate a single line text field based on select field value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-populate-a-single-line-text-field-based-on-select-field-value#post-23671</link>
			<pubDate>Tue, 19 Apr 2011 11:03:40 +0000</pubDate>
			<dc:creator>stefanweise</dc:creator>
			<guid isPermaLink="false">23671@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;not too familiar with writing jQuery. I thought that this is something that PHP could handle, like a function that grabs the value and passes that to another field?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "How to populate a single line text field based on select field value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-populate-a-single-line-text-field-based-on-select-field-value#post-23669</link>
			<pubDate>Tue, 19 Apr 2011 10:52:19 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">23669@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm guessing nobody has any suggestions for this customization. What you want to do requires custom jQuery.  Are you familiar with writing jQuery?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stefanweise on "How to populate a single line text field based on select field value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-populate-a-single-line-text-field-based-on-select-field-value#post-23657</link>
			<pubDate>Tue, 19 Apr 2011 08:32:42 +0000</pubDate>
			<dc:creator>stefanweise</dc:creator>
			<guid isPermaLink="false">23657@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stefanweise on "How to populate a single line text field based on select field value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-populate-a-single-line-text-field-based-on-select-field-value#post-23542</link>
			<pubDate>Mon, 18 Apr 2011 09:39:19 +0000</pubDate>
			<dc:creator>stefanweise</dc:creator>
			<guid isPermaLink="false">23542@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Anyone?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stefanweise on "How to populate a single line text field based on select field value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-populate-a-single-line-text-field-based-on-select-field-value#post-23491</link>
			<pubDate>Sun, 17 Apr 2011 12:31:22 +0000</pubDate>
			<dc:creator>stefanweise</dc:creator>
			<guid isPermaLink="false">23491@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just wanted to see if anyone can help me out with this one. Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stefanweise on "How to populate a single line text field based on select field value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-populate-a-single-line-text-field-based-on-select-field-value#post-23276</link>
			<pubDate>Thu, 14 Apr 2011 12:32:13 +0000</pubDate>
			<dc:creator>stefanweise</dc:creator>
			<guid isPermaLink="false">23276@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not a PHP deveoper, but i can make sense of most of it with a little guidance, so forgive my ignorance.&#60;/p&#62;
&#60;p&#62;I have a contact lens order form with a drop down field containing all of the different brands of contacts. Below that i have two rows of fields, left eye and right eye. Each row has a combination of single line text fields and dropdowns that appear if either right eye or left eye are checked. The &#34;diameter&#34; single text field however needs to be pre-populated with a number value based on the brand that is selected in the brand drop down field. I know that fields can be dynamically populated based on another fields' value, i just couldn't find any examples of this that would apply to my form. Also, what syntax do i need to use in the bradn drop down field for &#34;Brand &#124; 14.00&#34; so that the user only sees the brand name, but the value of their choice is in fact the diameter value to be passed to the diameter single line text feild. Can anyone help me out here?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
