Closed (fixed)
Project:
Campaign Monitor
Version:
6.x-3.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Jun 2010 at 10:39 UTC
Updated:
10 Nov 2010 at 22:30 UTC
Jump to comment: Most recent
We have added custom fields in Campaign Monitor. All Fields are shown in the admin interface and every checkbox is checked to show the fields when registering for a newsletter.
But on the newsletter form (block) there is only 2 custom fields + Email and Name. The two Custom Fields are DropDown Lists, the other fields are added as Text and Number Fields, they are not shown.
Is this me doing something wrong?
Comments
Comment #1
JThan commentedI have just tried with a brand new list - it gets shown on the admin site, but on the form, Text and Number Fields are not shown.
Comment #2
JThan commentedFor Text Fields the problem is in line 520
Change
if ($field['FieldName'] == 'Text') {to
if ($field['DataType'] == 'Text') {Number Fields are not implemented yet. One could add the following code, but you'd still have to validate that only numbers are given.
Comment #3
ssherriff commentedI have updated this code and checked it in, it will be available in the next release.
Comment #5
Anonymous (not verified) commentedI've tried the solution mentioned in #2 but custom fields of the type "Text" still aren't showing up for me on the user registration page (user/register).
The checkbox appears for the appropriate list, but there are no custom fields, despite them all being checked in the module settings.
I also have a field of the type "Multi-Options (select many)" and this isn't appearing either. I see these are coded as "MultiSelectMany" so it looks like the module supports them.
I'm using Drupal 6.14. Any ideas? Thanks.
Comment #6
Anonymous (not verified) commentedI just realised the original discussion refers primarily to the subscribe form in blocks, not the registration form. This actually does work. I will open a new support request for my problem.