Script Library
The Script Library is the repository where I store my scripts that I share among different Tap Forms Pro applications. In order to use them, the scriptHandler script needs to be installed first.
To simplify navigation between the different script pages, the left and right arrow keys can be used.
Color Codes
Color definitions for use to set color values in fields and console.log(). TapForms has a color option when writing to the console using console.log("some text", "#ff0000"). Apart of white, black, red, green, blue and some shades of gray, it is hard to remember the RGB values of a particular color. ...
configHandler
tagHandler is a script designed for persistent variable storage across different scripts within a single TapForms Pro document. When an instance of this class is created, the configHandler loads all variables associated with the specified domain to optimize record searching. Variables can be accesse...
Highlight Minified
Highlight.js is a syntax highlighter written in JavaScript. It can work with pretty much any markup, doesn’t depend on any other frameworks, and has automatic language detection. Please see https://highlightjs.org for details. Hightlight.js is used in the Export HTML Handler to provide syntax highli...
HTML Export Handler
Helper function to display html formatted output in the system browser. The Export HTML Handler script for TapForms Pro exports form records into a single html file. It provides a view very similar to how TapForms Pro's Default Layout looks like. The aim of this script is to generate a html view of ...
htmlPrompter
htmlPrompter is a helper function to display html formatted output in the system browser. It looks like a simple popup that uses the system's web browser. As the name implies, it displays html formated text. This helper is used as the main interface of the scriptHandler and the compareScript applica...
jsdiff
A JavaScript text differencing implementation. See https://github.com/kpdecker/jsdiff for complete documentation and examples. I use this libaray in the Script Compare and scriptHandler applications to compare different scripts. Usage This script is a helper script that is launched from other applic...
Open In External Editor
Opens a script in an external editor with support of reloading such edits back into Tap Forms Pro. Tap Forms' script editor has come a long way. Still, once in a while I'm looking for some more advanced features and more customizabilty. That's the origin of the idea for the Open In External Editor s...
Pako Deflate Min
A zlib port to javascript, very fast! See github.com/nodeca/pako for complete documentation and examples. Usage This script is a helper script that is launched from other applications. It is used to compress data. // load script document.getScriptNamed('Scripts').runScriptNamed('pako deflate min'); ...
prompterHelper
Helper library to provide different Prompter abstractions to make it easier to use the popup prompter. Three different type of helpers are provided: picklistPrompter A simple prompter to select a value from a list or from a named picklist. The defaultSelection is optional. picklistPrompter(title, te...
Quick Launch
Provides a pop-up where one can select which document favorite script it should be launched. Usually, this script is launched using a keyboard shortcut like cmd-k. Usage This simple application is best used as a document script. But using this script as a document script would prevent the scriptHand...
random-words
Generate one or more common English words See https://github.com/apostrophecms/random-words for complete documentation and examples. Usage This script is a helper script that is launched from other applications. It can be used to generate a sequence of random words. I use this to populate fields wit...
Script Search
This script searches through all available scripts in a given document and reports if and where a match is found. It uses a selector popup where one can select how the search should be performed: on All forms, on Document scripts only, or on a particular form. The search is case sensitive! The searc...
scriptHandler
A management script for my TapForms Pro script repository. I keep a script repository on my server where I maintain a set of scripts that I share among different TapForm Pro applications. By having them accessible online, it is easy to maintain, update and reuse them whenever needed. scriptHandler i...
Showdown Minified
Showdown is a JavaScript Markdown to HTML converter, based on the original works by John Gruber. Usage Following example shows how to render markdown code to html: document.getFormNamed('Scripts').runScriptNamed('Showdown Minified'); let mdconverter = new showdown.Converter({"parseImgDimensions": tr...
tagHandler
tagHandler is a class that simplifies handling of tags in strings (aka text fields). It provides following features: initialize tag object add tag remove tag sort tags toString An example application can be found in the tips&tricks section. Usage This script is a helper script that is launched from ...
TF API Extensions
This script adds methods that extend the standard TapForms Pro Javascript API. Provided methods: Function Description Return Value Example DOCUMENT getScriptNamed(name) Returns first document script that matches specified name script var scr = document.getScriptNamed("Add Client"); getScriptWithId(i...
