• Resolved MrIanB

    (@mrianb)


    On another site I hand coded my MC forms and used hidden fields to track which form the sign-up came from. I’d like to do this using your plugin (much easier and cleaner than my coding!) but…

    when I include a hidden field it’s displayed on the form

    I wondered if I could style it <display:none> but the Label doesn’t have a unique class, and I can’t get the input field to hide anyway (even though it does have a unique class). So…

    Is there a way to do this? Or, perhaps another, more elegant, way to pass a form ID of some kind to MC?

    I have a suspicion I’m missing something obvious here, but I can’t figure out what! Or maybe hidden fields are supposed to work and I have some kind of conflict with my theme? Anyway, your thoughts would be appreciated.

    Cheers
    IanB

    EDIT// v5.1.1 and WP 4.0

    https://ww.wp.xz.cn/plugins/yikes-inc-easy-mailchimp-extender/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Evan Herman

    (@eherman24)

    Hi Ian,

    You are correct in thinking that you can hide the forms using a CSS selector. That is probably the best way to go about it. From the manage list forms page, to the right of each field we’ve included a text input field to allow you to assign a custom class to the field (to allow for easier targeting for performing tasks similar to this).

    I did a small writeup on how to do this using our plugin for another user over on github. You can find the link to the article here.

    Follow along with that tutorial , and you should be able to set up a hidden field and pre-populate it with whatever you choose.

    In the next release we are working on making hidden fields actually hidden instead of just not attached to the form. At the moment if you set the field to hidden, it is just not generated with the other form fields.

    Thanks,
    Evan

    Thread Starter MrIanB

    (@mrianb)

    Hi Evan

    Thanks for that. I got the styling/hiding and pre-populating the hidden field working – that’s a very useful article. However…

    What I really want is to see the results from different forms on the same page. I get how it could work with page IDs but I’m not seeing a way to do it for “this came from the front page sidebar and that was from the front page footer”.

    Not asking you to fix this for me (unless it happens to be very obvious to you) but, thinking forward, this function would really add some extra awesomeness to an already great plugin.

    I see two possible ways. Either the ability to create multiple forms for the same list, or have a Source field to be filled when inserting the form into a page. Either way, a means of dynamically populating a Source field in MC according to which form is used. That make sense? Maybe one day? 😉

    Thanks again for the excellent support!
    IanB

    Plugin Author Evan Herman

    (@eherman24)

    Hi Ian,

    Thanks for the feedback in regards to the hidden fields and pre-populating them. At the moment , the forms submit based on the form ID via AJAX. Using the same list for multiple forms (at the moment) is not possible, because submitting one would trigger each form using the same list to be sent at the same time.

    I will certainly look into what it would take to get multiple forms on the same page all linked to the same list. I can see how that would be useful. If you use separate lists on the same page this would be possible, but not ideal as all subscribers would end up on different lists depending on which form they signed up with.

    While I’m building up the pre-populated fields feature, I’ll consider a feature to allow which form was submitted. At the moment I have a few things such as page URL, page ID, page title as predefined ‘tags’ to use in the fields, but will have a second look at what I can do about including the parent element or something similar (for example, could be : Page-Title:Parent Item , or Home Page : Footer Form ).

    Thanks again for your feedback , it only helps to make the plugin better moving forward 🙂

    Evan

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hidden fields are displaying’ is closed to new replies.