Docs & Support

Learn about all the Formidable features and get support from our amazing customer success team.

frm_setup_new_form_vars

Change the default values used to create a new form.

Usage

add_filter( 'frm_setup_new_form_vars', 'change_default_form' );

Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.

Parameters

  • $values (array)
    • $values['submit_value'] (string): Label on submit button
    • $values['success_action'] (string): The action after submit. Default: message
    • $values['success_msg'] (string): The default success message
    • $values['show_form'] (boolean): Show form with success message
    • $values['akismet'] (string): Run form submissions through Akismet
    • $values['no_save'] (string): Save entries in the form
    • $values['ajax_load'] (boolean): Load the form builder page with ajax
    • $values['js_validate'] (boolean): Turn on javascript validation
    • $values['form_class'] (string): Include a class on the form tag
    • $values['custom_style'] (numeric): The id of the selected stylesheet
    • $values['before_html'] (string): HTML used in the Before fields box
    • $values['after_html'] (string): HTML used in the After fields box
    • $values['submit_html'] (string): HTML used in the Submit button box

Examples

Change default submit button HTML

Replace the default HTML for the submit button with custom HTML.

add_filter( 'frm_setup_new_form_vars', 'change_default_form' );
function change_default_form( $values ) {
  $values['submit_html'] = 'new HTML here';
  return $values;
}
Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2025 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.

    Complete your purchase
    Special offer unlocked.
    Get 55% OFF!
    Complete Purchase
    Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms