Notifications
Announcements
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?
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> "
Hope this helps.
Sik
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 711 Most Valuable Professional
Michael E. Gernaey 319 Super User 2025 Season 2
Power Platform 1919 268