Support » Plugin: Contact Form 7 » Make the button editable with ACF

  • Hi,

    I am using Contact Form 7 on a website I’m working on, it is being used as an inquiry form in the sidebar. Now the client would like this form to have the button text (e.g. Request a Quote) editable per page, I do not want to make a different sidebar for every page because that wouldn’t be user friendly and there’s over 100+ pages.

    I was wondering there must be a way to do this with Advanced Custom Fields as I have managed it with the widget title. Any help/advice will be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just need to find where the plugin echos the button and it’s text.

    You can execute PHP inside the “Edit form” area but not between speech marks. Hmm.

    For anyone wanting to do this in future here is the solution:

    Go to the contact form 7 directory > modules > submit.php

    Put your ACF field in a variable like so:
    $test = get_field(‘form_button’);

    And then change $atts[‘value’] = $value; to $atts[‘value’] = $test;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make the button editable with ACF’ is closed to new replies.