Hi Everyone,
I am new to Tapforms and experimenting right now with JavaScript. Is there an option to run a Script automatically during the “normal” saving process?
Thanks for your Help.
Hannes
Hi Hannes,
There are two types of scripts. Field scripts and Form scripts. Field scripts run automatically when a field referenced inside the script using the record.getFieldValue(field_id);
function is executed. Tap Forms also saves to the database whenever you exit a field. Although if you run a script that changes things, you’ll also want to call form.saveAllChanges();
So there’s no need to have a trigger to run a script when things are saved because with Field Scripts it happens automatically.
Form scripts must be run manually by you.
Thanks,
Brendan
Hi Brendan,
Thanks for your prompt answer. It took a while until I found the button. Is there a shortcut to run it?
thanks, Hannes
You can assign a ‘Menu Shortcut’ for a script. This way, you can start it with a keyboard shortcut like cmd-k. You find this in the script options.
Attachments:
You must be
logged in to view attached files.