Responsive Web Apps using Google Apps Script

Hi Apps Script developer's,

Google apps Script allows to develop Dynamic and Static Web applications like fetch data from Google Sheet and create dynamic cards, intelligent data entry form, Workflows, Help Desk, etc. When you create Web apps using Google Apps Script, it will not be responsive.

You can make applications responsive using third party framework like Bootstrap, Material design or other HTML responsive framework.

In this post I am explaining how to create responsive(Using Bootstrap 4.0) Google Apps Script Web application from scratch
*Required Basic HTML & responsive framework knowledge 
  • Go to your Google Drive
  • Open Google Apps Script Editor 
  • Create new blank apps script Project & save it
  • Add 3 more Html files Index.html, JavaScript.html & Stylesheet.html with given code



    For any Web application it requires 4 main components(I am explaining best practise here, you can add HTML, JS & Stylesheet in to two files if you want)

    For code files Bitbucket Repository 

    • Server side coding (Code.gs)
    • HTML code file (Index.html)
    • JavaScript (JavaScript.html)
    • Stylesheet(Stylesheet.html)
  • Deploy Apps Script as "Deploy as web app" from "Publish" Menu 
  • See My Apps Script Result (It is not accepting your inputs) using Chrome browser developer tools

Happy Coding...



Comments

  1. Thank you for the solution of my problem

    ReplyDelete
  2. Thank's Shiva. It works...
    I try to embed my apps script webapp to Google Sites before, but that Google Sites blocked my Geolocation function. But with your tips, I can do it without Google Sites because my second problem about webapp display in mobile was solved, it's compatible to mobile device now. Again, Big thanks...

    ReplyDelete

Post a Comment

Popular posts from this blog

Google Apps Script Exception Handling

Google Apps Script Regular Expressions