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
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
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
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
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
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
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
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
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":
Hopefully this will do it!
Regards,
Max
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
This topic is locked and no more replies can be posted.