Close menu

Frequently Asked Questions

Why is my success message not showing after submission?

This issue is often caused by page caching provided either by your host or a plugin on your site. We recommend disabling the cache for the page with your form or to create a custom “thank you” page and redirecting to that after submission.

How do I redirect to another page after submission?

You can pass a URL as the redirect argument when displaying your form. For example to redirect to a thank you-page available at /thank-you:

[advanced_form form="KEY" redirect="/thank-you"]

How do I change the submit button text?

You can pass the submit_text argument to change the submit button text. For example to change the text to “Send”:

[advanced_form form="KEY" submit_text="Send"]

Is it possible to handle submissions without a page reload (using AJAX)?

Advanced Forms can handle submissions without a reload using AJAX. Activate it for your form using:

[advanced_form form="KEY" ajax="1"]

How do I connect my form to an external service?

Advanced Forms Pro has built-in integrations with Slack, Mailchimp, and thousands of other services through Zapier. If you need to integrate with a service that is not supported it’s normally simple to build a custom integration. This normally entails writing a custom submission handler which collects form data and sends it to an third-party API.

How do I only subscribe users in Mailchimp if they have checked a checkbox?

To achieve this you can use the af/form/mailchimp/request filter and conditionally return false to stop the request. For example, if you have a checkbox field named “subscribe_to_newsletter” you can use the following snippet:


function form_mailchimp_conditional_checkbox( $request ) {
  if ( af_get_field( 'subscribe_to_newsletter' ) ) {
    return $request;

  return false;
add_filter( 'af/form/mailchimp/request/key=FORM_KEY', 'form_mailchimp_conditional_checkbox', 10, 3 );

How do I remove the default styles for a form?

Advanced Forms will enqueue both default styles from ACF and its own styles. To dequeue all of them, use the following snippet:


function form_remove_default_styles() {
  // Remove default Advanced Forms styles
  wp_dequeue_style( 'af-form-style' );

  // Remove default ACF styles
  wp_dequeue_style( 'acf-input' );
  wp_dequeue_style( 'acf-pro-input' );
add_action( 'af/form/enqueue/key=FORM_KEY', 'form_remove_default_styles' );

I’m seeing weird behaviour with my form thas has a large number of fields. What could be wrong?

If your form has a very large number of fields there is a risk that you will run into limits set by PHP. If the form is not working at all or you’re seeing weird behaviour, we recommend increasing the max_input_vars setting in PHP.

ACF Gallery fields use the WP media uploader under the hood which means that they require a signed in user to work. The user must also have the right capabilities to access the media library. If you want your form to be accesible for non-signed-in users as well, we recommend replacing the gallery field with a repeater of image fields.