cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
swinnings
Frequent 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 Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,450)