Page 1 of 1

Form Builder use value from previous page

Posted: Fri May 15, 2015 7:46 pm
by gordonallan
Hi

I am using FormBuilder to create a 2 page form with a Module Interface Field on the second page but i'd like to use one of the form values from page 1 as an input parameter to the tag of the Module Interface Field.

Can anyone give any help/example?

Cheers

Gordon

Re: Form Builder use value from previous page

Posted: Sat May 16, 2015 5:37 am
by Dr.CSS
Are you talking about a form with a second page/continue button or 2 forms on 2 pages or..?

You may need to give a much more detailed set of steps you want and what it's for and what you expect to be the final outcome...

more info = more help

Re: Form Builder use value from previous page

Posted: Sat May 16, 2015 6:35 am
by gordonallan
I am trying to build a form with 2 pages, in the first it will Have a field that allows you to specify a folder name. This will be a simple text entry field.

On page 2 I want to create a Module Interface Field that uses the name value from page 1 add the value for one of the input variables of the tag I am using in the module interface field such that I can control the folder name that field uses based on the folder name input on the first page of the form.

Cheers

Gordon

Re: Form Builder use value from previous page

Posted: Sat May 16, 2015 10:15 am
by Jos
I think you can use $fieldname->value in the second page, where $fieldname obviously should be changed to the name of your field

Re: Form Builder use value from previous page

Posted: Sat May 16, 2015 2:45 pm
by velden
Generally it can be helpful to use the {get_template_vars} tag. Put it somewhere in the Formbuilder template to see what variables are available at that moment.