Thanks for checking out the Multi Email Input LWC for Salesforce Screen Flows! I built this package because I couldn't find any other component that did what I wanted. While working on a form being built in a screen flow I had a requirement to allow the end users to enter several additional emails. That's fine, users can enter it in a text box and I can process it after with several extra steps, but what if there was an easier way??? Enter Multi Email Input! No more formulas or loops to parse user data that may or may not follow a consistent pattern. No clunky repeater element to deal with. This is a simple way to capture as many additional email addresses as your end user wants to enter!
This component works with SLDS1 and SLDS2. It looks great in SLDS2!
2025-04-23_17-27-37.mp4
Feel free to install the files diretly or you can use the package links below. Package links may be behind the source code at times.
Latest Version is 1.2.1. CHANGELOG
[Easy Mode] Copy and paste this after your org URL to run the installer. packaging/installPackage.apexp?p0=04tHo000000tCz0IAE
This component has several customizable fields.
- API Name You know this field!
- Allowed Domains Input a comma-seperated list of domains. This can be created with a text collection or as plain text. Example: gmail.com, yahoo.com, aol.com.
- Blocked Domains Input a comma-seperated list of domains. This can be created with a text collection or as plain text. Example: gmail.com, yahoo.com, aol.com.
- Wildcard Domains You can now include
*.edu, for example, in the allowed or blocked list. - Disabled Set this to true or false using a global variable or a formula. When Disabled=TRUE, pills are hidden.
- Maximum Emails Limit how many emails your user can add. Leave blank if you don't want to limit this. Has a default max of 150, which is the Salesforce limit for emails.
- Required Use a global variable or a formula to make this field required.
- Value Select a text collection of email addresses to prepolate the component.
- Output Variables Automatically output both a collection
[email;email]and textemail, emailfrom the component. If you're using the native Send Email flow action, this allows you to use the same component with the Recipient Collection or with the CC/BCC fields using the text output. - Error Messages Everything has default error messages built in, but you can also use custom error messages, including rich text for most of the fields.
After typing in a valid email address, press space, enter, or tab to add the address. Space and enter will keep the focus in the text field while tab will move to the next selection. Email inputs are evaluated by the Allowed Domains and Blocked Domains list simultaneously.
Click the X in the pill to remove na email address from the collection.
You can make everything to custom variables if you want to.
