cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
russelln1
Resolver I
Resolver I

Printing a Tab form - stuck on the last bit!

Hi All

 

This is about html Text in powerapps so apologies if it shouldn't be on here.

I need to print a tabbed form in powerapps using sharepoint as a data source.

So far I have all the data showing up as expected in a HTML Text box, all my coding is working how I want it to. I click on the record and it all changes to display that particular record - excellent, except for one thing, how do I get toggle buttons to display my chosen values of Yes or No. I'm getting False and True using but would really prefer yes or no.

<center><h3><u>History:</u></h3></center>
<p><b>Pending Prosecution:</b> " & Gallery7.Selected.PendingProsecution & "
&nbsp; &nbsp; <b>Criminal Convictions:</b> " & Gallery7.Selected.CriminalConvictions &" </p>

<p><b>Military Experience:</b> " & " " & Gallery7.Selected.MiltaryExperience & "
</p>


Many thanks

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @russelln1 ,

Try this

<center><h3><u>History:</u></h3></center>
<p><b>Pending Prosecution:</b> " & Gallery7.Selected.PendingProsecution & "
&nbsp; &nbsp; <b>Criminal Convictions:</b> " & Gallery7.Selected.CriminalConvictions &" </p>

<p><b>Military Experience:</b> " & " " & 
If(
   Gallery7.Selected.MiltaryExperience,
   "Yes",
   "No"
) & "
</p>

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @russelln1 ,

Try this

<center><h3><u>History:</u></h3></center>
<p><b>Pending Prosecution:</b> " & Gallery7.Selected.PendingProsecution & "
&nbsp; &nbsp; <b>Criminal Convictions:</b> " & Gallery7.Selected.CriminalConvictions &" </p>

<p><b>Military Experience:</b> " & " " & 
If(
   Gallery7.Selected.MiltaryExperience,
   "Yes",
   "No"
) & "
</p>

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

BCBuizer
Super User
Super User

Hi @russelln1 ,

 

Use the below instead of Toggle.Value:

 

If(Toggle.Value,"Yes","No")


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Awesome!!! Thank you.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,418)