#1 September 2, 2018 10:18am

daansk44
Member
From: Amersfoort, The Netherlands
Registered: September 12, 2016
Posts: 42

Bigtree form builder

Hey a short question,

How can we call a form (made in form builder) in a template file?
Where is the example file located (the special template).
Now we run into the problem that we can only add a form to a page and can not tweak properly

Offline

#2 September 2, 2018 11:56am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 970

Re: Bigtree form builder

The Form Build extension includes a template (it's in /extensions/com.fastspot.form-builder/templates/). You can copy that template in the database and the files from that folder to your main /templates/ folder and modify it there if you want a custom template that includes extra fields.

Offline

#3 September 4, 2018 8:03am

daansk44
Member
From: Amersfoort, The Netherlands
Registered: September 12, 2016
Posts: 42

Re: Bigtree form builder

Is it possible to call the form in the template?

$form = new formbuilder('nameform')

Offline

#4 September 4, 2018 8:25am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 970

Re: Bigtree form builder

You can get the form's data in another template with this code:

$form = BTXFormBuilder::getForm($form_id);

You'll need to look at how the template draws all the fields contained in the form data.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.