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.

Form Questions

display the contact us form in sidebar using jquery


Reply

2 Posts   657 Views

Avatar
dipe

2 September 2013 at 11:49pm Community Member, 1 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

Avatar
cSGermany

3 September 2013 at 12:12am Community Member, 37 Posts

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 %>