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.
Hi Michael,
There is a record.removeRecordFromField(childRecord, field_id'); function you can use to unlink a record from a field.
Thanks,
Brendan
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
Did you provide field_id as a string? And childRecord should be an actual record object.
If you send me your form template I can test it here for you.