isabella232 / gas-form-validation

Code used in the Google App script form validator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Sheet add-on for SurveyCTO spreadsheet form validation

This repository stores the source code for the add-on you can use to validate your spreadsheet form definition in Google Sheets. For the full documentation, check out this support article. For a complete list of validations performed by the add-on, check out this page.

The add-on was created using Google app scripts. Here is a list of the files used, which can all be found in the source folder:

AutoFixes.gs: Functions to automatically perform fixes when confirmed.
ChoicesValidation.gs: Functions for validating the choices sheet.
ExpressionChecks.gs: Functions for validating field properties that use expressions, such as relevance, constraint, and calculation.
FuncExprVal.gs: Functions for validating specific types of SurveyCTO functions. Currently, it is only used to validate the indexed-repeat() function.
GenericFunctions.gs: Generic functions that are not specifally for SurveyCTO forms, but can be helpful in other scripts as well. HeaderVal.gs: Functions used to make sure the needed headers are used on each sheet of the form definition.
interface.html: Template for the sidebar interface.
Main.gs: Stores the function that is activated when the validation is run, as well as other upper-level functions.
MoreFunctions.gs: Functions that don't belong in any other file.
SettingsValidation.gs: Functions for validating the settings sheet.
SidebarCode.gs: Functions and variables used by the sidebar.
SurveyValidation.gs: Functions for validating the survey sheet.

About

Code used in the Google App script form validator

License:Apache License 2.0


Languages

Language:JavaScript 95.2%Language:HTML 4.8%