Good day @mychelleblake
This line:
add_filter( ‘constant_contact_include_custom_field_label’, ‘__return_true’ );
would go in your active theme’s functions.php or if you’re using a child theme, in that child’s functions.php file. This will tell the submission process to prepend the custom field data to include the label.
For example, if you’re requesting twitter usernames, the result in your constantcontact.com account would appear like this if you don’t include the label(how you are using it now):
Custom Field 1: constantcontact
If you include the label by using the filter provided, it’ll appear like
Custom Field 1: Twitter: constantcontact
Hope that helps, but feel free to ask more questions as needed.
Thanks, I made 3 custom fields. So I added that code and it works for one, but not the other two.
The fields in the WP Plugin look like this:
Custom Text Field
Select a Field: Custom Text Field
Field Label: Are You a Teacher? (Yes or No)
Field Description: Are You a Teacher?
Required – checked
(this one would be #1)
Custom Text Field
Select a Field: Custom Text Field
Field Label: Occupation (Type N/A if not applicable)
Field Description: Occupation
Required – checked
Custom Text Field
Select a Field: Custom Text Field
Field Label: Job Title (Type N/A if not applicable)
Field Description: Job Title
Required – checked
(this one would be #3)
They appear in CC this way:
Custom Fields
Custom Field 2: No
Custom Field 3: Web designer
Occupation: Web person
The link is http://www.fightbac.org/draft-form/
We shall pass this along to our main developer for the plugin and have him review things. We’ll get back to you with our findings. Thanks for providing the detailed information.
Thanks! Just wondering if you had an update yet. 🙂
Good day @mychelleblake
Thank you for the patience over the weekend.
We do have some leads in mind and noted down, but we need to do a bit more testing for possible actions needing to happen and resolutions available.
We definitely have the topic on our radar still and are still looking into it. We’ll update once we have something.
Hello again,
We have an update ready for you.
First up, there is an issue on our side that we will need to take into account. Specifically, the Constant Contact API only allows for 50 characters for each field. Due to certain limits, for this original filter above to work like desired, we had to include the labels as part of the custom field value. What that means is that it takes away from that 50 characters available. In order to have the API accept as much as we can manage, when the “include labels” filter is true, we limit the characters count to 50 characters MINUS the amount in the intended label. If the label is “twitter”, the character limit is going to be 43. This is where the error on our end comes in. We forgot to account for a “: ” separator as part of the request. This is causing the count to be 52 instead of the intended 50, and the API rejecting in situations where all available were taken. We will be amending that detail.
In the meantime, to help you along the way at the exact moment, we recommend keeping the “Field Label” fields as short as possible to allow for more characters in the answers. The “Field Description” values are used as placeholder text, which will hopefully suffice for your needs at the moment. Also, logically, those notes aren’t essential for you to know what they are answering, when viewing their contact in your constantcontact.com admin. One last note regarding custom fields is that they are saved and displayed in the order they are set when you created the form within WordPress.
Hope that helps get you going with your use of the plugin, however feel free to ask more questions as you see fit. Thanks.