gfpdf_form_settings

Form (PDF) Settings.

Description

apply_filters( 'gfpdf_form_settings', (string) $name_id_name, (string) $name_esc_html_name_gravity_forms_pdf_extended, (string) $type_text, (string) $required_true, (string) $tooltip_h6_esc_html_pdf_name_gravity_forms_pdf_extended_h6_sprintf_esc_html_distinguish_between_multiple_pdfs_by_giving_it_an_easy_to_remember_name_for_internal_use_use_the_sfilename_s_field_below_to_set_the_actual_pdf_name_gravity_forms_pdf_extended_em_em, (unknown) $var, (string) $template_id_template, (string) $name_esc_html_template_gravity_forms_pdf_extended, (string) $desc_sprintf_esc_html_choose_an_existing_template_or_purchased_more_sfrom_our_theme_shop_s_you_can_also_sbuild_your_own_s_or_shire_us_s_to_create_a_custom_solution_gravity_forms_pdf_extended_a_href_https_gravitypdf_com_shop_a_a_href_https_gravitypdf_com_documentation_v4_developer_start_customising_a_a_href_https_gravitypdf_com_integration_services_a, (string) $type_select, (string) $options_this_templates_get_all_templates_by_group, (string) $std_this_get_option_default_template_zadani, (string) $inputclass_large, (string) $chosen_true, (string) $tooltip_h6_esc_html_templates_gravity_forms_pdf_extended_h6_sprintf_esc_html_gravity_pdf_comes_with_sfour_completely_free_and_highly_customizable_designs_s_you_can_also_purchase_additional_templates_from_our_theme_shop_hire_us_to_integrate_existing_pdfs_or_with_a_bit_of_technical_know_how_build_your_own_gravity_forms_pdf_extended_strong_strong, (unknown) $var, (string) $notification_id_notification, (string) $name_esc_html_notifications_gravity_forms_pdf_extended, (string) $desc_esc_html_automatically_attach_pdf_to_the_selected_notifications_gravity_forms_pdf_extended, (string) $type_select, (string) $options, (string) $inputclass_large, (string) $chosen_true, (string) $multiple_true, (string) $placeholder_esc_html_choose_a_notification_gravity_forms_pdf_extended, (string) $tooltip_h6_esc_html_notifications_gravity_forms_pdf_extended_h6_esc_html_automatically_generate_and_attach_the_pdf_to_your_selected_notifications_conditional_logic_for_both_the_pdf_and_the_notification_applies_inactive_pdfs_are_also_not_sent_gravity_forms_pdf_extended, (unknown) $var, (string) $filename_id_filename, (string) $name_esc_html_filename_gravity_forms_pdf_extended, (string) $type_text, (string) $desc_the_name_used_when_saving_a_pdf_mergetags_are_allowed, (unknown) $var, (string) $inputclass_merge_tag_support_mt_hide_all_fields, (string) $required_true, (unknown) $var, (string) $conditional_id_conditional, (string) $name_esc_html_conditional_logic_gravity_forms_pdf_extended, (string) $type_conditional_logic, (string) $desc_esc_html_enable_conditional_logic_gravity_forms_pdf_extended, (string) $class_conditional_logic, (string) $inputclass_conditional_logic_listener, (string) $tooltip_h6_esc_html_conditional_logic_gravity_forms_pdf_extended_h6_esc_html_create_rules_to_dynamically_enable_or_disable_pdfs_this_includes_attaching_to_notifications_and_viewing_from_your_admin_area_gravity_forms_pdf_extended, (unknown) $var, (string) $conditionallogic_id_conditionallogic, (string) $type_hidden, (string) $class_gfpdf_hidden, (unknown) $var, (unknown) $var ); 

See https://gravitypdf.com/documentation/v4/gfpdf_form_settings/ for more details about this filter

Parameters (48)

0. $name_id_name — Optional. (string) => [ 'name' => [ 'id' => 'name'
The name id name.
1. $name_esc_html_name_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Name', 'gravity-forms-pdf-extended' )
The name esc html name gravity forms pdf extended.
2. $type_text — Optional. (string) => 'type' => 'text'
The type text.
3. $required_true — Optional. (string) => 'required' => true
The required true.
4. $tooltip_h6_esc_html_pdf_name_gravity_forms_pdf_extended_h6_sprintf_esc_html_distinguish_between_multiple_pdfs_by_giving_it_an_easy_to_remember_name_for_internal_use_use_the_sfilename_s_field_below_to_set_the_actual_pdf_name_gravity_forms_pdf_extended_em_em — Optional. (string) => 'tooltip' => '
' . esc_html__( 'PDF Name', 'gravity-forms-pdf-extended' ) . '
' . sprintf( esc_html__( 'Distinguish between multiple PDFs by giving it an easy-to-remember name (for internal use). Use the %sFilename%s field below to set the actual PDF name.', 'gravity-forms-pdf-extended' ), '', '' )
The tooltip h6 esc html pdf name gravity forms pdf extended h6 sprintf esc html distinguish between multiple pdfs by giving it an easy to remember name for internal use use the sfilename s field below to set the actual pdf name gravity forms pdf extended em em.
5. $var (unknown) => ]
The var.
6. $template_id_template — Optional. (string) => 'template' => [ 'id' => 'template'
The template id template.
7. $name_esc_html_template_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Template', 'gravity-forms-pdf-extended' )
The name esc html template gravity forms pdf extended.
8. $desc_sprintf_esc_html_choose_an_existing_template_or_purchased_more_sfrom_our_theme_shop_s_you_can_also_sbuild_your_own_s_or_shire_us_s_to_create_a_custom_solution_gravity_forms_pdf_extended_a_href_https_gravitypdf_com_shop_a_a_href_https_gravitypdf_com_documentation_v4_developer_start_customising_a_a_href_https_gravitypdf_com_integration_services_a — Optional. (string) => 'desc' => sprintf( esc_html__( 'Choose an existing template or purchased more %sfrom our theme shop%s. You can also %sbuild your own%s or %shire us%s to create a custom solution.', 'gravity-forms-pdf-extended' ), '', '', '', '', '', '' )
The desc sprintf esc html choose an existing template or purchased more sfrom our theme shop s you can also sbuild your own s or shire us s to create a custom solution gravity forms pdf extended a href https gravitypdf com shop a a href https gravitypdf com documentation v4 developer start customising a a href https gravitypdf com integration services a.
9. $type_select — Optional. (string) => 'type' => 'select'
The type select.
10. $options_this_templates_get_all_templates_by_group — Optional. (string) => 'options' => $this->templates->get_all_templates_by_group()
The options this templates get all templates by group.
11. $std_this_get_option_default_template_zadani — Optional. (string) => 'std' => $this->get_option( 'default_template', 'zadani' )
The std this get option default template zadani.
12. $inputclass_large — Optional. (string) => 'inputClass' => 'large'
The inputclass large.
13. $chosen_true — Optional. (string) => 'chosen' => true
The chosen true.
14. $tooltip_h6_esc_html_templates_gravity_forms_pdf_extended_h6_sprintf_esc_html_gravity_pdf_comes_with_sfour_completely_free_and_highly_customizable_designs_s_you_can_also_purchase_additional_templates_from_our_theme_shop_hire_us_to_integrate_existing_pdfs_or_with_a_bit_of_technical_know_how_build_your_own_gravity_forms_pdf_extended_strong_strong — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Templates', 'gravity-forms-pdf-extended' ) . '
' . sprintf( esc_html__( 'Gravity PDF comes with %sfour completely-free and highly customizable designs%s. You can also purchase additional templates from our theme shop, hire us to integrate existing PDFs or, with a bit of technical know-how, build your own.', 'gravity-forms-pdf-extended' ), '', '' )
The tooltip h6 esc html templates gravity forms pdf extended h6 sprintf esc html gravity pdf comes with sfour completely free and highly customizable designs s you can also purchase additional templates from our theme shop hire us to integrate existing pdfs or with a bit of technical know how build your own gravity forms pdf extended strong strong.
15. $var (unknown) => ]
The var.
16. $notification_id_notification — Optional. (string) => 'notification' => [ 'id' => 'notification'
The notification id notification.
17. $name_esc_html_notifications_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Notifications', 'gravity-forms-pdf-extended' )
The name esc html notifications gravity forms pdf extended.
18. $desc_esc_html_automatically_attach_pdf_to_the_selected_notifications_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Automatically attach PDF to the selected notifications.', 'gravity-forms-pdf-extended' )
The desc esc html automatically attach pdf to the selected notifications gravity forms pdf extended.
19. $type_select — Optional. (string) => 'type' => 'select'
The type select.
20. $options — Optional. (string) => 'options' => []
The options.
21. $inputclass_large — Optional. (string) => 'inputClass' => 'large'
The inputclass large.
22. $chosen_true — Optional. (string) => 'chosen' => true
The chosen true.
23. $multiple_true — Optional. (string) => 'multiple' => true
The multiple true.
24. $placeholder_esc_html_choose_a_notification_gravity_forms_pdf_extended — Optional. (string) => 'placeholder' => esc_html__( 'Choose a Notification', 'gravity-forms-pdf-extended' )
The placeholder esc html choose a notification gravity forms pdf extended.
25. $tooltip_h6_esc_html_notifications_gravity_forms_pdf_extended_h6_esc_html_automatically_generate_and_attach_the_pdf_to_your_selected_notifications_conditional_logic_for_both_the_pdf_and_the_notification_applies_inactive_pdfs_are_also_not_sent_gravity_forms_pdf_extended — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Notifications', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( 'Automatically generate and attach the PDF to your selected notifications. Conditional Logic for both the PDF and the notification applies. Inactive PDFs are also not sent.', 'gravity-forms-pdf-extended' )
The tooltip h6 esc html notifications gravity forms pdf extended h6 esc html automatically generate and attach the pdf to your selected notifications conditional logic for both the pdf and the notification applies inactive pdfs are also not sent gravity forms pdf extended.
26. $var (unknown) => ]
The var.
27. $filename_id_filename — Optional. (string) => 'filename' => [ 'id' => 'filename'
The filename id filename.
28. $name_esc_html_filename_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Filename', 'gravity-forms-pdf-extended' )
The name esc html filename gravity forms pdf extended.
29. $type_text — Optional. (string) => 'type' => 'text'
The type text.
30. $desc_the_name_used_when_saving_a_pdf_mergetags_are_allowed — Optional. (string) => 'desc' => 'The name used when saving a PDF. Mergetags are allowed.'
The desc the name used when saving a pdf mergetags are allowed.
31. $var — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Filename', 'gravity-forms-pdf-extended' ) . '
' . sprintf( esc_html__( 'Set an appropriate filename for the generated PDF. You should exclude the .pdf extension from the name. The following are invalid characters and will be converted to an underscore %s_%s when the PDF is generated: %s', 'gravity-forms-pdf-extended' ), '', '', '/ \ " * ? | : < >' )
The tooltip h6 esc html filename gravity forms pdf extended h6 sprintf esc html set an appropriate filename for the generated pdf you should exclude the pdf extension from the name the following are invalid characters and will be converted to an underscore s s when the pdf is generated s gravity forms pdf extended code code code code.
32. $inputclass_merge_tag_support_mt_hide_all_fields — Optional. (string) => 'inputClass' => 'merge-tag-support mt-hide_all_fields'
The inputclass merge tag support mt hide all fields.
33. $required_true — Optional. (string) => 'required' => true
The required true.
34. $var (unknown) => ]
The var.
35. $conditional_id_conditional — Optional. (string) => 'conditional' => [ 'id' => 'conditional'
The conditional id conditional.
36. $name_esc_html_conditional_logic_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Conditional Logic', 'gravity-forms-pdf-extended' )
The name esc html conditional logic gravity forms pdf extended.
37. $type_conditional_logic — Optional. (string) => 'type' => 'conditional_logic'
The type conditional logic.
38. $desc_esc_html_enable_conditional_logic_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Enable conditional logic', 'gravity-forms-pdf-extended' )
The desc esc html enable conditional logic gravity forms pdf extended.
39. $class_conditional_logic — Optional. (string) => 'class' => 'conditional_logic'
The class conditional logic.
40. $inputclass_conditional_logic_listener — Optional. (string) => 'inputClass' => 'conditional_logic_listener'
The inputclass conditional logic listener.
41. $tooltip_h6_esc_html_conditional_logic_gravity_forms_pdf_extended_h6_esc_html_create_rules_to_dynamically_enable_or_disable_pdfs_this_includes_attaching_to_notifications_and_viewing_from_your_admin_area_gravity_forms_pdf_extended — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Conditional Logic', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( 'Create rules to dynamically enable or disable PDFs. This includes attaching to notifications and viewing from your admin area.', 'gravity-forms-pdf-extended' )
The tooltip h6 esc html conditional logic gravity forms pdf extended h6 esc html create rules to dynamically enable or disable pdfs this includes attaching to notifications and viewing from your admin area gravity forms pdf extended.
42. $var (unknown) => ]
The var.
43. $conditionallogic_id_conditionallogic — Optional. (string) => 'conditionalLogic' => [ 'id' => 'conditionalLogic'
The conditionallogic id conditionallogic.
44. $type_hidden — Optional. (string) => 'type' => 'hidden'
The type hidden.
45. $class_gfpdf_hidden — Optional. (string) => 'class' => 'gfpdf-hidden'
The class gfpdf hidden.
46. $var (unknown) => ]
The var.
47. $var (unknown) => ]
The var.

Usage

To run the hook, copy the example below.
  1. $name_id_name = apply_filters( 'gfpdf_form_settings', $name_id_name, $name_esc_html_name_gravity_forms_pdf_extended, $type_text, $required_true, $tooltip_h6_esc_html_pdf_name_gravity_forms_pdf_extended_h6_sprintf_esc_html_distinguish_between_multiple_pdfs_by_giving_it_an_easy_to_remember_name_for_internal_use_use_the_sfilename_s_field_below_to_set_the_actual_pdf_name_gravity_forms_pdf_extended_em_em, $var, $template_id_template, $name_esc_html_template_gravity_forms_pdf_extended, $desc_sprintf_esc_html_choose_an_existing_template_or_purchased_more_sfrom_our_theme_shop_s_you_can_also_sbuild_your_own_s_or_shire_us_s_to_create_a_custom_solution_gravity_forms_pdf_extended_a_href_https_gravitypdf_com_shop_a_a_href_https_gravitypdf_com_documentation_v4_developer_start_customising_a_a_href_https_gravitypdf_com_integration_services_a, $type_select, $options_this_templates_get_all_templates_by_group, $std_this_get_option_default_template_zadani, $inputclass_large, $chosen_true, $tooltip_h6_esc_html_templates_gravity_forms_pdf_extended_h6_sprintf_esc_html_gravity_pdf_comes_with_sfour_completely_free_and_highly_customizable_designs_s_you_can_also_purchase_additional_templates_from_our_theme_shop_hire_us_to_integrate_existing_pdfs_or_with_a_bit_of_technical_know_how_build_your_own_gravity_forms_pdf_extended_strong_strong, $var, $notification_id_notification, $name_esc_html_notifications_gravity_forms_pdf_extended, $desc_esc_html_automatically_attach_pdf_to_the_selected_notifications_gravity_forms_pdf_extended, $type_select, $options, $inputclass_large, $chosen_true, $multiple_true, $placeholder_esc_html_choose_a_notification_gravity_forms_pdf_extended, $tooltip_h6_esc_html_notifications_gravity_forms_pdf_extended_h6_esc_html_automatically_generate_and_attach_the_pdf_to_your_selected_notifications_conditional_logic_for_both_the_pdf_and_the_notification_applies_inactive_pdfs_are_also_not_sent_gravity_forms_pdf_extended, $var, $filename_id_filename, $name_esc_html_filename_gravity_forms_pdf_extended, $type_text, $desc_the_name_used_when_saving_a_pdf_mergetags_are_allowed, $var, $inputclass_merge_tag_support_mt_hide_all_fields, $required_true, $var, $conditional_id_conditional, $name_esc_html_conditional_logic_gravity_forms_pdf_extended, $type_conditional_logic, $desc_esc_html_enable_conditional_logic_gravity_forms_pdf_extended, $class_conditional_logic, $inputclass_conditional_logic_listener, $tooltip_h6_esc_html_conditional_logic_gravity_forms_pdf_extended_h6_esc_html_create_rules_to_dynamically_enable_or_disable_pdfs_this_includes_attaching_to_notifications_and_viewing_from_your_admin_area_gravity_forms_pdf_extended, $var, $conditionallogic_id_conditionallogic, $type_hidden, $class_gfpdf_hidden, $var, $var ); 
  2.  
  3. if ( !empty( $name_id_name ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdf_form_settings callback 
  2. function filter_gfpdf_form_settings( $name_id_name, $name_esc_html_name_gravity_forms_pdf_extended, $type_text, $required_true, $tooltip_h6_esc_html_pdf_name_gravity_forms_pdf_extended_h6_sprintf_esc_html_distinguish_between_multiple_pdfs_by_giving_it_an_easy_to_remember_name_for_internal_use_use_the_sfilename_s_field_below_to_set_the_actual_pdf_name_gravity_forms_pdf_extended_em_em, $var, $template_id_template, $name_esc_html_template_gravity_forms_pdf_extended, $desc_sprintf_esc_html_choose_an_existing_template_or_purchased_more_sfrom_our_theme_shop_s_you_can_also_sbuild_your_own_s_or_shire_us_s_to_create_a_custom_solution_gravity_forms_pdf_extended_a_href_https_gravitypdf_com_shop_a_a_href_https_gravitypdf_com_documentation_v4_developer_start_customising_a_a_href_https_gravitypdf_com_integration_services_a, $type_select, $options_this_templates_get_all_templates_by_group, $std_this_get_option_default_template_zadani, $inputclass_large, $chosen_true, $tooltip_h6_esc_html_templates_gravity_forms_pdf_extended_h6_sprintf_esc_html_gravity_pdf_comes_with_sfour_completely_free_and_highly_customizable_designs_s_you_can_also_purchase_additional_templates_from_our_theme_shop_hire_us_to_integrate_existing_pdfs_or_with_a_bit_of_technical_know_how_build_your_own_gravity_forms_pdf_extended_strong_strong, $var, $notification_id_notification, $name_esc_html_notifications_gravity_forms_pdf_extended, $desc_esc_html_automatically_attach_pdf_to_the_selected_notifications_gravity_forms_pdf_extended, $type_select, $options, $inputclass_large, $chosen_true, $multiple_true, $placeholder_esc_html_choose_a_notification_gravity_forms_pdf_extended, $tooltip_h6_esc_html_notifications_gravity_forms_pdf_extended_h6_esc_html_automatically_generate_and_attach_the_pdf_to_your_selected_notifications_conditional_logic_for_both_the_pdf_and_the_notification_applies_inactive_pdfs_are_also_not_sent_gravity_forms_pdf_extended, $var, $filename_id_filename, $name_esc_html_filename_gravity_forms_pdf_extended, $type_text, $desc_the_name_used_when_saving_a_pdf_mergetags_are_allowed, $var, $inputclass_merge_tag_support_mt_hide_all_fields, $required_true, $var, $conditional_id_conditional, $name_esc_html_conditional_logic_gravity_forms_pdf_extended, $type_conditional_logic, $desc_esc_html_enable_conditional_logic_gravity_forms_pdf_extended, $class_conditional_logic, $inputclass_conditional_logic_listener, $tooltip_h6_esc_html_conditional_logic_gravity_forms_pdf_extended_h6_esc_html_create_rules_to_dynamically_enable_or_disable_pdfs_this_includes_attaching_to_notifications_and_viewing_from_your_admin_area_gravity_forms_pdf_extended, $var, $conditionallogic_id_conditionallogic, $type_hidden, $class_gfpdf_hidden, $var, $var ) { 
  3. // make filter magic happen here... 
  4. return $name_id_name
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_form_settings', 'filter_gfpdf_form_settings', 10, 48 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_form_settings', 'filter_gfpdf_form_settings', 10, 48 ); 

Defined (1)

The filter is defined in the following location(s).

/src/helper/Helper_Options_Fields.php  
  1. 'form_settings' => apply_filters( 'gfpdf_form_settings',