Integrate Form Tools with Google Spreadsheets?

BTEVC

Does anyone have any experience with the open source Form Tools API? I'm trying to dynamically populate a google spreadsheet with data being stored in a MariaDB database that's running an installation of Form Tools.

I could try to write a script to have Form Tools automatically populate a csv with my data, which then would get pulled into google sheets with an IMPORTDATA function, but I'm not savvy enough with either PHP or Smarty Template to get this done in a timely manner.

Any leads on this would be much appreciated!

BTEVC

Hey in case anyone is trying to figure this out, I managed to do it pretty simply by using the ft_api_show_submissions function (from the official Form Tools API documentation) in a page on my server and an IMPORTXML function triggered every minute in the Google Spreadsheet's Script Editor.

The PHP on my own hosted page looks like this (with the formID, viewID, and ExportType as the function values):

<?php 

   require_once("formtools/global/api/api.php");

   ft_api_show_submissions(1, 3, 1, $page);

?>

And the Google Apps Script looks like this:

function getData() {
   var queryString = Math.random();
   var cellFunction = '=IMPORTXML("url"' + queryString + '","//div")';

   SpreadsheetApp.getActiveSheet().getRange('A1').setValue(cellFunction);
}

This function pulls all of the divs generated by the PHP on the page I've published and spits their content into individual cells in my Google Spreadsheet.

To set the IMPORTXML function to auto-refresh I just put the function on a trigger that runs once every minute through the Apps Script UI.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Send information to Google Spreadsheets/Google Form

From Dev

Google Docs API - Spreadsheets which are Form Responses

From Dev

Integrate Google input tools in java program

From Dev

Format phone number string from google form to spreadsheets into an email draft using google script

From Dev

Error in Integrate Google Adwords conversion code in Contact Form 7 Wordpress

From Dev

Sumproduct division in google spreadsheets

From Dev

compare rows on google spreadsheets

From Dev

Logging into google spreadsheets with RGoogleDocs

From Dev

Configuration of Google spreadsheets with Odoo

From Dev

google spreadsheets switch statement

From Dev

No ETag in Google Spreadsheets Response

From Dev

Logging into google spreadsheets with RGoogleDocs

From Dev

Writing an array in Google Spreadsheets

From Dev

Google Spreadsheets and sheets

From Dev

Sorting letters in google spreadsheets

From Dev

Create a HTML UI form with two textboxes. Use responses in Google Spreadsheets

From Dev

Script generates new Google spreadsheets from template and name them upon form-submitted data

From Dev

Create a HTML UI form with two textboxes. Use responses in Google Spreadsheets

From Dev

integrate kdb/q with BI tools

From Dev

Google Spreadsheets - IF with more that three arguments

From Dev

Google new spreadsheets return JSON

From Dev

Google Drive Spreadsheets: Combining IF and VLOOKUP

From Dev

Python API for Google Calendar and Spreadsheets

From Dev

Move to the top function in google spreadsheets

From Dev

Is there a Polymer web component for Google Spreadsheets?

From Dev

Google Spreadsheets Script Move Row

From Dev

BigQuery Access for New Google Spreadsheets

From Dev

How to Count Timestamp on Google Spreadsheets?

From Dev

Google new spreadsheets return JSON

Related Related

  1. 1

    Send information to Google Spreadsheets/Google Form

  2. 2

    Google Docs API - Spreadsheets which are Form Responses

  3. 3

    Integrate Google input tools in java program

  4. 4

    Format phone number string from google form to spreadsheets into an email draft using google script

  5. 5

    Error in Integrate Google Adwords conversion code in Contact Form 7 Wordpress

  6. 6

    Sumproduct division in google spreadsheets

  7. 7

    compare rows on google spreadsheets

  8. 8

    Logging into google spreadsheets with RGoogleDocs

  9. 9

    Configuration of Google spreadsheets with Odoo

  10. 10

    google spreadsheets switch statement

  11. 11

    No ETag in Google Spreadsheets Response

  12. 12

    Logging into google spreadsheets with RGoogleDocs

  13. 13

    Writing an array in Google Spreadsheets

  14. 14

    Google Spreadsheets and sheets

  15. 15

    Sorting letters in google spreadsheets

  16. 16

    Create a HTML UI form with two textboxes. Use responses in Google Spreadsheets

  17. 17

    Script generates new Google spreadsheets from template and name them upon form-submitted data

  18. 18

    Create a HTML UI form with two textboxes. Use responses in Google Spreadsheets

  19. 19

    integrate kdb/q with BI tools

  20. 20

    Google Spreadsheets - IF with more that three arguments

  21. 21

    Google new spreadsheets return JSON

  22. 22

    Google Drive Spreadsheets: Combining IF and VLOOKUP

  23. 23

    Python API for Google Calendar and Spreadsheets

  24. 24

    Move to the top function in google spreadsheets

  25. 25

    Is there a Polymer web component for Google Spreadsheets?

  26. 26

    Google Spreadsheets Script Move Row

  27. 27

    BigQuery Access for New Google Spreadsheets

  28. 28

    How to Count Timestamp on Google Spreadsheets?

  29. 29

    Google new spreadsheets return JSON

HotTag

Archive