Between 9pm - 11pm ET this Sat (9/18), we will be doing routine network maintenance. Please avoid usage of our API during this time frame - including any scheduled sync jobs. Thank you in advance for your patience.

PHP Sign-up with multiple Lists Checkboxes v3?

SOLVED
Go to solution
UtahD
Member

PHP Sign-up with multiple Lists Checkboxes v3?

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:

 

https://community.constantcontact.com/t5/Need-help-with-something-else/Allow-users-sign-up-for-multi...

1 ACCEPTED SOLUTION
Jimmy_D
Moderator

Hi @UtahD,

 

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.

 

Take a look at our v2 API documentation. v2: https://developer.constantcontact.com

Here are our SDKs and sample codes.

https://developer.constantcontact.com/libraries/libraries.html

https://developer.constantcontact.com/libraries/sample-code.html


Regards,
Jimmy D.
Tier II API Support Engineer

View solution in original post

2 REPLIES 2
Jimmy_D
Moderator

Hi @UtahD,

 

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.

 

Take a look at our v2 API documentation. v2: https://developer.constantcontact.com

Here are our SDKs and sample codes.

https://developer.constantcontact.com/libraries/libraries.html

https://developer.constantcontact.com/libraries/sample-code.html


Regards,
Jimmy D.
Tier II API Support Engineer

View solution in original post

Thank you for helping me get started. 

Developer Portal

View API documentation, code samples, get your API key.

Visit Page