Is it possible to load External Javascript in to Google Form ?

322 views
Skip to first unread message

Aekawit L.

unread,
Sep 3, 2019, 11:07:27 AM9/3/19
to Google Apps Script Community
Is it possible to load External Javascript in to Google Form

I try this function in form Script but It's error at eval() cannot load

function loadJSFromServer()
{
 
var url = "https://d.line-scdn.net/liff/1.0/sdk.js";
 
var javascript = UrlFetchApp.fetch(url).getContentText();
 
eval(javascript);
}

Andrew Roberts

unread,
Sep 4, 2019, 3:26:23 AM9/4/19
to google-apps-sc...@googlegroups.com
It is possible to just extract the HTML from a Google Form that does the submission, hence making the form fully customized with your own HTML/CSS, so there would be nothing to stop you adding your own JS in there.


--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/ad7847aa-1e79-439b-9584-e9df74579ec1%40googlegroups.com.

Michael O'Shaughnessy

unread,
Sep 4, 2019, 11:13:11 PM9/4/19
to google-apps-sc...@googlegroups.com
I have had success with "serving" html pages using the HTML service from Google Apps Script.  After you take a look at some examples you will find it rather straightforward.  By doing this you leverage your HTML/CSS/JS skills with Google Apps Script.  Here are a couple of YouTube videos to get you started:
 And here is a link to the HTML service: https://developers.google.com/apps-script/guides/html/

Hope this helps....


Reply all
Reply to author
Forward
0 new messages