PDF Template - HTML Form - Automatically Send To Email - html

I was hoping I could get some insight as to how to perform the following on my website;
I have a PDF application that I would like users to be able to fill out and hit 'Submit' to automatically send the filled-out application to my email.
Would it be possible to have an editable pdf on a web page that they fill out on the web page? When they are done they would hit submit and it would send a copy of this filled-out pdf to my email
Would it be possible to have an html form that the user fills out and when they hit submit, it automatically creates a copy of the pdf, fills in the fields using the html form information, and sends it to my email?
I have very little knowledge when it comes to this so any sort of assistance would be helpful.
Thank you!

Would it be possible to have an editable pdf on a web page that they fill out on the web page? When they are done they would hit submit and it would send a copy of this filled-out pdf to my email
I don't know about this.
Would it be possible to have an html form that the user fills out and when they hit submit, it automatically creates a copy of the pdf, fills in the fields using the html form information, and sends it to my email?
I know about this.
You can do this by using mpdf and PHPMailer libraries. I am using them in my projects. I will soon paste here an example.

Related

Dynamic behavior in Google forms using AppsScript

I am creating a Google forms page which ends with a file upload button. This file upload button should get enabled once the above existing form items like check box, text field, etc are validated. How can this be achieved using AppsScript in Google Forms? I couldn't file any resource that shows how to validate fields in a form.
The live form can only be static. You can not cause the layout or elements of the live form to change. You can only make changes to the master form and republish the live form.
There is built in validation with forms:
https://support.google.com/docs/answer/3378864?hl=en

Display custom message after submitting a Google Form

I have a Google Form that allows user to enter their information. After they submit the form, the data is inserted to a Google spreadsheet as a new row.
However I want to show a dynamic message right after the form is submitted, overriding the original "thank you" message. The new message would display the information they just filled in, with an number assigned to him.
For example, Mary filled in her data and submit the form. Since Mary is the 5th person to submit this form, the message shows her number as 5.
Is there any way to achieve this? I have been studying Google App Script and HTML service but I am not sure if this is the correct way.
Please note that we have already using email to send out this message for several years however user strongly suggest that showing their ID right after form submission would make lots of things much easier.
Thank you very much!
Update
I have been working on it and now I am able to make a web page that inserts a new row to a spreadsheet. But another question: How to publish the web page? When I open the "/dev" link it works fine; However when I open the "/exec" link it says cannot find "Index.html" and I am sure there is a file called Index.html.
There is no way to add a custom confirmation message for the current user of the currently open Form. You can run code to change the confirmation message when the Form is submitted, but changing the confirmation message when the Form is submitted won't take affect until the NEXT Form is opened, and that's too late. So the next person to open the Form would get the confirmation message of the previous user.
You would need to convert everything to a stand alone HTML App for something like that.
Google just released a new version of Google Forms. In the settings you can change the confirmation page message for respondents. You can save a link to a web page in the custom message. So if you can create a web page with the data you want displayed, you should be able to save the link in the custom message.
In order to achieve the above-mentioned goal, you need to get the Google form on your web page. No, I am not talking about embedding the form to your web page but to create a stand alone HTML page. The reason behind doing so is since Google is a third party website, editing any code in Google forms is not possible and there is no other way (at least I could not figure out Yet) to place custom thank you page URL for the Google Form. You can even remove certain codes in your HTML page to make sure it doesn't look like or says Google form. Basically, to have custom URL you need to replace
Code to be replaced for custom Thank you url in Google form
In case you are not a techie, Playing with codes might break the code.This step by step blog for customising Google form might help you.

Google App Script: Run script from within another script?

I am working on a payroll web app for my company. I was wondering if there is anyway to run a script from within another script. Such as having a hyperlink or something similar that the user could go and see a different UI and everything. If this is not possible, does anyone knows how to submit a copy of a html form to an email? I been trying to do this but GAS removes the styles and the JavaScript code that fills the form before sending it. I just need at least an image of the form so the manager could print it out and sign it.
Thanks
Yes, you can link from one script to another using regular anchors.
It's not Apps Script stripping your emailed form of this stuff. Email clients, including Gmail, intentionally don't support complex HTML. If you want an image, try creating a Google Doc with the DocumentsApp, converting it to pdf with document.getAs("application/pdf") and then emailing that.

Sending a html form via email as a pdf

I have made an html form. What i want to happen is when the user clicks submit for the page to be emailed as a pdf (like the pdf that comes up if you print the webpage). I've been looking a all sorts of script but nothing seems to do what I want.
You will have to have a server-side component that takes the values, creates the PDF, and then e-mails it appropriately.
You'll be surprised to hear that not all browsers can easily make pdfs out of web pages. Hence, there is no universal JavaScript command that simply taps into a browser's capabilities. That leaves you with options:
Generate the pdf on the server (using, say, pdfbox, and send the email right from the server (using good old sendmail).
Generate the pdf on the server, have the user download it, and then transfer it all to his email client. (Might just work, see on Stackoverflow).
Generate the PDF in the browser, cross-platform. There are some Javascript-only libraries that can generate PDF.
Use Safari's PDF capabilities. Safari can make PDFs just in the print dialog. Explain that to your users and call window.print().

HTML - Taking screenshot and pasting in email

I have a mailto link in HTML which when clicked, opens an email to IT Support. Is it at all possible to have a screenshot of the screen automatically copied and pasted into this email, without any action from the user?
You can't copy + paste an image directly into the mail client if using a mailto: link. If however you build a support email form, which sends the email server side from your webserver, using methods described in this question it will be possible to automatically include a screenshot of the site.