92 Posts
Seb
10 years ago
8
Topic

Hi,
I want to set up a form with several steps (3 or 4). You know a tutorial? Should we follow a specific rule?
Thank you for your help,
Seb

Get a VIP membership
10 years ago
1
Level 1

Hello,

James Morrel did a couple of excellent tutorials on this subject.  Tabbed Forms & Multi-Page Forms

92 Posts
Seb
10 years ago
0
Level 2

Thank you very much,
I'll watch these videos.
Seb

10 years ago
3
Level 1

Hi Seb,

Have you found a solution with this tutorials?

Regards,
Mehdi.

92 Posts
Seb
10 years ago
2
Level 2

Hello Mehdi,
Yes I understand the operation.
However, data recording is done every validation. When you return back to the browser and is valid again, the data is stored in a new time base (with a new unique id).
I did this test with the "public" users.
Is there a solution to save the data in the database only the last step?

Thank you in advance for your answer
Seb

10 years ago
1
Level 3

Hi Seb,

Before my response to your last question, i have a question. If you would like to chack the data validity before the submission of each step, why you does not apply the validation plugin on each field which it requires? If you do that, you will store only the valid data.

For your question

Is there a solution to save the data in the database only the last step?
My response is no.  You can do that but the process to do that is more complexe.

Regards,
Mehdi.


92 Posts
Seb
10 years ago
0
Level 4

Hi Mehdi,
Because I imagine a form where the user can check the data in the last step then validate or modify them if necessary.
The last step could present all data (name, address, etc..) and the user could either go back to modify them or to validate the register database.

If it's too complex, I will otherwise.

Thanks  for your reply,
Seb

175 Posts
webcastor
10 years ago
1
Level 1

I suggest you use tabs instead. That way the user can go back and forth, and the validation is done only once. Also, no data is saved until the validation is cleared.

Since Joomla 3.2 is bringing in the AJAX interface, it is not so far fetched to imagine some of new incarnations of Seblod having AJAX step-by-step forms.

92 Posts
Seb
10 years ago
0
Level 2

Hi Webcatsor,

Yes I know the tabs, is an option.
But for Ajax I use Joomla 2.5.
Thanks,
Seb

Get a VIP membership