Settings
Your school, your teachers, and your Google Sheets connection.
Google Sheets connection
Not connectedDeploy the supplied Google Apps Script as a web app, then enter its deployment URL below.
Set up your school Google Sheet
- Create a blank spreadsheet.
Open Google Sheets using the school’s Google account, choose Blank, and name it Bibhuti Pathashala Leave Records.
- Open its Apps Script editor.
In the spreadsheet menu, choose Extensions → Apps Script. Download Apps Script code below, open the downloaded file in a text editor, and copy all its contents. Replace everything in the editor’s Code.gs with that code.
- Add the script manifest.
Download Script manifest below. In the Apps Script editor, open Project Settings (the gear icon), enable Show appsscript.json manifest file, then return to Editor. Open appsscript.json and replace its contents with the downloaded manifest. Save your changes.
- Create the four worksheets.
Select setup in the function dropdown above the editor and click Run. Choose the school’s Google account and allow the requested spreadsheet access. If Google shows an unverified-app warning, proceed only for the script you just created and reviewed. Return to the spreadsheet to check Leave Records, Teachers, Settings, and Activity Log.
- Publish the script as a web app.
Click Deploy → New deployment. Choose Web app under Select type (the gear icon). Set Execute as to Me and Who has access to Anyone, then click Deploy. This allows people with the URL to read and change records without a login. If Anyone is unavailable, your school’s Google account policy may prevent this setup.
- Connect this application.
Copy the Web app URL ending in /exec. Paste it into Google Apps Script web app URL above and click Connect & Test. After Connected appears, add your real teachers in the Teachers section below.
You do not need to share your Google password or give this app access to your Google account.
Backend & deployment files
Use a new Google Sheet and its Apps Script editor. The setup function creates Leave Records, Teachers, Settings, and Activity Log worksheets. No teacher names or historical leave applications are added.
Teachers
Teacher information fills automatically when a teacher is selected in a leave application.
Connect Google Sheets to view and manage teachers.
School details & preferences
Leave types and approval statuses are stored in the Settings worksheet. Keep the four standard approval statuses for the approval workflow.