<?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 Tag: function call - Recent Topics</title>
		<link>https://legacy.forums.gravityhelp.com/tags/function-call</link>
		<description>Gravity Support Forums Tag: function call - Recent Topics</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:16:45 +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/tags/function-call/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>1ternet on "Using avgrund.js for modal windows"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-avgrundjs-for-modal-windows#post-176515</link>
			<pubDate>Tue, 19 Mar 2013 06:03:56 +0000</pubDate>
			<dc:creator>1ternet</dc:creator>
			<guid isPermaLink="false">176515@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi !&#60;/p&#62;
&#60;p&#62;I'm using the excellent Gravity Forms for a client. I need to open some of my forms in modal windows, and for many reasons we choose to use &#60;a href=&#34;https://github.com/voronianski/jquery.avgrund.js&#34; rel=&#34;nofollow&#34;&#62;avgrund.js&#60;/a&#62; for modals.&#60;/p&#62;
&#60;p&#62;I've read many posts everywhere on how to open a form in a modal using fancybox &#38;amp; colorbox, thus none of them helped me. &#60;/p&#62;
&#60;p&#62;Avgrund doesn't work like fancybox : it needs to have the modal's content as a 'template&#34; parameter value, and I could'nt get it to work using gravity forms function call or playing shortcode. I tried to call the form before the script and then get it through a jquery function but my skills don't seem to be enough.&#60;/p&#62;
&#60;p&#62;May you have any suggestions ? I also mailed avgrund's author but I wanted to see if you could figure a good way to do that.&#60;/p&#62;
&#60;p&#62;Thanks a lot for this plugin and the support forum ( I already found some help reading it :D ).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MVMG on "Can you put a form in a php page?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-you-put-a-form-in-a-php-page#post-169026</link>
			<pubDate>Tue, 12 Mar 2013 15:42:47 +0000</pubDate>
			<dc:creator>MVMG</dc:creator>
			<guid isPermaLink="false">169026@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm working on a thank you page for a shopping cart plugin. The page is a standard php page. I'd like to have a gravity form in the page for client file uploads. The page is not editable within the WP standard editor and therefor I can not use short code to insert it (at least not that I know how). &#60;/p&#62;
&#60;p&#62;Can someone tell me how I might go about doing this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>seangrove on "Hardcoding - NAME of form not working."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hardcoding-name-of-form-not-working#post-160163</link>
			<pubDate>Mon, 04 Mar 2013 15:12:50 +0000</pubDate>
			<dc:creator>seangrove</dc:creator>
			<guid isPermaLink="false">160163@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Have 1 form and parsed the url query to go to form 2  I have created a new page template just for the Gravity Forms.  So as.&#60;/p&#62;
&#60;p&#62;$form_name =  urldecode($form_name) ;&#60;/p&#62;
&#60;p&#62;gravity_form(  &#34;'&#34; . $form_name   .  &#34;'&#34;    false, false, false, '', true, 12);&#60;br /&#62;
//  This does not work but  &#60;/p&#62;
&#60;p&#62;if ( $form_name = 'This Quote Form' )  {&#60;br /&#62;
	$form_name  =   3   ;   }&#60;/p&#62;
&#60;p&#62;//    The form name is correct but does not work, however the form # does work.&#60;/p&#62;
&#60;p&#62;// Do I have to hard code every form and parse them into there numbers?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stankobrin on "Dynamically call a different gravity form based on custom field in a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-call-a-different-gravity-form-based-on-custom-field-in-a-post#post-154186</link>
			<pubDate>Mon, 25 Feb 2013 10:44:40 +0000</pubDate>
			<dc:creator>stankobrin</dc:creator>
			<guid isPermaLink="false">154186@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi GF&#60;/p&#62;
&#60;p&#62;I have a particular case where I need to assign a different Gravity Form to each post in a Wordpress query. We have added an &#34;id&#34; custom field to the backend which references the gravity form id. &#60;/p&#62;
&#60;p&#62;What we need now is way to (via php code) call that gravity from but replace the form id with the custom field value.&#60;/p&#62;
&#60;p&#62;This is the code we have tried:&#60;/p&#62;
&#60;p&#62; &#38;lt;?php $formid = the_field('bid_form_id');&#60;br /&#62;
        gravity_form($formid, false, false, false, '', false, 12); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;However we are receiving an invalid argument error.&#60;/p&#62;
&#60;p&#62;Is this possible and if so, how would be go about implementing it?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>1-phantomdentist on "Google web font not loading when using Gravity forms shortcode in header"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-web-font-not-loading-when-using-gravity-forms-shortcode-in-header#post-150257</link>
			<pubDate>Tue, 19 Feb 2013 12:37:29 +0000</pubDate>
			<dc:creator>1-phantomdentist</dc:creator>
			<guid isPermaLink="false">150257@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;When using&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php echo do_shortcode(&#38;#39;[gravityform id=&#38;quot;2&#38;quot; name=&#38;quot;Contact Mini&#38;quot; title=&#38;quot;false&#38;quot; description=&#38;quot;false&#38;quot;]&#38;#39;); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;the google webfont &#34;Roboto Condensed&#34; does not load on page refresh. I have tried removing the echoed shortcode and the issue is fixed. If you navigate to any page there is no issue, only when refreshing a page you are already on using a refresh button or hitting f5. &#60;/p&#62;
&#60;p&#62;This issue occurs on windows 7 in Chrome v 24.0.1312.57. I can't replicate it in firefox, safari oe ie9&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;!DOCTYPE html&#38;gt;
&#38;lt;!-- Add browser classes to html tag --&#38;gt;
&#38;lt;!--[if lt IE 7]&#38;gt;  &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt; class=&#38;quot;ie ie6 lte9 lte8 lte7&#38;quot;&#38;gt; &#38;lt;![endif]--&#38;gt;
&#38;lt;!--[if IE 7]&#38;gt;     &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt; class=&#38;quot;ie ie7 lte9 lte8 lte7&#38;quot;&#38;gt; &#38;lt;![endif]--&#38;gt;
&#38;lt;!--[if IE 8]&#38;gt;     &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt; class=&#38;quot;ie ie8 lte9 lte8&#38;quot;&#38;gt; &#38;lt;![endif]--&#38;gt;
&#38;lt;!--[if IE 9]&#38;gt;     &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt; class=&#38;quot;ie ie9 lte9&#38;quot;&#38;gt; &#38;lt;![endif]--&#38;gt;
&#38;lt;!--[if gt IE 9]&#38;gt;  &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt;&#38;gt; &#38;lt;![endif]--&#38;gt;
&#38;lt;!--[if !IE]&#38;gt; &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt;&#38;gt; &#38;lt;![endif]--&#38;gt;

&#38;lt;!--[if lt IE 9]&#38;gt;
   &#38;lt;script&#38;gt;
      document.createElement(&#38;#39;header&#38;#39;);
      document.createElement(&#38;#39;nav&#38;#39;);
      document.createElement(&#38;#39;section&#38;#39;);
      document.createElement(&#38;#39;article&#38;#39;);
      document.createElement(&#38;#39;aside&#38;#39;);
      document.createElement(&#38;#39;footer&#38;#39;);
   &#38;lt;/script&#38;gt;
&#38;lt;![endif]--&#38;gt;

&#38;lt;head&#38;gt;
&#38;lt;!--
******************************************
Meta stuff
******************************************
--&#38;gt;
&#38;lt;meta charset=&#38;quot;&#38;lt;?php bloginfo( &#38;#39;charset&#38;#39; ); ?&#38;gt;&#38;quot; /&#38;gt;
&#38;lt;meta name=&#38;quot;SKYPE_TOOLBAR&#38;quot; content =&#38;quot;SKYPE_TOOLBAR_PARSER_COMPATIBLE&#38;quot;/&#38;gt;
&#38;lt;title&#38;gt;&#38;lt;?php wp_title(&#38;#39;&#38;#39;);?&#38;gt;&#38;lt;/title&#38;gt;

&#38;lt;!--
******************************************
Link stuff
******************************************
--&#38;gt;
&#38;lt;link rel=&#38;quot;icon&#38;quot; type=&#38;quot;image/png&#38;quot; href=&#38;quot;&#38;lt;?php echo get_template_directory_uri(); ?&#38;gt;/images/favicon.png&#38;quot;/&#38;gt;
&#38;lt;link href=&#38;#39;http://fonts.googleapis.com/css?family=Roboto+Condensed&#38;#39; rel=&#38;#39;stylesheet&#38;#39; type=&#38;#39;text/css&#38;#39;&#38;gt;
&#38;lt;link href=&#38;#39;http://fonts.googleapis.com/css?family=Droid+Sans&#38;#39; rel=&#38;#39;stylesheet&#38;#39; type=&#38;#39;text/css&#38;#39;&#38;gt;
&#38;lt;link href=&#38;#39;http://fonts.googleapis.com/css?family=Droid+Serif&#38;#39; rel=&#38;#39;stylesheet&#38;#39; type=&#38;#39;text/css&#38;#39;&#38;gt;
&#38;lt;link rel=&#38;quot;profile&#38;quot; href=&#38;quot;http://gmpg.org/xfn/11&#38;quot; /&#38;gt;
&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;all&#38;quot; href=&#38;quot;&#38;lt;?php bloginfo( &#38;#39;stylesheet_url&#38;#39; ); ?&#38;gt;&#38;quot;/&#38;gt;
&#38;lt;link rel=&#38;quot;pingback&#38;quot; href=&#38;quot;&#38;lt;?php bloginfo( &#38;#39;pingback_url&#38;#39; ); ?&#38;gt;&#38;quot; /&#38;gt;

&#38;lt;!-- Add Wordpress head hook stuff --&#38;gt;
&#38;lt;?php wp_head();?&#38;gt;

&#38;lt;/head&#38;gt;

&#38;lt;!--
******************************************
Start of body
******************************************
--&#38;gt;
&#38;lt;body &#38;lt;?php body_class(); ?&#38;gt;&#38;gt;

	&#38;lt;div class=&#38;quot;wrapper-main&#38;quot;&#38;gt;

    &#38;lt;div class=&#38;quot;header-form&#38;quot;&#38;gt;
    	&#38;lt;?php echo do_shortcode(&#38;#39;[gravityform id=&#38;quot;2&#38;quot; name=&#38;quot;Contact Mini&#38;quot; title=&#38;quot;false&#38;quot; description=&#38;quot;false&#38;quot;]&#38;#39;); ?&#38;gt;
    	&#38;lt;a class=&#38;quot;form-tab&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;
    &#38;lt;/div&#38;gt;&#38;lt;!-- end header-form --&#38;gt;

    	&#38;lt;header class=&#38;quot;header&#38;quot;&#38;gt;
        	&#38;lt;div class=&#38;quot;utility-bar&#38;quot;&#38;gt;
            	&#38;lt;div class=&#38;quot;contact-info&#38;quot;&#38;gt;
				&#38;lt;?php
				if( function_exists(&#38;#39;get_field&#38;#39;) ) {
					if( get_field(&#38;#39;header_contact_details&#38;#39;,&#38;#39;options&#38;#39;) ) {
						echo do_shortcode( get_field(&#38;#39;header_contact_details&#38;#39;,&#38;#39;options&#38;#39;) );
					}
				}
				?&#38;gt;
                &#38;lt;/div&#38;gt;
            	&#38;lt;nav class=&#38;quot;nav-utility clearfix&#38;quot;&#38;gt;&#38;lt;?php wp_nav_menu( array( &#38;#39;theme_location&#38;#39; =&#38;gt; &#38;#39;menu-utility&#38;#39;, &#38;#39;container&#38;#39; =&#38;gt; &#38;#39;&#38;#39;) ); ?&#38;gt;&#38;lt;/nav&#38;gt;
            &#38;lt;/div&#38;gt;&#38;lt;!-- end utility-bar --&#38;gt;
        	&#38;lt;div class=&#38;quot;header-content&#38;quot;&#38;gt;
            	&#38;lt;a class=&#38;quot;logo&#38;quot; href=&#38;quot;&#38;lt;?php echo home_url(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php bloginfo(&#38;#39;name&#38;#39;); ?&#38;gt;&#38;lt;/a&#38;gt;
				&#38;lt;nav class=&#38;quot;nav-main&#38;quot;&#38;gt;&#38;lt;?php wp_nav_menu( array( &#38;#39;theme_location&#38;#39; =&#38;gt; &#38;#39;menu-main&#38;#39;, &#38;#39;container&#38;#39; =&#38;gt; &#38;#39;&#38;#39;) ); ?&#38;gt;&#38;lt;/nav&#38;gt;
            &#38;lt;/div&#38;gt;&#38;lt;!-- end header-content --&#38;gt;
        &#38;lt;/header&#38;gt;&#38;lt;!-- end header --&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The font is loaded with css from style.css, rule as follows&#60;/p&#62;
&#60;p&#62;font:300 normal 35px 'Roboto Condensed', Arial, Helvetica, sans-serif; color:#00335F;&#60;/p&#62;
&#60;p&#62;I can give access to the development site if you cn provide an ip to unblock.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ronimarin on "Dynamically populate field within template file"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-field-within-template-file#post-148953</link>
			<pubDate>Mon, 18 Feb 2013 03:42:16 +0000</pubDate>
			<dc:creator>ronimarin</dc:creator>
			<guid isPermaLink="false">148953@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I want to populate a form field with current post custom field that contains email address. I want to do it via template when embedding a form. Form is always the same, just this field needs to be populated in order to send enquiry directly to that email.&#60;/p&#62;
&#60;p&#62;I'm using this chunk of code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$owneremail = &#38;#39;\&#38;#39;owneremail\&#38;#39;=&#38;gt;\&#38;#39;&#38;#39;.$o_email.&#38;#39;\&#38;#39;&#38;#39;;
echo gravity_form(1, false, false, array($owneremail), &#38;#39;&#38;#39;, false);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;echoing $owneremail gives 'owneremail'=&#38;gt;'example@example.com' which should be fine according to your docs.&#60;br /&#62;
Form has a field that has checkbox ticked to populate dynamically with value owneremail.&#60;/p&#62;
&#60;p&#62;And it doesn't get filled out.&#60;br /&#62;
You can see the form here: &#60;a href=&#34;http://holidaysincroatia.hr/summer/accommodation/apartmani-nije-mi-dobro/#cnt-form&#34; rel=&#34;nofollow&#34;&#62;http://holidaysincroatia.hr/summer/accommodation/apartmani-nije-mi-dobro/#cnt-form&#60;/a&#62;&#60;br /&#62;
WP 3.5.1&#60;br /&#62;
GF 1.6.11
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ken on "Hide form if past a certain date"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hide-form-if-past-a-certain-date#post-85885</link>
			<pubDate>Wed, 31 Oct 2012 17:30:15 +0000</pubDate>
			<dc:creator>Ken</dc:creator>
			<guid isPermaLink="false">85885@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have 10 registration forms created for 10 events we hold at random times during the month.&#60;/p&#62;
&#60;p&#62;We currently use Event Calendar Pro for our event creation. When I add a new event I just add the shortcode to the event for one of the forms.&#60;/p&#62;
&#60;p&#62;I have created two hidden fields in each of the different forms.&#60;br /&#62;
1. &#34;{embed_post:post_title}&#34; is the merge tag for the post title - Which happens to always be the name of the event&#60;br /&#62;
2. &#34;event_date&#34; and is a dynamically populated field&#60;/p&#62;
&#60;p&#62;The &#34;event_date&#34; is populated with a function that gets the Start Date from ECP:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/********************************************************************
Add parameter to Gravity Forms
********************************************************************/
add_filter(&#38;#39;gform_field_value_event_date&#38;#39;, &#38;#39;my_custom_population_function&#38;#39;);
function my_custom_population_function($value){
    return tribe_get_start_date(null, false, &#38;#39;F j, Y - g:i a&#38;#39;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This all works great and when I form is submitted on an event the title of the email is &#34;Event Title - Event Date&#34; so I do not have to keep creating new forms every time we have a new event.&#60;/p&#62;
&#60;p&#62;I am now being asked if I can disable/hide the forms for past events. Is there a way to use the function above to determine if the value is past the current date and hide the form?&#60;/p&#62;
&#60;p&#62;I was looking at the conditional logic for the form settings maybe I could create a new hidden field to determine if it is in the past and pass a variable of &#34;past-event&#34;? then check the hidden field for that value?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>giraffeservices on "Phone Number, required full number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/phone-number-required-full-number#post-81376</link>
			<pubDate>Tue, 16 Oct 2012 07:50:33 +0000</pubDate>
			<dc:creator>giraffeservices</dc:creator>
			<guid isPermaLink="false">81376@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I am using single input field with mask for entering UK number.&#60;br /&#62;
Problem I have is how to make sure people have to input all numbers.&#60;/p&#62;
&#60;p&#62;My mask is 99999999999 which should result in numbers eg. 01642123456&#60;/p&#62;
&#60;p&#62;I had few situation that clients entered space which resulted with 01642 12345&#60;br /&#62;
or just forgot to enter last digit.&#60;/p&#62;
&#60;p&#62;Is there a way to make sure all numbers are entered and if not warning is displayed?&#60;/p&#62;
&#60;p&#62;Cheers&#60;br /&#62;
Kris
&#60;/p&#62;</description>
		</item>
		<item>
			<title>avenue on "Forms with conditional logic do not appear"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/forms-with-conditional-logic-do-not-appear#post-80949</link>
			<pubDate>Sun, 14 Oct 2012 22:17:32 +0000</pubDate>
			<dc:creator>avenue</dc:creator>
			<guid isPermaLink="false">80949@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;My forms were there this morning, this evening they're not. Forms without conditional logic seem to be fine.&#60;/p&#62;
&#60;p&#62;Can't post a link due to client confidentiality. Will share link with GF tech support on email request. 1.6.8.1 with latest WP. All other plugins disabled. COTS theme, but not ThemeForest. Thanks in advance -
&#60;/p&#62;</description>
		</item>
		<item>
			<title>taylorr on "Hard Code Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hard-code-form#post-75577</link>
			<pubDate>Sat, 15 Sep 2012 18:03:36 +0000</pubDate>
			<dc:creator>taylorr</dc:creator>
			<guid isPermaLink="false">75577@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How do I hard code a form - in case I want to drop it in raw (not as a shortcode), into widget area which is disconnected from the theme.&#60;/p&#62;
&#60;p&#62;Taylor
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
