Google Apps Script for spread sheets has a number of built in require- methods [1] but what if I want to create a my own validation routine. Effectively I'd like to create my own routine and have to return true/false and bind it to 'newDataValidation'
I see that 'withCriteria(criteria, args)' exists but that seems to be for modifying an existing rule set rather then creating one from scratch.
The two rules that I need added are maximum string length per line of text and maximum number of new lines per cell. If you can do this with the existing rule sets then bonus points for you.
[1] - https://developers.google.com/apps-script/reference/spreadsheet/data-validation-builder