Jump to:

1970 Posts in 1272 Topics by 607 members

Form Questions

SilverStripe Forums » Form Questions » display the contact us form in sidebar using jquery

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

Page: 1
Go to End
Author Topic: 579 Views
  • dipe
    Avatar
    Community Member
    1 Post

    display the contact us form in sidebar using jquery Link to this post

    Hello I am preety new to solver stripes i want to show a contact us form in side bar like http://allpaksolutions.com/productlist.php have on instant quote please tell me how do i perform this in silver stripes any help will be highly appreciated .thanks in advance

  • cSGermany
    Avatar
    Community Member
    37 Posts

    Re: display the contact us form in sidebar using jquery Link to this post

    Hi,

    if you're using userforms you can put this function in your page controller

       function ShowForm(){
          $get = DataObject::get_one('UserDefinedForm');
          return new UserDefinedForm_Controller($get);
    }

    and than call the form with this in the template

       <% control ShowForm %>
          $Form
       <% end_control %>

    579 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.