-->

Google App Maker - Creating a contract. Methods to

2020-08-01 17:43发布

问题:

I am trying to make a contract in Google App Maker. This contract features text boxes for people to enter their names. The issue I ran into is that it's not enough to just add the person to a SQL database, but there needs to be solid digital evidence of the person signing the contract.

Using 'ctrl' + 'p' on the appmaker script messes up the formatting of the page.

I see that there is an appmaker sample of how to create a PDF, however, this just creates a new document and then adds text to it. There is a lot of text in the contract and it is specifically formatted, so typing that up in a Google Doc through javascript would take hours.

Does anyone with experience with appmaker know of an easier method? Or is the one I found really the best?

回答1:

Here is what I ended up doing...

  1. Create a template google document with a certain identifier {} in places where information must be loaded into (ex. name, address, phone number...)

  2. In appmaker, create a script which read the contract and filled out all the identifiers {} with the relevant information

  3. In appmaker, there run the command to turn a google document into a pdf

  4. In appmaker, email that pdf to the relevant person