We need to be able to send mails by MailChimp, include a link to update the user profile. This is done by 123formbuilder with a dynamic form. The user data and assigned groups from MailChimp should be prefilled in the form. When finished the user data must be updated in MailChimp (done by standard API in 123formbuilder).
Content to be prefilled in the from are: fields, merge tags and also group values. Mailchimp is not offering conditional merge (for groups) in for URL in an HREF part. So I need a solution and the code so we could extend depending on new type of groups added in the future.