Remove “Link from Form” record by script

Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch › Forums › Using Tap Forms Pro › Remove “Link from Form” record by script

Tagged: 

Viewing 4 reply threads
  • Author
    Posts
  • November 29, 2026 at 1:23 PM #54829

    Michael Stoehrel
    Participant

    Hi all

    Based on a status field a script should run some calculations and/or cleanup tasks.
    One part of the cleanup is to remove a record in a “Link from Form” field.
    Or in other words the script should execute simply the “-” button in the field…

    Any ideas are welcome.

    November 29, 2026 at 10:28 PM #54833

    Brendan
    Keymaster

    Hi Michael,

    There is a record.removeRecordFromField(childRecord, field_id'); function you can use to unlink a record from a field.

    Thanks,

    Brendan

    November 30, 2026 at 7:53 AM #54836

    Michael Stoehrel
    Participant

    Hi Brendan

    Thanks for the fast reply,
    I tried already “record.removeRecordFromField”, now that I know its the right one,
    it looks like that I do not understand which parameters I have to give.

    Either I get an “TypeError: Argument does not match Objective-C Class, line:(null)”
    or it does nothing, so I thought it does not work with “Link from Form”

    Michael

    November 30, 2026 at 8:02 PM #54839

    Brendan
    Keymaster

    Did you provide field_id as a string? And childRecord should be an actual record object.

    November 30, 2026 at 8:03 PM #54840

    Brendan
    Keymaster

    If you send me your form template I can test it here for you.

Viewing 4 reply threads

You must be logged in to reply to this topic.