I have created a subscribe page in phplist that offers users an ability to sign up for 3 different lists (at the moment, there might be more in the future).
I’ve also created a landing page on my website with an AJAX form that is meant to promote one of the lists from above and allow users to subscribe only to that one specific list. I’ve based my AJAX form on this wiki here: https://wiki.opensourceecology.org/wiki/Phplist#Example_Form_for_OSEmail
The code is working, the users are subscribing properly from my landing page BUT there’s one problem. Even though the specific list ID seems to be defined in the AJAX form code, the users are still being subscribed to all 3 lists at once. Why?
Is this the limitation of AJAX subscription? Or can I somehow define specific list ID in the AJAX form so the users will sign up only for one specific list?
I know that I can make a workaround and create a separate “subscribe page” in phplist and check only that 1 list there and use it for AJAX form. But this raises another problem: when user tries to access his preferences page, he’s tied to the last subscribe page he used. So if he first signed up for list #1 and #2 from the traditional subscription page that offers all 3 lists and THEN he would sign up for list #3 through my landing page with AJAX form tied to different subscribe page that only offers list #3, then on his preferences page he’s going to see only that list #3. He won’t see the list #1 and #2 from other subscribe page and won’t be able to manually uncheck the previous lists. That’s why I want to have only 1 subscription page and just control with the AJAX Form to which list the user will be assigned. Is it possible?