Category: Script Library
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(id) | Returns document script with specified id | script | var scr = document.getScriptWithId(script_id); |
| FORM | |||
| fetchRecordWithMatch(field_id, value) | Fetches the first record where the specified field matches the given value | record | var rec = form.fetchRecordWithMatch(field_id, value); |
| getScriptWithId(id) | Returns form script with specified id | script | var scr = form.getScriptWithId(id); |
| RECORD | |||
| getLinkedFieldValues(link_id, id) | Gets the field values in a linked form | Array of values | var values = record.getLinkedFieldValues(field_id, id); |
Usage
This script is a helper script that is launched from other applications. It doesn't do anything on it's own.
To use the features this script provides, include it with
document.getFormNamed('Scripts').runScriptNamed('TF API Extensions');
Installation
The TF API Extensions script is installed using the scriptHandler script about which you can learn more over here. It is installed in the Scripts form.
Dependencies
none
ChangeLog
Link to ChangeLog
Author
- Daniel Leu, info@danielleu.com
Do you like this script? Are you using it? Please consider supporting me by buying me a coffee!
Thanks!
Last modified: Apr 24, 2025 6:30:25 PM
Browse posts:
