cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
swinnings
Regular Visitor

Is it possible to insert a full form into HTML for export to PDF?

I have created a PowerApp and added an export to PDF button. I have created the PowerAutomate flow. I am now at the point of making a HTML code for the export. Is it possible to just put the form in without having to put in every single title, text, etc.?

 

What I want is something like this.

"<!DOCTYPE html>
<html>
<body>

<h2> PDF Report </h2>
<h2>Title</h2>
<div>"& Title1.Text &"</div>
<div>"& Form1.LastSubmit &"</div>

</body>
</html>
"

 

Is this even possible?

 

Thanks,

Shannon

1 ACCEPTED SOLUTION

Accepted Solutions
zmorek
Super User
Super User

I shamelessly use HTML generators online for my tables (rather than sit there and count my brackets to make sure I  closed my <divs>)!

 

I don't know how long your form is, or the number of fields or anything... But have you considered simply using Print()? You can insert a vertical print screen to accommodate additional length. Downside is I don't believe it works on mobile yet.

View solution in original post

4 REPLIES 4
zmorek
Super User
Super User

To my knowledge, no, because Form1.LastSubmit requires the rest of the polymorphic reference (e.g. Form1.LastSubmit.ColumnName); Form1.LastSubmit just references the record in its entirety.

Is there the ability to just do Form1 (without the Last Submit)? I'm hoping to avoid having to do the entire HTML code, though I will probably not be that lucky!

zmorek
Super User
Super User

I shamelessly use HTML generators online for my tables (rather than sit there and count my brackets to make sure I  closed my <divs>)!

 

I don't know how long your form is, or the number of fields or anything... But have you considered simply using Print()? You can insert a vertical print screen to accommodate additional length. Downside is I don't believe it works on mobile yet.

I'm also using a HTML generator now for convenience!

 

The form is, unfortunately, long (I didn't make it), but I will look into what I can do with the Print() function. 

 

Thanks!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,038)