tbkcp_gravity_forms.php | |
Adds extra gravity form assets to enhance the plugin (validation and columns css | Author: Paul MacLean |
tbkcp_gravity_forms | Adds extra gravity form assets to enhance the plugin (validation and columns css |
Functions | |
__construct | Adds the enqueue script actions |
load_gform_assets | loads the extra js and css |
Author: Paul MacLean
Usage Examples: Note: You need to include gravity forms as a seperate plugin. Support Key: 87e10e323c3ded19bcf49ce8094b5b0a
Column CSS
Step 1: Turn off the deault css output the the gravity form settings Step 2: Add the .tbkcp_col_3_wrapper or .tbkcp_col_2_wrapper class to the form (the first panel in the form editor under advanced)
Custom Validation
1. Use the jquery function $('#your-form-id-here').tbkcp_form_validation(); 2. Remove the required checkboxes from the gforms editor. Add the class .required to each required item (in the advanced section in the form editor) usage example var args ={ show_star:false, //Show the required star msg_box_selector: '.gform_footer' //Where the validation text will be places msg_text : '**There were problems submitting the form, please enter required fields**' //Add what the validation says } $('#estimates_form').tbkcp_gforms_validation(args); //Selector is the id of the form wrapper
Adds extra gravity form assets to enhance the plugin (validation and columns css
Functions | |
__construct | Adds the enqueue script actions |
load_gform_assets | loads the extra js and css |
Adds the enqueue script actions
function __construct()
loads the extra js and css
function load_gform_assets()