The form below will add a new subscribed contact to your database, and display a pop-up message on success.
ContactMode="register" is set on the <ss:forms:form> control, which will register a new contact, and fail validation if the contact
Request Marketing Consent
Contacts added to your database via other forms (such as contact forms), will be aded with the e-mail marketing status "Pending" to flag inferred consent.
Adding to the contact enquiry form example, you can explicitly ask users whether they want to receive e-mail newsletters, and set their e-mail marketing status to "subscribed" (line 16-18):