Developer forum

Forum » Templates » Signup for newsletter through a standard form

Signup for newsletter through a standard form

Thomas Nielsen
Reply
Hello,

I have a couple of solutions where the owners are creating competitions for visitors to participate in.
When a visitor fills out the competition form, we would like for them to be able to check a checkbox if they would like to recieve a newsletter.
If the checkbox is checked i want the data to be added to a newsletter recipientslist - how can this be done?

--

Thomas B. Nielsen
Nobrainer Web


Replies

 
Nicolai Høeg Pedersen
Reply
It is going to be a feature of DW 8.

Using the new forms module, do a FormSaveProvider (See "(en-US) Data Management Extensibility API.pdf" here: http://developer.dynamicweb-cms.com/downloads/documentation.aspx)

For the old one, only option is to do a notification subscriber observing Notifications.Standard.Application.BeginRequest
If request is a post, and the "signup for newsletter" field in your form is checked, do the signup using newsletterv3 api.

 
Thomas Nielsen
Reply
Thanks again Nicolai,

Will do with the import feature in Newsletter v3 untill this is a standard feature, as i have no idea how to do the steps you describe in the post above :-)

--

Thomas B. Nielsen
Nobrainer Web

 

You must be logged in to post in the forum