Run script automatically while saving

Viewing 3 reply threads
  • Author
  • March 21, 2024 at 11:50 AM #50647

    Hannes keller

    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.


    March 21, 2024 at 1:41 PM #50650


    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.



    April 7, 2024 at 4:16 AM #50671

    Hannes keller

    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


    April 7, 2024 at 8:31 AM #50672

    Daniel Leu

    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.

    You must be logged in to view attached files.
Viewing 3 reply threads

You must be logged in to reply to this topic.