2017-04-20 61 views
0

我已经使用重力表单WordPress插件创建了多页表单。我创建了一个复选框,并且在选中时取消选中复选框时需要显示不同的标签。 我已经完成了使用JQuery单页形式, ,但在多页形式它不工作。 有没有做到这一点如何在Gravity表格中动态更改复选框标签

+0

你只需要在你可以写JS创建帮手js文件。当你需要它只是调用该js的功能 – Jenish

+0

finad解决方案https://www.gravityhelp.com/documentation/article/gform_post_render/ 感谢您的帮助 – ashanrupasinghe

回答

0

试试这个

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

     // destroy default Gravity Form datepicker 
     jQuery("#your_id").datepicker('destroy'); 

     // create new custom datepicker 
     jQuery("#your_id").datepicker({ defaultDate: '+7d', minDate: '+7d', gotoCurrent: true, prevText: *, showOn: 'both', buttonImage: '/wp-content/plugins/gravityforms/images/calendar.png', buttonImageOnly: true }); 

    }); 

</script> 
相关问题