Add new row to second form after submit first form.

Konry Lekreso asked on October 3, 2018 21:26

Hey,

I have one form 'Collections' and second form 'Tickets'.

If I submit 'Tickets' form it's going to add data to this form but I'd like to also add new row to 'Collections' form data with an e-mail from 'Tickets' form. Is it possible to do that?

Thanks, Konrad

Correct Answer

Peter Mogilnitski answered on October 3, 2018 21:38

Yes, you can use biz form Item event. Take a look at an examples how to handle global events. Create a hanlder for BizFormItemEvents.Insert.After and use biz form API to put data in another biz form table.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Konry Lekreso answered on October 3, 2018 21:48 (last edited on October 3, 2018 21:56)

Thanks!

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on October 3, 2018 21:58 (last edited on October 3, 2018 22:03)

It should be inside Kentico project like it is described in example (scroll down to the page bottom). You wont be able to do this in admin interface if I understand you correctly. You need to do some programming here, i.e. using visual studio any other dev tool.

0 votesVote for this answer Mark as a Correct answer

Konry Lekreso answered on October 4, 2018 17:01 (last edited on October 5, 2018 17:07)

edit: works

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.