We are attempting to style our Newsletter Subscriptions page in Magento 2, but we have encountered a bug. We are utilizing Marketing Preferences to manage our subscribers' frequency preferences.
When attempting to read in the category and preferences, the values being passed from dotdigital to create the labels and id attributes are the public names. The integration uses the public name as the input label, but also as the input “id” attribute. If we attempt to use a public name that contains spaces, the resulting code is invalid since the HTML5 specification prohibits spaces.
For example, we have a marketing preference as follows:
category private name='Frequency'
category public name='How often would you like to receive marketing email?'
preference private name='Daily'
preference public name='Send me everything!'
Since the public name is being passed from dotdigital, we're seeing the following for the preference:
id="Send me everything!_606" value="605,606"
Magento 2.3.1
dotdigital Engagement Cloud (formerly dotmailer) for Magento 2 - 3.1.1
dotmailer for Magento 2 Enterprise - V1.0.3
We are attempting to style our Newsletter Subscriptions page in Magento 2, but we have encountered a bug. We are utilizing Marketing Preferences to manage our subscribers' frequency preferences. When attempting to read in the category and preferences, the values being passed from dotdigital to create the labels and id attributes are the public names. The integration uses the public name as the input label, but also as the input “id” attribute. If we attempt to use a public name that contains spaces, the resulting code is invalid since the HTML5 specification prohibits spaces.
For example, we have a marketing preference as follows: category private name='Frequency' category public name='How often would you like to receive marketing email?' preference private name='Daily' preference public name='Send me everything!'
Since the public name is being passed from dotdigital, we're seeing the following for the preference: id="Send me everything!_606" value="605,606"
Magento 2.3.1 dotdigital Engagement Cloud (formerly dotmailer) for Magento 2 - 3.1.1 dotmailer for Magento 2 Enterprise - V1.0.3