Search code examples
phpjquerywordpressgravity-forms-pluginmultipage

How to change checkbox label dynamically in Gravity form


I have created a multi page form using gravity form WordPress plugin. I have created a check box and need to show different label when checked and unchecked the checkbox. I have done that using JQuery for single page form, but in multi page forms It dose not work. Is there any proper way to do that


Solution

  • Multi page Gravity form load other page without reloading whole web page, So if write jQuery that may not identify the hidden part of the form. So we can use

    jQuery(document).bind('gform_post_render', function() {});
    

    to fire our jQuery function after form pages load.

    Ref: https://www.gravityhelp.com/documentation/article/gform_post_render/