Home ›  Tap Forms Pro ›  Script Library ›  TF API Extensions ▾ 

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


Do you like this script? Are you using it? Please consider supporting me by buying me a coffee!

Buy Me Coffee Link

Thanks!


Last modified: Apr 24, 2025 6:30:25 PM


Browse posts:

Tap Forms Consulting

Do you need help writing scripts for your Tap Forms Pro database? I'm happy to help you. Contact me to discuss your idea or project.


Web Design Consulting

Do you need help designing your web site or getting Backlight working the way you want? Contact me to discuss your needs.


Buy me a Coffee

If you like what I share here, please consider buying me a coffee or a print. This helps keeping me motivated to continue posting. Thank you!

Buy Me A Coffee