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 III
Super User III

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.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,265)