Add Lead to List that matches value in Hidden Form field

Hi,



I have multiple pages for different product and service offerings. When someone fills out a form on one of these pages, I want them to be added to an associated List. So far pretty easy.



The trick is I don’t want to define one form per product/service. What I’d prefer is to have a generic form that I can use on each page, and then based on which page I place it on, it adds the Lead to the correct List.



It looks like I can create a hidden field, say ListName, and then have a campaign that makes a decision based on that value and adds it to the correct List. However I have two questions:


  1. How do I specify the value of ListName on each page the form appears on? I can see how to do it using the Manual HTML option, but is it possible to do it using the Automatic option (ie. the one that calls generate.js)?


  2. In the campaign, I end up with a “Form Field Value” condition"Modify Lead’s Lists" action pair for each possible value of ListName. This could get unwieldy pretty quickly. Is it possible to somehow reference the ListName hidden field value in the Action’s “Add lead to selected list(s)” box directly? ie. so it resolves it dynamically?



    I hope that makes sense.



    Cheers

    Malcolm

Hi,

I have multiple pages for different product and service offerings. When someone fills out a form on one of these pages, I want them to be added to an associated List. So far pretty easy.

The trick is I don’t want to define one form per product/service. What I’d prefer is to have a generic form that I can use on each page, and then based on which page I place it on, it adds the Lead to the correct List.

It looks like I can create a hidden field, say ListName, and then have a campaign that makes a decision based on that value and adds it to the correct List. However I have two questions:

  1. How do I specify the value of ListName on each page the form appears on? I can see how to do it using the Manual HTML option, but is it possible to do it using the Automatic option (ie. the one that calls generate.js)?

  2. In the campaign, I end up with a “Form Field Value” condition"Modify Lead’s Lists" action pair for each possible value of ListName. This could get unwieldy pretty quickly. Is it possible to somehow reference the ListName hidden field value in the Action’s “Add lead to selected list(s)” box directly? ie. so it resolves it dynamically?

I hope that makes sense.

Cheers
Malcolm

Hi, this is not currently possible right now. It’d be nice if someone could implement such a feature.

Thanks, I’ll log it as a feature request when I"m back in the office Monday.

I assume you mean Part 2 is not currently possible? I think this https://www.mautic.org/community/index.php/307-using-mautic-for-event-registration/0 is possibly a solution for part 1. If so, I can at least make this work, it just might be a little more manual than I had hoped.

Cheers
Malcolm

Posted the Feature Request here https://github.com/mautic/mautic/issues/1152