cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Armintaktar
Helper I
Helper I

Seperating emails with ";" in a text input field.

Hi, i have a text input field which i´m writing an email address in it, but i want to know how i can write more emails in the field and seperate them with " ; ". I would also make a text label, where i could show all of the emails in the input field (without ";") . P.S. : The user will just send external emails therefore i didn´t use combo box. 

Thanks
Armin

1 ACCEPTED SOLUTION

Accepted Solutions
WiZey
Super User
Super User

Hello @Armintaktar ,

 

You can separate multiple values in a string with "Split()".

 

https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-split

 

The code below is an example on how to split on the « ; » character:

 

Split(
        "1;2;3;4;5";
        ";"
    )

 

"Split()" returns a table, so I recommend using a gallery instead of a label if you want to display all the emails.

 

Hope this was helpful to you.

View solution in original post

3 REPLIES 3
phipps0218
Super User
Super User

Why are you not using a combobox and multi-select?

 

Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
Twitter: https://twitter.com/phipps0218

Because the user will only send external emails and as far as i know it is not possible to write an email address in combo box . 

WiZey
Super User
Super User

Hello @Armintaktar ,

 

You can separate multiple values in a string with "Split()".

 

https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-split

 

The code below is an example on how to split on the « ; » character:

 

Split(
        "1;2;3;4;5";
        ";"
    )

 

"Split()" returns a table, so I recommend using a gallery instead of a label if you want to display all the emails.

 

Hope this was helpful to you.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,910)