Hi to All,
I'm trying to copy the contents of a field from a card to a field on another card then delete the card (1st card) that I got the info from. Any suggestions on a script? Should the script be in the openCard of the card that's being deleted or the card that the info is being transferred to or somewhere else?
Thanks,
Patrick
copy field then delete card
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: copy field then delete card
This is straightforward.
...
Put field "sourceField" into field "targetField" of cd "otherCard"
delete card "theCardWithFieldTargetFieldOnIt"
Note that you cannot delete a card if the handler resides on an object on that card. So you will have to do it from, say, the stack script. You will want to get the card id or some other reference so you can delete the right one.
...
Put field "sourceField" into field "targetField" of cd "otherCard"
delete card "theCardWithFieldTargetFieldOnIt"
Note that you cannot delete a card if the handler resides on an object on that card. So you will have to do it from, say, the stack script. You will want to get the card id or some other reference so you can delete the right one.