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

Reuse UserDefinedForms in other admin pages


Go to End


4 Posts   1770 Views

Avatar
fordy

Community Member, 46 Posts

29 January 2009 at 5:14am

Hello,

Is it possible to create a user defined form in the "Content" area of the admin cms and then reuse that form in other areas of the CMS, for example a custom module?

I need the flexibility of adding / removing form fields on the fly so would like to use the form api.

Avatar
LinseyM

Community Member, 99 Posts

14 October 2011 at 11:02pm

Hi there,

Just wondering if you worked out how to do this? I'm trying to do something similar, but not having much luck...

Cheers!

Avatar
swaiba

Forum Moderator, 1899 Posts

14 October 2011 at 11:52pm

I'm not sure what either of your goals are here... what exactly would you want to be using "on the fly" fields for within the admin?
Why is not creating a DataObject and using ModelAdmin or adding fields to the required Page enough?

Avatar
LinseyM

Community Member, 99 Posts

14 October 2011 at 11:57pm

Hey, thanks for the response, I found what I wanted to do here: http://www.silverstripe.org/all-other-modules/show/8636

L