<?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: Use existing login system</title>
		<link>https://legacy.forums.gravityhelp.com/topic/use-existing-login-system</link>
		<description>Gravity Support Forums Topic: Use existing login system</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 05:18:09 +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/use-existing-login-system" rel="self" type="application/rss+xml" />

		<item>
			<title>aechols on "Use existing login system"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-existing-login-system#post-79499</link>
			<pubDate>Mon, 08 Oct 2012 01:28:39 +0000</pubDate>
			<dc:creator>aechols</dc:creator>
			<guid isPermaLink="false">79499@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Through some crazy coding, I was able to hack it together.  If the field exists, then it makes the form require our authentication system by including a php file.  That field would then pull in the username from our authentication system.  It's that reason that it would have to be checked every time, otherwise it wouldn't be pulling in the username from our system.  This is the code I eventually used that made it so it didn't matter if it was checked or not by changing around from other coding I've seen:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
// Adds the input area to the external side
add_action( &#38;quot;gform_field_input&#38;quot; , &#38;quot;wps_netID_field_input&#38;quot;, 10, 5 );
function wps_netID_field_input ( $input, $field, $value, $lead_id, $form_id ){
require(&#38;#39;auth.php&#38;#39;);
    if ( $field[&#38;quot;type&#38;quot;] == &#38;quot;netID&#38;quot; ) {
		$max_chars = &#38;quot;&#38;quot;;
		if(!IS_ADMIN &#38;amp;&#38;amp; !empty($field[&#38;quot;maxLength&#38;quot;]) &#38;amp;&#38;amp; is_numeric($field[&#38;quot;maxLength&#38;quot;]))
			$max_chars = self::get_counter_script($form_id, $field_id, $field[&#38;quot;maxLength&#38;quot;]);

		$input_name = $form_id .&#38;#39;_&#38;#39; . $field[&#38;quot;id&#38;quot;];
		$inputnamenum = $field[&#38;quot;id&#38;quot;];
		$tabindex = GFCommon::get_tabindex();
		$css = isset( $field[&#38;#39;cssClass&#38;#39;] ) ? $field[&#38;#39;cssClass&#38;#39;] : &#38;#39;&#38;#39;;
		return sprintf(&#38;quot;&#38;lt;div class=&#38;#39;ginput_container&#38;#39;&#38;gt;&#38;lt;input readonly name=&#38;#39;input_$inputnamenum&#38;#39; id=&#38;#39;input_$input_name&#38;#39; type=&#38;#39;text&#38;#39; value=&#38;#39;$auth_object-&#38;gt;netid&#38;#39; class=&#38;#39;small&#38;#39; {$tabindex} {$logic_event} %s/&#38;gt;&#38;lt;/div&#38;gt;&#38;quot;, $id, $field_id, esc_attr($value), esc_attr($class), $disabled_text);

    }

    return $input;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Use existing login system"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-existing-login-system#post-79486</link>
			<pubDate>Mon, 08 Oct 2012 00:43:33 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">79486@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
is if there's a way to automatically make the &#34;Allow field to be populated dynamically&#34; checked and filled in.&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;What do you mean here?  Are you showing a field and requiring users to check the box in every case for some reason?  What does this field hold?&#60;/p&#62;
&#60;p&#62;Posting this link here for reference:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/allow-field-to-be-populated-dynamically-always-set-for-custom-field?replies=2&#38;amp;message=closed#post-79441&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/allow-field-to-be-populated-dynamically-always-set-for-custom-field?replies=2&#38;amp;message=closed#post-79441&#60;/a&#62; (closed as a duplicate)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aechols on "Use existing login system"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-existing-login-system#post-79322</link>
			<pubDate>Sat, 06 Oct 2012 20:08:58 +0000</pubDate>
			<dc:creator>aechols</dc:creator>
			<guid isPermaLink="false">79322@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So, I've got it pretty much working by following some somewhat related info and having to hack our login system a little to make it work.  The only thing I'm now trying to figure out is if there's a way to automatically make the &#34;Allow field to be populated dynamically&#34; checked and filled in.  I'm using POST data, and it's working fine pulling it in, but if someone forgets to check that box and put in the parameter name, it'll be useless.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aechols on "Use existing login system"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-existing-login-system#post-79315</link>
			<pubDate>Sat, 06 Oct 2012 17:44:55 +0000</pubDate>
			<dc:creator>aechols</dc:creator>
			<guid isPermaLink="false">79315@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We're using gravity forms on a university website.  My idea is a little complex, so hopefully it'll make sense.&#60;/p&#62;
&#60;p&#62;On our old non-Wordpress website, we'd make forms using PHP and include a file at the top called auth.php.  When we include that file, it requires people to login with their university ID before they could see the page.  Once logged in, it would show the page.  We'd also be able to grab the ID and put it in a read-only field so that people could only submit once.&#60;/p&#62;
&#60;p&#62;Is this scenario possible, and if so, does anyone have any ideas on how to make it happen:  I'd like to make it so that if anyone creates a field called &#34;AuthID&#34;, it would automatically make the form software include the auth.php file so that people would have to log in.  We'd also set it so that the AuthID field was read only and pull in their ID.  This would allow us to have students make forms and only need to include that field, and not have to do any other coding to make it grab the ID.  If the form doesn't include that field, then it wouldn't require anyone to sign in.&#60;/p&#62;
&#60;p&#62;Is something like this possible?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
