cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
slan2018 Helper II
Helper II

Question on using button to launch an email

Hello! I am trying to have a button launch an email OnSelect. It does work! I just cannot figure out how to make the "Subject" one of the answers they've just submitted in the form. 

 

This is what I have right now:image.png

 

What I would like to have for the subject is whatever the user entered into DataCardValue3. 

 

How would I adjust my formula? 

 

Thank you!

 

Sara

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Question on using button to launch an email

Hey @slan2018, try this:

 

Launch("mailto:someone@email.com?subject=" & DataCardValue3.Text)

Now for the caveats. While I was able to get this to work in test, any spaces were decoded as a "+". I tried to substitute a %20 for each space but it still showed up as a "+". I was able to substitute "_" which made it a little more readable. Here is the code for that:

 

Launch("mailto:someone@email.com?subject=" & Subsititute(DataCardValue3.Text, " ", "_"))

I tested this on my iPhone and Windows 10 computer, for reference. Feel free to comment back if I can try and help further!

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Question on using button to launch an email

Hey @slan2018, try this:

 

Launch("mailto:someone@email.com?subject=" & DataCardValue3.Text)

Now for the caveats. While I was able to get this to work in test, any spaces were decoded as a "+". I tried to substitute a %20 for each space but it still showed up as a "+". I was able to substitute "_" which made it a little more readable. Here is the code for that:

 

Launch("mailto:someone@email.com?subject=" & Subsititute(DataCardValue3.Text, " ", "_"))

I tested this on my iPhone and Windows 10 computer, for reference. Feel free to comment back if I can try and help further!

View solution in original post

slan2018 Helper II
Helper II

Re: Question on using button to launch an email

The second formula worked PERFECTLY! 

 

Thanks,

 

Sara

Super User
Super User

Re: Question on using button to launch an email

Awesome! Glad it worked for you!

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (9,128)