1 of 1 people found this helpful
Do I loop or can I actually say create 5 records?
You do the former with the latter latter with the former Like ...
If [ IsEmpty [ TicketQTY ) ]
Set Variable [ $participantID ; Participant::ParticipantID ]
Set Variable [ $ticketCount ; Participant::TicketQTY ]
Go to Layout [ Ticket ( Ticket ) ]
Exit Loop if [ Let ( $i = $i + 1 ; $i > $ticketCount ) ]
Set Field [ Ticket::ParticipantID ; $participantID ]
Go to Layout [ original ]
Set Field [ Participant::TicketQTY ; "" ]
The crucial thing here is to tell when the quantity in your QTY field has already been created, ie to not run that script again. I tried to control that by resetting the field.
Thanks... I got ya.. I think haha.
Ill try that now..
Awesome.. works perfect.
I made a new field to use for the qty calculation so that I could keep the original number in the record.