Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9115271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:23:28+00:00 2026-06-17T04:23:28+00:00

I used the code given in Embedding Google DocList in a Google Site to

  • 0

I used the code given in
Embedding Google DocList in a Google Site
to embed a list of files (taken from a folder in Google drive) in a page of Google Sites. I like to know, if there’s a way to modify the links on the output-page, so that they direct to the live-form of the spreadsheet and not to the spreadsheet-mode as it’s set in the script.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:23:29+00:00Added an answer on June 17, 2026 at 4:23 am

    EDIT : sorry about that, forget this first answer as there is actually a method to get form urls !!

    here is how it works

    function myFunction() {
      var ss=SpreadsheetApp.getActive()
      var formurl = ss.getFormUrl()
      Browser.msgBox(formurl)
    }
    

    so it would be quite easy to embed a list in a site page,

    here is a small code that does the job, online version here (needs authorization) be patient : can be slow to show up…

    function doGet() {
      var app=UiApp.createApplication().setTitle('Available Forms').setStyleAttribute('padding', '25');
      var user = Session.getEffectiveUser().getUserLoginId();
      app.add(app.createLabel('Available forms in Drive for '+user).setStyleAttribute('background', '#dddd33').setPixelSize(500, 18).setHorizontalAlignment(UiApp.HorizontalAlignment.CENTER).setStyleAttribute('fontWeight', 'bold'))
      var flex=app.createFlexTable().setId('flex').setWidth('500').setBorderWidth(1).setCellPadding(2).setStyleAttribute('borderColor', '#dddd33');
      var index = 0
      var docs = DocsList.getAllFiles()
        for (var n in docs){
          if(docs[n].getFileType()=="spreadsheet"){
            var ss=SpreadsheetApp.openById(docs[n].getId())
             if(ss.getFormUrl()){
        flex.setText(index, 0, docs[n].getName())
        flex.setWidget(index, 1, app.createAnchor('open form', ss.getFormUrl()))
        ++ index
      }
      }
      }
      app.add(flex)
      return app
    }
    

    again sorry that I forgot this feature.


    -Forms are embedded in spreadsheet and don’t appear as individual entities in your drive. Their ID (or URL) are not available from apps-script…. I’m afraid you’ll have to encode the URLs manually.-

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a novice Android developer. I used the code given at Google's Android developer
I used the code from Why is this slideshow flickering? which peter has given
I have used a code given in tutorial http://mylifewithandroid.blogspot.com/2010/12/expandable-list-and-checkboxes.html I have attached an image
The code given below is to convert binary files from float32 to 16b with
Technology Used:- Asp.Net 2.0 Code:- See Below Description:- hello code given below is working
I am trying to add jRadioButton into jTable . I used the given code
i used this code: List<string> lists=new List<string>(apple,orange,banana,apple,mang0,orange); string names; names=lists.Distinct() is that correct?
Here is the code i used given by the Twitter developer widget <a class=twitter-timeline
I have used this code given by Marc Gravell in SO to unzip a
I found this question on Stack Overflow, and used the code given in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.