Forums

Custom Array Field Output

esl 06 May, 2013
I am having a difficult time saving an array, I have a set of fields:

name[1], creditor[1], account[1]
name[2], creditor[2], account[2]
name[3], creditor[3], account[3]

They save to the database correctly name:joe,bob,scott > creditor: bofa,wamu,wells

The problem is, on the debugger the output is not an array..
come out:
name:joe,bob,scott > creditor: bofa,wamu,wells

so when i got to display back on DB loader, i get each field with all the info in it for each record....
GreyHead 07 May, 2013
Hi esl,

Have you tried the Array Field sets option on the Advanced tab of the DB Record Loader action? If this doesn't work that I think you'd need to use a Custom Code action to unpack the strings and put them in the appropriate entries in the $form->data array.

Bob
esl 08 May, 2013
Thanks GH that was it.... works like a charm!
This topic is locked and no more replies can be posted.