cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hodgson41
Regular Visitor

Dropdown Box to HTML

Hi Guys, 

 

Fairly new to power apps, I have managed to create a basic app, I am trying to build an app when the users can enter data into a form which can then be emailed out. 

 

I have managed to get this working by using HTLM text box apart from the dropdown boxes i have. When i add the dropdown box name to the HTML box i get an invalid expression. 

 

Extract of the code is below 

 

"<p> Engineers Name: " & Dropdown1.SelectedText

 

Any help wouuld be appreciated. 

 

Cheers

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @hodgson41 ,

Based on the formula that you provided, I think there is something wrong with it. The result the Dropdown1.SelectedText formula returned is a record value, but the HtmlText property of the Html Text control is required to provide a Text value.

You could not concatenate a record value with a Text string directly within PowerApps app.

 

As an alternative solution, please consider modify your formula as below:

"<p> Engineers Name: " & Dropdown1.Selected.Value & ".."

or

"<p> Engineers Name: " & Dropdown1.SelectedText.Value & ".."

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
timl
Super User
Super User

Hi @hodgson41 

Could you try the following to see if that solves your problem?

"<p> Engineers Name: " & Dropdown1.SelectedText.Value
v-xida-msft
Community Support
Community Support

Hi @hodgson41 ,

Based on the formula that you provided, I think there is something wrong with it. The result the Dropdown1.SelectedText formula returned is a record value, but the HtmlText property of the Html Text control is required to provide a Text value.

You could not concatenate a record value with a Text string directly within PowerApps app.

 

As an alternative solution, please consider modify your formula as below:

"<p> Engineers Name: " & Dropdown1.Selected.Value & ".."

or

"<p> Engineers Name: " & Dropdown1.SelectedText.Value & ".."

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,763)