• Resolved aimara76

    (@aimara76)


    Hi
    First, I want to say that you guys have a wonderful plugin.
    I’m trying to change the form so I can show just all my list in a dropdown menu. When user is logged can choose in which list to subscribe. My problem is that I want to add some tags before and after each label/input and send the user email like an hidden input. I used the filter mc4wp_form_before_fields and mc4wp_form_after_fields but how their names say it add my code before and after “all” the labels/inputs and not between them. Can I do that with another filter or is it impossible with your plugin??
    What I have:

    <label>
    <input name=”_mc4wp_lists[]” value=”xxxxxxx” type=”checkbox”><span>List 2</span>
    </label>
    <label>
    <input name=”_mc4wp_lists[]” value=”xxxxxxx” type=”checkbox”> <span>List 1</span>
    </label>

    What I want

    • <div>
      <input name=”_mc4wp_lists[]” value=”xxxxxxx” type=”checkbox”>
      </div>
      <span>List 1</span>
    • <div>
      <input name=”_mc4wp_lists[]” value=”xxxxxx” type=”checkbox”>
      </div>
      <span>List 2</span>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    Instead of using the filters I suggest to simply change the HTML directly in the form editor, under Mailchimp for WP > Form. It should allow any HTML code.

    Hope that helps. If you have any questions, please let us know!

    Thread Starter aimara76

    (@aimara76)

    hi!
    I saw I can change the html in the admin panel but my problem is that users need to have the capability to change the list at any time so I will lost all my changes if they reset the form code

    Plugin Contributor Lap

    (@lapzor)

    I’m not sure what you mean with that. How could a visitor change the form’s html code??!

    We have a button above the form editor to insert list choice, it will overwrite the default list you’ve set in settings.
    Under Form > Settings you can set it to update the contact information if the user submits the form for the second time.

    I think you should use interest groups instead of lists though.

    Hope that helps. If you have any questions, please let us know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change form html’ is closed to new replies.