web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / HTML tags in Power Apps
Power Apps
Answered

HTML tags in Power Apps

(0) ShareShare
ReportReport
Posted on by 220

I am using HTML to create a PDF file. In Power Apps I have a field that is true/false. I want to use HTML to turn the true into a checked box but I can't get it to work. <input type="checkbox" name="data" value="true" checked> would work if I wasn't in Power Apps. Are there some tags that won't work?

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    on at

    Hi @Aimthedame ,

     

    In PowerApps, the HTML Text property, the single quotes must be replaced by double quotes. Please try this:

    "<input type=""checkbox"" id=""option1"" name=""checkbox"" value=""true"" checked>
     <label for=""option1""> true</label><br>
     <input type=""checkbox"" id=""option2"" name=""checkbox"" value=""false"">
     <label for=""option1""> false</label><br>
    "

    Snipaste_2020-10-15_10-36-27.png

    Hope this helps.

    Sik

      

  • Verified answer
    Aimthedame Profile Picture
    220 on at

    If this helps anyone, I ended up just using an image rather than the HTML checkbox.

     

    "& If(CheckDuct1.Value = true, "<img src="& JSON(imgCheck.Image, JSONFormat.IgnoreBinaryData)&">","<img src="& JSON(imgUncheck.Image, JSONFormat.IgnoreBinaryData)&">") &"

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard