I am setting up a form inside the footer widget using a tooltip display. I am wanting to use the shortcode for my form (Gravity Forms) instead of coding a form.
The form does show and sends but it does not display the "Confirmation Message". Upon Submitting the tooltip closes and when you mouse over presents the Confirmation Message, instead of the form again. I feel this is someway Ajax related but do not know how to precede.
Parameters
> Footer Widget
> Tooltip to display "Form" Shortcode
> Sample Page of current setup: http://www.nonprofit-software.co/education/
-- Cell Phone Footer Image
> Form Tool: Gravity Forms
> Theme: Dejavu by http://www.mysitemyway.com
Code:
[tooltip custom_id="image1" width="450" position="top" close="true" trigger='<img alt="" src="https://s3.amazonaws.com/nonprofit-solutions/icon-call-me-now.jpg" class="framed"/>']
[gravityform id="1" name="Call Me Now" ]
[/tooltip]
Below are the code changes I made to get it to work in part.
I updated my theme " /lib/shortcodes/13-tooltips.php" :
Modified this,
echo '<div id="' . $tip_load . '" class="tooltip_load"' . ( !empty( $textcolor ) ? ' style="color:' . $textcolor . ';"' : '' ) . '>' . $content . '</div>';
Changed it to this:
echo '<div id="' . $tip_load . '" class="tooltip_load"' . ( !empty( $textcolor ) ? ' style="color:' . $textcolor . ';"' : '' ) . '>' . do_shortcode($content) . '</div>';
Modified this:
echo '<div id = "custom_tooltip_content'.$custom_id.'" class = "tooltip_load">'.$content.'</div>';
Changed it to this:
echo '<div id = "custom_tooltip_content'.$custom_id.'" class = "tooltip_load">'.do_shortcode($content).'</div>';
Thank you
Joe Johnson
jjohnson@n-ppi.com