This topic is locked

split "add new" form

10/11/2010 2:40:55 PM
PHPRunner General questions
P
piobote author

Dear all,
I have a table for example "employee" with 7 columns : id, name, surname, age, email, town, country.

To add a new employee I would like to do this by splitting it 2 forms:

Form1: id, name, surname, age - On this form when clicking on the "Next" button I will be able to fill the second "Form2" with :email, town, country

and "save" button which will permit to save all the data of the 7 columns.
Thank you for your help.

Sergey Kornilov admin 10/11/2010

Check PHPRunner 5.3 where you can have tabs on Edit/Add pages that will split your page into two pieces.
http://www.asprunner.com/forums/topic/15110-asprunnerpro63phprunner53-beta-is-available-for-download/

T
tedwilder 10/12/2010



Check PHPRunner 5.3 where you can have tabs on Edit/Add pages that will split your page into two pieces.
http://www.asprunner.com/forums/topic/15110-asprunnerpro63phprunner53-beta-is-available-for-download/


yes it's a good way not to use ajax.. but still if you could implement ajax controls.. that would avoid it.

It's already there but only limited to lookup tables.

having fields filled on add pages based on what user entered in the same page would be so great.
By the way if i try to open my 5.2 project in 5.3 all my text is scrambled : unicode probleme. I have é à è letters in editor add/edit page. on 5.3 it's destroyed.. maybe you can fix this "unicode" problem. thanks.

Sergey Kornilov admin 10/12/2010

tedwilder,
I don't think it's a good idea to hijack this thread. If you having issue with Unicode characters support contact support team directly sending your project and database for investigation.

T
tedwilder 10/12/2010

yep right.

so back to the subject: i want to do the same thing he is asking here. So I checked what you said.. but Tabs/sections seems to be more like a graphical effect. what he was asking for ( from what I understood )and what I'd like too, is to divide an Add page into 2 add page. This way we can on first page for instance ask like he said name, first name, clik on "next button" and because of what we entered in first page we get prefilled field for adresse, phone etc on the second page. The goal is to process a part of the fields based on another part of the fields, and the whole data is then inserted in table. is it what 5.3 offers? I wasnt able to make it works this way.. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=53504&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

P
piobote author 10/20/2010



yep right.

so back to the subject: i want to do the same thing he is asking here. So I checked what you said.. but Tabs/sections seems to be more like a graphical effect. what he was asking for ( from what I understood )and what I'd like too, is to divide an Add page into 2 add page. This way we can on first page for instance ask like he said name, first name, clik on "next button" and because of what we entered in first page we get prefilled field for adresse, phone etc on the second page. The goal is to process a part of the fields based on another part of the fields, and the whole data is then inserted in table. is it what 5.3 offers? I wasnt able to make it works this way.. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=53728&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />


Tedwilder,
Yes I am looking for the way to divide an Add page into 2 add page with "next button" - How can I do it with Phprunner 5.2
Thanks

T
tedwilder 10/21/2010

I was looking for the same thing too because ajax is not implemented in phprunner ( just dropdown ok.. if it was both our problems would be solved : your user would enter his name and all fields would be filled interactively : no more need of 2 pages ) so we have to use 2 forms.. as phprunner doesn't supports 2 forms I had to do it externally : I created a form in a separated file , and when I clik on " next " it sends a get to the add page in phprunner : something.com/mypage_add.php?fieldfrommyownform1=something&field2=5 ..

then in phprunner I use $_GET["fieldfrommyownform1"]=$values["phprunnerfield"] and so on..

I also added a field that is checked so if user try to enter directly on phprunner page it says that he has to go to part 1 of the the form ( the external form).

It's quite annoying but that's the only way..

add : I just realised that phprunner5.3 now offer the " Autofill" tool. Of course if you dont have 5.3 yet you can't test. But that should help a bit ( although we still are unable to manipulate, do math with autofill tool). With this tool under " lookup table " it seems we can autofill fields based on others fields. I didnt check it yet because my 5.2 project for some bug reason cant work in 5.3. but with this you could avoid the 2 pages.