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.

All other Modules /

Discuss all other Modules here.

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

UserDefined Forms How Do I call it?


Go to End


3 Posts   908 Views

Avatar
senica

Community Member, 18 Posts

20 June 2010 at 1:28pm

Hi, I just installed this module: http://www.silverstripe.org/user-forms-module/

I installed it okay, it's coming up in the CMS, but when I go the page (it's a contact page) I don't see any form.

Do I have to call the form from my template? If so using what keywords? also, can I call it from within the CMS itself like putting a keyword in the content area?

Thank you!

Avatar
Willr

Forum Moderator, 5523 Posts

20 June 2010 at 11:14pm

Your template must include a $Form variable.

If you want to nest the form inside the content field then you can write $UserDefinedForm in the CMS and the form will be inserted at this point but this has a couple issues so the best idea is to include a $Form in your template (which it should have anyway for login forms etc).

Avatar
senica

Community Member, 18 Posts

21 June 2010 at 12:34am

Thanks again Willr.

You are a life saver.