Passing extra data to the form Insert.After handler

Alexander Pinin asked on June 30, 2017 08:59

Hello, everyone.
I have a form and a form handler module that handles an Insert.After event and send some information to an external service.
Now I must send more information to the external service.
This information should be placed on page via administration interface, not by user.
I think I can add some hidden fields on form and fill them via code behind or JavaScript, but I'm not sure it is the best way.
What is the best way to pass this additional information to the form to be proceed by the handler on the Insert.After event.

Recent Answers


Brenden Kehren answered on June 30, 2017 15:36

If I understand you correctly, you want to perform custom actions in the Insert.After (which you're already doing) now in addition to that you also want to return some additional information to the user/form in the admin interface. Is this correct?

If so, check out this post. It might get you going in the right direction although may not provide you a full solution.

1 votesVote for this answer Mark as a Correct answer

Alexander Pinin answered on July 3, 2017 06:51

Thank you Brenden.
Yes you understand me right.
The post you recommend gives a good advice. And I used a very similar approach in an another project with an another CMS.
Unfortunately it does not help to solve my problem, so I used an approach with hidden fields and an autocomplete as I mentioned in my question.

0 votesVote for this answer Mark as a Correct answer

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