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
wyotim
Resident Rockstar
Resident Rockstar

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
wyotim
Resident Rockstar
Resident Rockstar

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

wyotim
Resident Rockstar
Resident Rockstar

Awesome! Glad it worked for you!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (77,227)