Retrieve Available Subscriber Custom Fields

Hello,

Is there a way to retrieve the available custom fields for a particular subscriber list? We have multiple subscriber lists, each with their own set of custom fields. I'm trying to write one function to output each subscriber signup form (that I can call on various pages around the website). I would like to retrieve the available custom fields, so I know which form fields to create for each subscriber signup form.

Note, I'm manually creating the subscriber forms with PHP/HTML, and using the API on form submission to add the subscriber. So I'm not using the 'Create a subscribe form' tool in CM.

Thanks!

James

Phil Phil, 4 years ago

Hi James,

All custom fields are available through the API.

The correct method in the php wrapper is here, along with a basic sample.

Phil

roshodgekiss roshodgekiss, 4 years ago

Hi James, we have a custom fields API method which you can use to retrieve the custom fields for a given list. You'll need to make a call for each list (list ID). Hope this helps, but let us know if you have any questions :)


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
Pica Pica, 4 years ago

Thanks so much!!


Pica Design + Marketing
http://www.picadesign.com

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free
1-888-533-8098