Title: gravity forms shortcode not rendering properly
Last modified: June 10, 2025

---

# gravity forms shortcode not rendering properly

 *  Resolved [engeniusweb](https://wordpress.org/support/users/engeniusweb/)
 * (@engeniusweb)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/gravity-forms-shortcode-not-rendering-properly/)
 * When I try to add the gravity forms shortcode [gravityform id=”3″ title=”false”
   description=”false” ajax=”true”] to my FAB button I get the following output:
   
   Have a Question? “*” indicates required fields Name* First Last Email* PhoneCompany
   Name*MessageCAPTCHANameThis field is for validation purposes and should be left
   unchanged. /* = 0;if(!is_postback){return;}var form_content = jQuery(this).contents().
   find(‘#gform_wrapper_3’);var is_confirmation = jQuery(this).contents().find(‘#
   gform_confirmation_wrapper_3’).length > 0;var is_redirect = contents.indexOf(‘
   gformRedirect(){‘) >= 0;var is_form = form_content.length > 0 && ! is_redirect&&!
   is_confirmation;var mt = parseInt(jQuery(‘html’).css(‘margin-top’), 10) + parseInt(
   jQuery(‘body’).css(‘margin-top’), 10) + 100;if(is_form){jQuery(‘#gform_wrapper_3’).
   html(form_content.html());if(form_content.hasClass(‘gform_validation_error’)){
   jQuery(‘#gform_wrapper_3’).addClass(‘gform_validation_error’);} else {jQuery(‘#
   gform_wrapper_3’).removeClass(‘gform_validation_error’);}setTimeout( function(){/*
   delay the scroll by 50 milliseconds to fix a bug in chrome */ jQuery(document).
   scrollTop(jQuery(‘#gform_wrapper_3’).offset().top – mt); }, 50 );if(window[‘gformInitDatepicker’]){
   gformInitDatepicker();}if(window[‘gformInitPriceFields’]) {gformInitPriceFields();}
   var current_page = jQuery(‘#gform_source_page_number_3’).val();gformInitSpinner(
   3, ‘[https://sunlandlogisticssolutions.com/wp-content/plugins/gravityforms/images/spinner.svg&#8217](https://sunlandlogisticssolutions.com/wp-content/plugins/gravityforms/images/spinner.svg&#8217);,
   true );jQuery(document).trigger(‘gform_page_loaded’, [3, current_page]);window[‘
   gf_submitting_3’] = false;}else if(!is_redirect){var confirmation_content = jQuery(
   this).contents().find(‘.GF_AJAX_POSTBACK’).html();if(!confirmation_content){confirmation_content
   = contents;}jQuery(‘#gform_wrapper_3’).replaceWith(confirmation_content);jQuery(
   document).scrollTop(jQuery(‘#gf_3’).offset().top – mt);jQuery(document).trigger(‘
   gform_confirmation_loaded’, [3]);window[‘gf_submitting_3’] = false;wp.a11y.speak(
   jQuery(‘#gform_confirmation_message_3’).text());}else{jQuery(‘#gform_3’).append(
   contents);if(window[‘gformRedirect’]) {gformRedirect();}}jQuery(document).trigger(“
   gform_pre_post_render”, [{ formId: “3”, currentPage: “current_page”, abort: function(){
   this.preventDefault(); } }]); if (event && event.defaultPrevented) { return; }
   const gformWrapperDiv = document.getElementById( “gform_wrapper_3” ); if ( gformWrapperDiv){
   const visibilitySpan = document.createElement( “span” ); visibilitySpan.id = “
   gform_visibility_test_3”; gformWrapperDiv.insertAdjacentElement( “afterend”, 
   visibilitySpan ); } const visibilityTestDiv = document.getElementById( “gform_visibility_test_3”);
   let postRenderFired = false; function triggerPostRender() { if ( postRenderFired){
   return; } postRenderFired = true; gform.core.triggerPostRenderEvents( 3, current_page);
   if ( visibilityTestDiv ) { visibilityTestDiv.parentNode.removeChild( visibilityTestDiv);}}
   function debounce( func, wait, immediate ) { var timeout; return function() {
   var context = this, args = arguments; var later = function() { timeout = null;
   if ( !immediate ) func.apply( context, args ); }; var callNow = immediate && !
   timeout; clearTimeout( timeout ); timeout = setTimeout( later, wait ); if ( callNow)
   func.apply( context, args ); }; } const debouncedTriggerPostRender = debounce(
   function() { triggerPostRender(); }, 200 ); if ( visibilityTestDiv && visibilityTestDiv.
   offsetParent === null ) { const observer = new MutationObserver( ( mutations )
   => { mutations.forEach( ( mutation ) => { if ( mutation.type === ‘attributes’&&
   visibilityTestDiv.offsetParent !== null ) { debouncedTriggerPostRender(); observer.
   disconnect(); } }); }); observer.observe( document.body, { attributes: true, 
   childList: false, subtree: true, attributeFilter: [ ‘style’, ‘class’ ], }); }
   else { triggerPostRender(); } } );} ); /* ]]> */

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [engeniusweb](https://wordpress.org/support/users/engeniusweb/)
 * (@engeniusweb)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/gravity-forms-shortcode-not-rendering-properly/#post-18506303)
 * I have had to disable the plugin until this can be fixed.
 *  Plugin Support [wpkina](https://wordpress.org/support/users/wpkina/)
 * (@wpkina)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/gravity-forms-shortcode-not-rendering-properly/#post-18506838)
 * Hi [@engeniusweb](https://wordpress.org/support/users/engeniusweb/),
   Thank you
   for bringing this to our attention and sorry for the inconvenience you’re experiencing.
   🙏
 * We’ve forwarded this issue to our technical team for further investigation, and
   they’re currently working on it. We will keep you updated as soon as we have 
   a fix or a suitable workaround.
 * Thanks again for your patience and support!
   Warm regards,KinaFAB Support Team
 *  Plugin Support [wpkina](https://wordpress.org/support/users/wpkina/)
 * (@wpkina)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/gravity-forms-shortcode-not-rendering-properly/#post-18516177)
 * Hi [@engeniusweb](https://wordpress.org/support/users/engeniusweb/),
   Thanks a
   lot for reporting this!
 * Just to let you know, the issue with the Gravity Forms shortcode not working 
   properly inside the Floating Awesome Button has been **fixed in version 2.15.0**.
   Please update to the latest version and check again.
 * If you still run into any issues or have other questions, feel free to reach 
   out — we’re happy to help! 😊
 * Best regards,
   KinaFAB Support Team
 *  Thread Starter [engeniusweb](https://wordpress.org/support/users/engeniusweb/)
 * (@engeniusweb)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/gravity-forms-shortcode-not-rendering-properly/#post-18516237)
 * great – it seems to be working properly now! Thanks so much – glad we could help
   find a bug!
 *  Plugin Support [wpkina](https://wordpress.org/support/users/wpkina/)
 * (@wpkina)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/gravity-forms-shortcode-not-rendering-properly/#post-18520351)
 * Awesome! 🎉 [@engeniusweb](https://wordpress.org/support/users/engeniusweb/) 
   
   Thanks again for your help in spotting that bug — really appreciate it 🙏If you
   ever need anything else or have feedback, feel free to reach out anytime.
 * Have a great day! 😊
   Best regards,KinaFAB Support Team
 *  Thread Starter [engeniusweb](https://wordpress.org/support/users/engeniusweb/)
 * (@engeniusweb)
 * [10 months ago](https://wordpress.org/support/topic/gravity-forms-shortcode-not-rendering-properly/#post-18569360)
 * Hello! It looks like another update was rolled out, and we’re having the same
   issue again.
 * Editing to add – it actually looks like this time it’s related to a different
   plugin, please disregard!
    -  This reply was modified 10 months ago by [engeniusweb](https://wordpress.org/support/users/engeniusweb/).
    -  This reply was modified 10 months ago by [engeniusweb](https://wordpress.org/support/users/engeniusweb/).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘gravity forms shortcode not rendering properly’ is closed to new replies.

 * ![](https://ps.w.org/floating-awesome-button/assets/icon-256x256.gif?rev=3271119)
 * [Floating Awesome Button (Sticky Button, Popup, Toast) & 200+ Website Custom Interactive Element](https://wordpress.org/plugins/floating-awesome-button/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/floating-awesome-button/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/floating-awesome-button/)
 * [Active Topics](https://wordpress.org/support/plugin/floating-awesome-button/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/floating-awesome-button/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/floating-awesome-button/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [engeniusweb](https://wordpress.org/support/users/engeniusweb/)
 * Last activity: [10 months ago](https://wordpress.org/support/topic/gravity-forms-shortcode-not-rendering-properly/#post-18569360)
 * Status: resolved