Forum Discussion
Combined email and sms capture using iam
In Braze, you can design multi-step experiences that collect an email address on one screen, a phone number on the next, and then display a confirmation page. However, there are a few key points to consider:
- Combined Multi-Step Forms:
• You can build in-app messages or web forms that collect different pieces of user data (email, then phone, etc.). Braze’s drag-and-drop editor for in-app messages and its Web SDK allow you to implement sequential screens.
• For each step, you’ll use the form blocks (Email Capture and Phone Capture) to gather the respective details. Note that when using form blocks, you might need to create an additional landing page for the confirmation state if you want to customize the flow. - Email Existence Check:
• Braze itself does not automatically return an error on the form if the email address you are trying to capture already exists on a user profile. Instead, Braze’s logic simply sets the email attribute on the currently active user profile.
• To notify users if the email already exists, you would need to implement that check externally. The Braze documentation recommends checking against your internal database (or any external record) that tracks user profiles. This step would typically occur when the email is submitted—first querying your external system before making the call to update the Braze user profile using methods like braze.getUser().setEmail(emailAddress). - Implementation Tips:
• If you are using the Web SDK, utilize the methods for setting both email and phone numbers. For example:
• braze.getUser().setEmail('<email_address>');
• braze.getUser().setPhoneNumber('<phone_number>');
• Develop a backend or use a client-side script to check email uniqueness against your own user records before proceeding to the phone capture screen.
• For users who capture their phone number, ensure you’re also optionally using the SMS (or WhatsApp) double opt-in feature as recommended by Braze.
For more details about capturing data with web forms and best practices for using multi-step capture flows, refer to the respective sections in the Braze documentation:
• Capturing user data through the Web SDK: https://www.braze.com/docs/developer_guide/platform_integration_guides/web_sdk/
• SMS/WhatsApp phone number capture and double opt-in features: https://www.braze.com/docs/user_guide/message_building_by_channel/sms/
• Email technical guidelines can be found here: https://www.braze.com/docs/user_guide/message_building_by_channel/email/best_practices/
In summary, while Braze supports both email and phone number capture, you will need to implement your own logic (likely via an external database/API call) to check if an email address already exists before moving forward with the phone number capture step. This enables the form to notify the user about duplicate emails.
Related Content
- 3 years ago
- 2 years ago
- 6 months ago
- 2 months ago