Duplicate Current Record with Script Command

Tap Forms – Organizer Database App for Mac, iPhone, and iPad Forums Script Talk Duplicate Current Record with Script Command

Viewing 4 reply threads
  • Author
    Posts
  • September 6, 2022 at 10:46 AM #47916

    dan carter
    Participant

    Hello All,

    Does Tap Forms have a script command to duplicate the record currently being viewed. Have tried Duplicate(this) with no luck.

    Many Thanks, Dan

    September 6, 2022 at 12:21 PM #47917

    Daniel Leu
    Participant

    Yes, there is

    var copyOfRecord = record.duplicate();
    document.saveAllChanges();

    You can execute this from a form script.

    September 6, 2022 at 1:18 PM #47918

    dan carter
    Participant

    Many thanks Daniel. Just what I was looking for.

    September 6, 2022 at 11:07 PM #47919

    Brendan
    Keymaster

    You can find all the commands Tap Forms supports here:

    https://www.tapforms.com/help-mac/5.3/en/topic/javascript-api

    September 7, 2022 at 7:27 AM #47927

    dan carter
    Participant

    This is very helpful Brendan. Many thanks for this and Tap Forms…

Viewing 4 reply threads

You must be logged in to reply to this topic.