I'm an API noob. I have 88 lists that a user can choose from when signing up. I'd like to organize the lists into groups on the signup form with headers. I think that means I need to use the API. Is there PHP sample code for this already?
If possible, I'd like to simplify the list names on my custom form, without changing how they display in my Constant Contact admin screen (I named them with prefixes for sorting purposes).
I have a similar post, but I'd like to do more than what is included with a normal sign-up form:
The answer from your other post is referring to using our in-line forms of which there is no ability to alter how the lists appear on the form.
If you want to control that as much as you indicate then you can use our API to create your own custom sign-up form. Both our v2 and v3 APIs have example PHP to show how to use them. The v2 API has a sign-up form example code already that you could probably adapt.
As for the list names you can make those whatever you want them to be on your sign-up form without altering the list names in your Constant Contact account. The API would use a listID to identify the contact list in your account and the name that appears on your sign-up form is completely up to you.
You can post a new message in the Community or find us on Twitter Mon-Fri 8am-8pm ET, Sat 10am-8pm ET, & Sun 10am-6pm ET. We've got real people waiting to help you out. Click below to start a conversation!