Dynamically populating checkboxes in Gravity Forms

2 0

You can use gform_pre_render hook to create your custom code to pre-populate your checkboxes. Take a look at Example 2 in the hook documentation.

You’ll also need to hook the same fuction to these filters:


And if you’re going to use this field for Polls add-on, you also need this:

// Modify the Form object before calculating the Poll front-end results 
add_filter( 'gform_polls_form_pre_results', 'your_custom_function' );

//Modify the Form object before calculating the result on the admin results page
add_filter( 'gform_form_pre_results', 'your_custom_function' );

You can find more information about Gravity Forms hooks and filters in our help center.

Leave Your Observation

Your email address will not be published. Required fields are marked *