You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Address and Phone Number Form Fields Missing on Frontend #34
The address and phone number form fields are configured and available in the backend settings, but they do not appear on the frontend.
Expected Behavior:
Upon enabling the address and phone number fields in the Mailchimp setup under Merge Fields Included, these fields should be visible and accessible on the frontend.
Steps to Reproduce
Navigate to the WordPress Admin Dashboard.
Go to "Settings" and select "Mailchimp Setup" from the dropdown menu.
Inside the Mailchimp setup, locate and click on "Merge Fields Included".
Enable the fields for "Address" and "Phone Number".
Save the settings
Visit the frontend of the website.
Observe that the address and phone number fields do not appear on the subscription form.
changed the title [-]Address and Phone Number Subscription Form Fields Missing on Frontend[/-][+]Address and Phone Number Form Fields Missing on Frontend[/+]on Jun 19, 2024
I tested this myself on the latest release of the plugin, as I was curious if this was something newly introduced in our cleanup or an existing issue. I was able to reproduce the same problem there so confirmed it's not a new issue.
But after giving this more thought, I realized there's two sides to these settings. Within your Mailchimp account you can choose which fields are supported. I logged into our test account and find out that both the Address fields and Phone Number fields were not enabled, which is why they weren't showing in the plugin.
I've enabled those now and if you click the Update List button, it should pull in those new settings:
Once you do that, you should now see the Address and Phone Number fields on the frontend:
So this doesn't appear to be a bug, though there's certainly additional information that could be added to the readme explaining this or even better, making it clear in the settings that turning a field on will only work if that field is turned on within Mailchimp (or removing that setting all together if it isn't supported).
Is there any way to validate via a Mc API what fields are available and either showing ONLY those in the form in the plugin or at least showing a warning next to disabled Mc fields that they need to enable on the Mc side to use in a form on their WP site (potentially trying to deeplink into where that would be in their account)?
Is there any way to validate via a Mc API what fields are available and either showing ONLY those in the form in the plugin or at least showing a warning next to disabled Mc fields that they need to enable on the Mc side to use in a form on their WP site
Without getting to far into the code, it seems like we already make an API request to get this information, both when the account is first connected and when that Update List button is clicked. It just doesn't seem like we use this information to impact the settings we show.
I think this is definitely a great enhancement but I would mark that as a Future release item, not something needed for 1.6.0 (and I think there's other settings/admin UI changes we could do at the same time).
I do think for 1.6.0 it would be nice to update the readme with more details on how to set up a list on the Mailchimp side and how this impacts what actually renders on the WordPress side, as right now that isn't detailed at all and I just had to stumble around until I figured it out.
I honestly don't recall specifics at this point but I think it was just around updating the UI of that settings page to match better with WordPress (still looks/feels outdated) as well as looking to move most of the display settings into the block and shortcode, rather than controlling those globally (though may be nice to do both, set some global defaults and then have full control at the block level)
@dkotter@jeffpaul I'm about 60% through the rest of the bugs. Want me to tackle the "plugin settings don't reflect Mailchimp account settings" part of this issue? I think I know where in the codebase those changes would be and could get a PR up quickly.
@dkotter@jeffpaul I'm about 60% through the rest of the bugs. Want me to tackle the "plugin settings don't reflect Mailchimp account settings" part of this issue? I think I know where in the codebase those changes would be and could get a PR up quickly.
Actually, I believe the "plugin settings don't reflect Mailchimp account settings" is fixed in #105 🎉. @dkotter can you confirm that the bugs are the same?
I've summarized the other task items here if we wanted to break any of them out of this ticket and work on them in a separate issue.
I can update the documentation, but the other two task items would need a second opinion because they're partially product design questions.
Based on the discussion, this issue seems similar to #105 and has already been fixed via #110, where everything works as expected.
However, I'd like to revisit how this currently works and propose an update to simplify it for users. Currently, form fields in the WordPress settings include an "Include?" option. If a field’s "Visibility" is hidden in the Mailchimp account, the option to include that field in the form isn’t shown, meaning a field can only be added to the form after it is made visible from the Mailchimp side.
I recently noticed that the Merge Fields settings page has been updated. It no longer displays the "Visible" option in the edit field, although you can still change field visibility from the form builder.
Fields settings page earlier
Fields settings page now
Edit field popup now (no visibility option)
Field visibility option in form builder
The visibility setting determines whether a field appears on the form. Since we already have an "Include?" option in WordPress, the field should display based on that value, regardless of the Mailchimp visibility setting (which is more related to the hosted form). Additionally, the "Visible" option was previously part of the fields list table, making it easy to toggle visibility. Now that it’s in the form builder, it might confuse users on how to enable visibility of the field. New fields are added with visibility set to hidden by default, requiring users to enable visibility manually each time.
@jeffpaul@dkotter I suggest updating the current implementation so that the form field's visibility is controlled solely by the "Include?" setting and I’d like to hear your thoughts on this.
cc: @MaxwellGarceau (Tagging you here since you worked on the fix and have context on this. Any input would be appreciated.)
I suggest updating the current implementation so that the form field's visibility is controlled solely by the "Include?" setting and I’d like to hear your thoughts on this.
So this is a change from how this has always worked so just want to ensure we're thinking about any backwards compatibility issues here (if any). For instance, if we make this change, we need to ensure that we don't suddenly start showing fields within the form that previously weren't showing due to being marked as non-visible on the Mailchimp side.
Assuming we can properly handle that, I like the idea of having more control over things in WordPress, rather than having to potentially change things both on the Mailchimp side and the WordPress side. I'm sure this has caused some confusion for users.
The only other thing to test is if a field is marked as non-visible on the Mailchimp side and we allow users to show this field on the WordPress side, will Mailchimp reject the form entry? Meaning does Mailchimp have any built-in validation to prevent non-visible fields from submitting?
just want to ensure we're thinking about any backwards compatibility issues here (if any). For instance, if we make this change, we need to ensure that we don't suddenly start showing fields within the form that previously weren't showing due to being marked as non-visible on the Mailchimp side.
Yes, we need to run an upgrade script to mark "include?" false to stop showing it on FE. As currently by default fields are marked as included during initial list setup.
The only other thing to test is if a field is marked as non-visible on the Mailchimp side and we allow users to show this field on the WordPress side, will Mailchimp reject the form entry? Meaning does Mailchimp have any built-in validation to prevent non-visible fields from submitting?
Field data will get submitted properly without any issue and it reflect correctly on the contact details in Mailchimp side. So, we are good here.
Activity
[-]Address and Phone Number Subscription Form Fields Missing on Frontend[/-][+]Address and Phone Number Form Fields Missing on Frontend[/+]dkotter commentedon Jun 19, 2024
I tested this myself on the latest release of the plugin, as I was curious if this was something newly introduced in our cleanup or an existing issue. I was able to reproduce the same problem there so confirmed it's not a new issue.
But after giving this more thought, I realized there's two sides to these settings. Within your Mailchimp account you can choose which fields are supported. I logged into our test account and find out that both the Address fields and Phone Number fields were not enabled, which is why they weren't showing in the plugin.
I've enabled those now and if you click the
Update Listbutton, it should pull in those new settings:Once you do that, you should now see the Address and Phone Number fields on the frontend:
So this doesn't appear to be a bug, though there's certainly additional information that could be added to the readme explaining this or even better, making it clear in the settings that turning a field on will only work if that field is turned on within Mailchimp (or removing that setting all together if it isn't supported).
jeffpaul commentedon Jun 20, 2024
Is there any way to validate via a Mc API what fields are available and either showing ONLY those in the form in the plugin or at least showing a warning next to disabled Mc fields that they need to enable on the Mc side to use in a form on their WP site (potentially trying to deeplink into where that would be in their account)?
dkotter commentedon Jun 20, 2024
Without getting to far into the code, it seems like we already make an API request to get this information, both when the account is first connected and when that
Update Listbutton is clicked. It just doesn't seem like we use this information to impact the settings we show.I think this is definitely a great enhancement but I would mark that as a
Future releaseitem, not something needed for 1.6.0 (and I think there's other settings/admin UI changes we could do at the same time).I do think for 1.6.0 it would be nice to update the readme with more details on how to set up a list on the Mailchimp side and how this impacts what actually renders on the WordPress side, as right now that isn't detailed at all and I just had to stumble around until I figured it out.
jeffpaul commentedon Jun 20, 2024
I'll work on adding that into the readme, we can otherwise punt this to 1.7.0.
add FAQ on field enabling
jeffpaul commentedon Nov 20, 2024
@dkotter what were the additional changes you had in mind to group with this issue?
dkotter commentedon Nov 20, 2024
I honestly don't recall specifics at this point but I think it was just around updating the UI of that settings page to match better with WordPress (still looks/feels outdated) as well as looking to move most of the display settings into the block and shortcode, rather than controlling those globally (though may be nice to do both, set some global defaults and then have full control at the block level)
MaxwellGarceau commentedon Jan 6, 2025
@dkotter @jeffpaul I'm about 60% through the rest of the bugs. Want me to tackle the "plugin settings don't reflect Mailchimp account settings" part of this issue? I think I know where in the codebase those changes would be and could get a PR up quickly.
dkotter commentedon Jan 6, 2025
That sounds good to me
MaxwellGarceau commentedon Jan 6, 2025
Actually, I believe the "plugin settings don't reflect Mailchimp account settings" is fixed in #105 🎉. @dkotter can you confirm that the bugs are the same?
I've summarized the other task items here if we wanted to break any of them out of this ticket and work on them in a separate issue.
I can update the documentation, but the other two task items would need a second opinion because they're partially product design questions.
Task items
Sync Mailchimp WP settings with Mailchimp account merge field settings- likely handled in Non visible merge fields in a Mailchimp account will still display in the WP Mailchimp settings menu under the "Include?" column #105iamdharmesh commentedon Mar 20, 2025
Based on the discussion, this issue seems similar to #105 and has already been fixed via #110, where everything works as expected.
However, I'd like to revisit how this currently works and propose an update to simplify it for users. Currently, form fields in the WordPress settings include an "Include?" option. If a field’s "Visibility" is hidden in the Mailchimp account, the option to include that field in the form isn’t shown, meaning a field can only be added to the form after it is made visible from the Mailchimp side.
I recently noticed that the Merge Fields settings page has been updated. It no longer displays the "Visible" option in the edit field, although you can still change field visibility from the form builder.
The visibility setting determines whether a field appears on the form. Since we already have an "Include?" option in WordPress, the field should display based on that value, regardless of the Mailchimp visibility setting (which is more related to the hosted form). Additionally, the "Visible" option was previously part of the fields list table, making it easy to toggle visibility. Now that it’s in the form builder, it might confuse users on how to enable visibility of the field. New fields are added with visibility set to hidden by default, requiring users to enable visibility manually each time.
@jeffpaul @dkotter I suggest updating the current implementation so that the form field's visibility is controlled solely by the "Include?" setting and I’d like to hear your thoughts on this.
cc: @MaxwellGarceau (Tagging you here since you worked on the fix and have context on this. Any input would be appreciated.)
Thanks!
dkotter commentedon Mar 20, 2025
So this is a change from how this has always worked so just want to ensure we're thinking about any backwards compatibility issues here (if any). For instance, if we make this change, we need to ensure that we don't suddenly start showing fields within the form that previously weren't showing due to being marked as non-visible on the Mailchimp side.
Assuming we can properly handle that, I like the idea of having more control over things in WordPress, rather than having to potentially change things both on the Mailchimp side and the WordPress side. I'm sure this has caused some confusion for users.
The only other thing to test is if a field is marked as non-visible on the Mailchimp side and we allow users to show this field on the WordPress side, will Mailchimp reject the form entry? Meaning does Mailchimp have any built-in validation to prevent non-visible fields from submitting?
iamdharmesh commentedon Mar 21, 2025
Yes, we need to run an upgrade script to mark "include?" false to stop showing it on FE. As currently by default fields are marked as included during initial list setup.
Field data will get submitted properly without any issue and it reflect correctly on the contact details in Mailchimp side. So, we are good here.
Make the form field visibility editable at block level. #34