⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Is it possible to submit multiple values



Brian Schroeter
  • profile picture
  • Member

Posted 16 August 2013 - 19:06 PM

Is it possible to submit multiple values for fields (text fields) such as an array? For example, I'd like to be able to hit 'Add Record' and set the date once and then enter the other fields via a comma separated array so that it explodes into different rows. For example, I'll do the following...

 

Date: 08.16.2013

Field One: Value One, Value Two, Value Three

 

And the records would be inserted like such...

1, 08.16.2013, Value One

2, 08.16.2013, Value Two

3, 08.16.2013, Value Three

 

Thanks!

 


Amit Shah
  • profile picture
  • Member

Posted 17 August 2013 - 06:19 AM

Hi Brian Schroeter

 

Welcome to Grocerycrud Forums. Well technically what you say is quite possible with callback_insert - this will allow you to override the insert method and let you do the process rather then following the regular insert pattern. There you can make the multiple entries as you desired.