Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 1.68 KB

README.md

File metadata and controls

23 lines (12 loc) · 1.68 KB

Leads Form Template (sms+email)

Gather leads through an in-app message. This in-app message template allows you to collect free-form input from users. With this template, you can capture a user’s phone number, email, and permission to contact them so that you can communicate with them through other channels such as email and SMS. This template is currently set up to send emails and phone numbers to your OneSignal user list through the OneSignal Rest API.

Other details can also be collected and used as tags to better segment users.

Lead forms are most effective in capturing data when shown to users at an “aha moment” of the user experience.

SMS + Email Form Screenshot

About This Template

This HTML template will let you request email addresses and phone numbers from users and submit requests the the Onesignal REST API to create new SMS and Email players out of them.

var ONESIGNAL_APP_ID = "00000000-0000-0000-0000-000000000000"; // Replace you own app-id here
.

You will need to add your Onesignal App ID into this template on this line

SMS + Email Form Animation

E.164-formatted Phone Numbers

Our REST API requires E.164-formatted phone numbers. To make this easier we are using the intl-tel-input library.