Posts

Showing posts with the label Wordpress

Gravity form tweaks and techniques

Gravity form tweaks Gravity form -  Multiple form instances on same page Sometime you need to call gravity form multiple times on the same page but this needs some amendments to the normal flow of gravity form. Here I am going to demonstrate  how you will meet this requirement. I have used one wp plugin "Gravity Forms: Multiple Form Instances" and done some modifications to facilitate the following requirement : 1- Need to make it work for a single form and leave rest as it is as most of the validation is based on the form ids. 2- In multiple form instance plugin random ids are generated to differentiate same form access as multiple instance. I have made it little simple by using sequential ids rather than random number. Like : Form id - 15 will be accessed over one page as 151, 152,153 and so on. Follow the below steps: 1- Perform below amendment in the function "gform_get_form_filter" definition in plugin file as under. public static $cnt = 0; self...