I am having a problem. I have multiple subscribe forms on a page, and no matter which list a user subscribes to, the confirmation always says "Thanks for joining list 1". I have tried to debug some, and the hidden element that contains the list_id seems to be set properly in the markup, and when i print it out in the function campaignmonitor_subscribe_form() it is correct. However, once it gets passed to the submit handler, it is always the same list_id no matter which form was submitted. I am not sure why. Any ideas?

Comments

bdawg8569’s picture

I think i have found the issue. In the function campaign_monitor_subscribe_form i changed the way the the values were being set for the hidden list_id field. Rather than using the #value property, i changed it to #default_value. #value was causing the same value to be submitted each time when multiple forms were on the same page. Default value works correctly, passing in the correct list Id.

cableman0408’s picture

I will have to look into this, which file and line did you change this in ?

cableman0408’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev
Status: Active » Fixed

The issue have been fixed and will be part of the next release. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.