How to use Gravity Form on VDP

How to switch default form with a Gravity Form on the VDP

The following code only switches out the form it does not add any styling or change the  title of the form.

In order to use a Gravity Form on the VDP, you first must add the form you would like to use in the ‘Inventory Vehicle Detail Page’ widget area.

Then add this javascript code to your theme or a code plugin like “Scripts n Styles” place in the  </body> section.

[cc lang=’javascript’ ]

/*changes out Armadillo contact form with a gravity form*/
jQuery(‘.armadillo-column-left .armadillo-form #vehicle-inquiry’).remove();
jQuery(‘.armadillo-column-left .armadillo-form’).append(jQuery(‘#sidebar-widget-area .gform_wrapper’));
jQuery(‘.armadillo-form .gform_wrapper .gform_heading’).css({‘display’:’none’});

[/cc]

 

*Note: If you are using the inventory theme ‘Armadillo_v2′, you will need to change ‘left’ to ‘right’ in the script.

Leave a Reply