Hi, we are currently using the Campaign Plugin for one of our clients & we have noticed some of the custom fields are not saving.
Please provide a clear and concise description of what the bug is, including:
- Steps to reproduce the issue.
We currently have a Job Notification sign up form that is posting to campaign/forms/subscribe. Most of the fields are saving and being reflected in the contact preferences, however there are currently two fields that are not being saved.
One of the fields being the Job Sectors field. This is a Multi-select field with the handle of jobSectors.
Currently we are rendering the checkbox fields in the form as per below:
<div class="form-checkbox">
<label>
<span>Advice and information</span>
<input class="form-field " type="checkbox" name="field[jobSectors][]" value="adviceAndInformation" data-label="Advice and information">
</label>
</div>
This same field is added to the Campaign Contacts Preferences.
We have several other Multi-Select fields rendered in the same way in Sign Up form and the are all saving as expected - however the the selected jobSectors are not being saved to the contacts preferences for some reason.
I have checked the payload being sent to campaign/forms/subscribe & I can confirm the jobSectors fields are included in the form-data as per below:
Hi, we are currently using the Campaign Plugin for one of our clients & we have noticed some of the custom fields are not saving.
Please provide a clear and concise description of what the bug is, including: - Steps to reproduce the issue. We currently have a Job Notification sign up form that is posting to
campaign/forms/subscribe
. Most of the fields are saving and being reflected in the contact preferences, however there are currently two fields that are not being saved.One of the fields being the Job Sectors field. This is a Multi-select field with the handle of
jobSectors
. Currently we are rendering the checkbox fields in the form as per below:This same field is added to the Campaign Contacts Preferences.
We have several other Multi-Select fields rendered in the same way in Sign Up form and the are all saving as expected - however the the selected
jobSectors
are not being saved to the contacts preferences for some reason.I have checked the payload being sent to
campaign/forms/subscribe
& I can confirm the jobSectors fields are included in the form-data as per below:Front end form with Job Sectors
Job Sectors field added to contact preferences
jobSectors field in Craft
jobSectors field in contact prefences