i want add custom form builer in my landing page homepage.phtml

{{block type="formbuilder/frontend_form" name="frontend_form" 

is posible add block into phtml file?
this is an option...

<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('contacts/form.phtml')->toHtml(); ?>

but i need include form_id="1" into the code?


In order to get form_id="1" to formbuilder/form.phtml,you can use $this->getFormId(); .

Also,Is possible add block into phtml,yes possible

  • but the numer of id where i can put the id? inside of ( 1 )? – Rejiz Mejia Aug 2 '16 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.