Jump to:

23473 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » User defined form type page

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1513 Views
  • andria
    Avatar
    Community Member
    7 Posts

    User defined form type page Link to this post

    Hello,

    I created a form using the user defined form module but now I dont know how to make it appear
    in my homepage where I want the form to be visible. I can see the user defined form page created
    in my CMS, but I dont know how to make the form itself appear in my homepage in my
    published site.
    Please help me out!

    Have a nicer day!

  • Nobrainer Web
    Avatar
    Community Member
    134 Posts

    Re: User defined form type page Link to this post

    Do your template file have the $form variable in it?
    (That's what outputs the form)

    --

    Thomas B. Nielsen
    http://www.lund-co.dk

  • andria
    Avatar
    Community Member
    7 Posts

    Re: User defined form type page Link to this post

    So thats it I just need to put $form in my template?

    And if I happen to have more many forms..then how do I
    distinguish which form and where?

    Thanks and have a nice day!

  • Mo
    Avatar
    Community Member
    508 Posts

    Re: User defined form type page Link to this post

    I think the latest version (from the trunk) requires you to add $UserDefinedForm in the content area.

    If you are using using User Defined Form, I believe you can only have one form per page, so this form will be loaded into either $Form in your template or $UserDefinedForm in your content area.

    If you want to have more than one form on your page, you will probably need to look into making your own forms using these methods:

    http://doc.silverstripe.org/doku.php?id=form

    Mo

    1513 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.