Forums

Bugs with multi pages form???

FloB 24 Mar, 2013
Hello!

Until now I was working on 1 page forms, and everything was working ok.
I'm trying to adapt 3 1-page forms in 1 form with 3 pages.
I have understood the principles of the multi pages form with the FAQ.

However I have notice odd things:
I've got a dynamic drop down on the first page, which contain the categories of the articles and a "??" empty value. In my 1-page form, when I load the form, the drop down is automatically set to the empty value "??" which seems correct to me. But when I load the multi page form with the same drop down on the first page, the drop down is automatically set to the firts categorie the query found. And it's a bit anoying.

Do you know if this behaviour is normal?

Thanks
Flo
GreyHead 24 Mar, 2013
Hi Flo,

No I don't think that should happen. What is the name of the drop-down? Is it possible that a value is already set? What do you see if you add a Debugger at the beginning of the On Load event?

Bob
FloB 24 Mar, 2013
Hello Bob!
I have put a debugger in the on load event.
It's like the value of the all form isn't set to empty value...
I'm setting the parameters of the form so I test my form a lot of time without ending.
Is that why the debugger find all my tested value? (and so the value of the drop down)

What could I do to "reinitialize" the value to empty?

Thanks
Flo
GreyHead 24 Mar, 2013
Hi Flo,

There's a setting in the Session to Data action to clear the session of saved data. There may be something similar in the Multi-Page action, I forget without checking.

Bob
Max_admin 24 Mar, 2013
Hi,

At the final page you may drag a "Custom code" event and a "Data to session" event to the bottom, enter this code into the "custom code":

<?php
$form->data = array();
?>


Hopefully this will do it!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
FloB 24 Mar, 2013
Hello Max!
Hopefully your code works!🙂
Thanks a lot for your help to both of you, Bob and Max.
Flo
This topic is locked and no more replies can be posted.