Has anyone used script to copy the contents of a table field in one form to a table field in a linked form? Is it even possible?
This should be possible. I don’t see any reason why not.
Sam has a smart script to copy a record from one form to another. Copying from one table to another is very similar. Have a look at his script for inspiration: https://www.tapforms.com/forums/topic/script-to-copy-records-from-one-form-to-another/
That Sam guy knows nothing! The challenge is that there isn’t an API to get the table field ID’s so you’d have to code the mapping yourself. It’d be going into the editor to map each of the fields across manually. Certainly doable though :)
Yeah, it takes a bit of effort….
Oh ya. I guess I’d need to add a similar API for getting fields and their IDs to the Table field like you can do with a form.
Oh ya. I guess I’d need to add a similar API for getting fields and their IDs to the Table field like you can do with a form.
That would be very helpful!