Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

UserForm extension


Go to End


3 Posts   1836 Views

Avatar
SeanBoy

Community Member, 8 Posts

13 December 2010 at 10:42am

Hi

Is there any documentation or sample code I can review which provides an explanation of extending the UserForm widget. I want to capture the data that is submitted from the UserForm to allow me to do some additional processing on submit.

Any help/pointers would be fantastic.

Many thanks, Sean

Avatar
Willr

Forum Moderator, 5523 Posts

13 December 2010 at 12:50pm

No documentation yet on the module. There are no hooks in the processing function (yet) so it's a bit tricky to extend it to do what you want. Most people currently subclass the UserDefinedForm class (and the Controller) and override the process function.

Avatar
SeanBoy

Community Member, 8 Posts

14 December 2010 at 7:52am

Thanks Willr, managed to figure out what to do from your post.

Many thanks, Sean