cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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

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

The second formula worked PERFECTLY! 

 

Thanks,

 

Sara

Awesome! Glad it worked for you!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (12,138)