<html><head></head><body>Set the scrip to run as batch. It'll then run after all the other transactions have completed.<br>
<br>
Gareth<br><br><div class="gmail_quote">On 6 December 2014 18:14:04 GMT+00:00, Woody - Wild Thing Safaris <woody@wildthingsafaris.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hi folks,<br /><br />I have a scrip that runs onCustomFieldChange, and it creates another<br />ticket using data from other custom fields.<br /><br />eg<br /><br />Payment amount  - value<br />Payment currency - select<br />Payment destination  - select<br />Payment type - select<br /><br />A scrip triggers on change of Payment type, but when the new ticket is<br />created, amount and currency are defined, but destination is not set so<br />i get something like<br /><br />Incoming Payment of xxxxx GBP - .<br /><br />instead of<br /><br />Incoming Payment of xxxx GBP - Current account<br /><br />I have checked the id number of the custom fields thinking maybe they<br />update in id order, but Payment Type is the lowest, and Payment<br />Destination is not the highest. Payment type is the last in the list<br />that's displayed, so I'm not sure how the order of field updates is decided.<br /><br />Can anyone suggest a solution or provide any info on how the o
 rder
of<br />field updates is defined and how i can change it (presumably by changing<br />field names or deleting and re-adding?)<br /><br />thanks<br /></pre></blockquote></div></body></html>