Forums

Pass Value from one field to another in Multi Page form

YOOlabs 04 Feb, 2013
Hi,
I searched the forum but did not find anything about it.
I have a multipage form and have a form field on page one named "field1".
When I click on "Next Page" the second page of the multi page form loads.
On this second page I have a field named "field2"

I want this field2 populated with the value of the field1 on the first page.
Is this possible?

Thanks in advance!
YOOlabs 05 Feb, 2013
Mmhhh... not the answer I expected, but......an answer 😀
YOOlabs 05 Feb, 2013
Ok, I managed it by putting the value of the field1 in a hidden field on page2 and then use javascript to set read out the value and put it in field2.
I think it is not the best solution but it works.
GreyHead 05 Feb, 2013
Hi YOOLabs,

Either the Multi-Page action or the Data to Session and Session to Data actions will transfer data between pages.

Please see this FAQ

Bob
macmizer 26 Feb, 2013
Hello Greyhead. I try to create the demo for a multipage form using the demo link in this topic. I tested the form from within the chronoforms admin panel but when I click on the Next page button it brings me to a blank white background browser window. When I click on the demo multipage form test button in the joomla admin under chronoforms I see both Next buttons and the fields above them as well as the submit button. I would have thought that if I test the form I would not see all the info fields and buttons on one form. Even so what should actually happen when testing the form from within the chronoforms backend? I know I should not be getting a blank white background in the browser.

I am using Firefox to test through the backend. I have chronoforms 4.0 RC3.4.1 and Joomla 2.5.6 installed.

When I put a value in the text field, check off the check box and click on the radio button then submit I get the debugger window as expected. The output is as follows:

Data Array:

Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => Multipage_Demo
[event] => submit
[cf_sid] => 2d54604bb856395dfc69f498fe546ba6
[Itemid] =>
[input_radio_7] => Yes
[input_submit_8] => Submit
[d557e23ff3b2329e5ce00ed2ff61be50] => 1
)

Validation Errors:

Array
(
)
macmizer 27 Feb, 2013
Greyhead I am back. I fixed the issue. I went through everything in the FAQ two more times and realized I had not followed directions properly.

I apologize for wasting your time if you read this.

The page to page field data works as expected.
GreyHead 27 Feb, 2013
Hi macmizer,

Great, good to hear you got it working.

Bob
obisi7 06 Jun, 2013
In trying to follow the correct threaded solution for creating a multipage form in V4, I am lost knowing where to begin and what solution thread to follow to conclusion.

I apologize if I am reopening an already solved problem. If so, I will appreciate a link to the solution thread. However, I am looking to create a multipage form that uses tabs to contain each page. The example in the FAQ uses a NEXT page navigation but I prefer the TAB navigation UI.

PLease HELP me with a process outline and/or embedded script needed to make the layout and navigation work. I've tried on my own wihtout much progress. THANKS a million
GreyHead 06 Jun, 2013
Hi obisi7,

It's a question of 'jargon' but tabbed forms aren't quite the same as multi-page forms as everything technically remains on the same ChronoForms page.

To create a tabbed form add a Container element from the Advanced Elements group to the Preview box, open it and set the Container Type to 'Tabs Area' and save it; drag another Container element inside the first one and set that to Container Type 'Tab'; add form elements to that container. Repeat as required adding extra tabs to the parent Tab Area.

Bob
obisi7 09 Jun, 2013
GreyHead the Master thanks for the tip. Just as a follow up, will the data entered on each tab be collated and submitted on the last tab where the form action is completed with the submit button? Or do I have to script something special to make that happen? If so, a code snippet or pointer will be very helpful.

Thanks a bunch
GreyHead 09 Jun, 2013
Hi obisi7,

The tabs are all part of the same form - think of them as like Fieldsets, or blocks of input, that are hidden part of the time.

I suggest that you make a test with a couple of tabs with a couple of inputs on each to be sure that they work OK for you.

Bob

PS At the moment some of the ChronoForms tabs and sliders code is broken in Joomla! 3. Hopefully this will be fixed soon.
This topic is locked and no more replies can be posted.