Hello Everyone,
I currently have a form for quality assurancesurvey form, this form is pretty simple with just radio buttons and a rating scale.
Screens and contents:
BrowseSceen1 - BrowseGallery1
DetailsScreen1 - DetailFrom1
- Last Name_DataCard1
- DataCardValue1
- DataCardKey1
- Supervisor Full Name_DataCard2
- DataCardValue79
- DataCardKey90
- ENV_AVG_DataCard1
- DataCardValue26
- DataCardKey26
EditScreen1 - EditForm1
I would like to configure my submit button to submit and print the information as a PDF (and ideally email it to the surveyee). Currently I'm trying to the data to populate from DetailsScreen1 using an htmltext box however I can only get it to work if I use BrowseGallery1.allitems. The code I'm using is listed below.
"<!DOCTYPE html>
<html>
<head>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head>
<body>
<h2>Quality Assurance Report</h2>
<table>"&
Concat(BrowseGallery1.AllItems,"<tr><td>"& DataCardValue1 & "</td><td>" & DataCardValue79 & "</td><td>" & 'Created By'.DisplayName & "</td><td>" & DataCardValue26 & "</td></tr>")
&"
</table>
</body>
</html>
"
To submit & Print PDF I'm assuming the function OnSelect would be "SubmitForm(EditForm1) & MakePDF.Run(PDFExport.HtmlText, "Record Number - " & Gallery1.Selected.ID)"
Make.PDF is on Flow
Please let me know if you need additional documentation.