Announcements
I have a powerapps form linked to Sharepoint List. I have a button in it that creates a PDF file for which i wrote an HTML code in Powerapps. In this PDF i need one field to appear if department is XYZ else it should not be visible.
Kindly help.
Hey @cyberco01 , you can write "&&" to insert a function into the HTML editor in PowerApps 🙂 Like:"
"&If(Sky=Blue,true,false)&"
Show your <b><font color=blue>HTML</font></b> text here.
"
Hope it solves the issue!
Hi @cyberco01
In the html code example below, use If function to check department
"<b>This is my html code </b>" & If(Department = "XYZ","<b> Department is XYZ </b>") & "<b> More html code</b>"
Regards,
Reza Dorrani
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
It didn't work. Ends up printing the function as typed on my html & PDF files as part of a paragraph.
Should it not be in a <p> tag?
NB: I am on Compose control in Flow
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 395 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 260 Most Valuable Professional