FAQ Database Discussion Community


Disable submit button in Google Forms?

google-apps-script,google-docs,google-docs-api
I'm writing a form and have a multi-select with certain responses (age range); for ranges below a specified value, we redirect users to a page with information on why we don't accept that range currently, etc. The problem is that the form navigation appears on this page, so they can...

Is google phasing out the Google Docs Viewer?

google-api,google-drive-sdk,google-docs,google-apps,google-docs-api
I'm unable to find any reference to the Google Docs Viewer anywhere on the web except on sites from a few years ago. It still works, but I want to be a little more confident before I deploy code that relies on it. Here's an example of the viewer in...

How to exclude trashed files when listing files in google drive

api,rest,google-drive-sdk,google-oauth,google-docs-api
I want to list all the files in google drive using google drive api v2 . But I want to exclude files in trash in the list So I tried GET https://www.googleapis.com/drive/v2/files?trashed=false as suggested in the api documentation But still I get files in the trash folder ,Am I missing...

Google Apps Script: Finding text and setting cursor to found text

google-apps-script,google-docs-api
I would like to setCursor to the location that is returned by findText. Here is what I am trying: var position = doc.newPosition(foundElement.getElement(), foundElement.getStartOffset()); doc.setCursor(position); But, the cursor does not move. Even with the simple examples like //setting cursor at the beginning of the doc var paragraph = doc.getBody().getChild(0); var...

How can I omit the property names of my json and just display the values?

javascript,json,google-docs,google-docs-api
I wrote a small api to pull nutrition info from public diaries on MyFitnessPal. I'm pulling this information into a Google Sheet using the ImportJSON.gs found here: https://gist.github.com/paulgambill/cacd19da95a1421d3164 What I get is a two row result: Calories Protein Fat Carbs 2458 196 82 234 My returned json looks like this:...