AutoComplete + auto-populate others fields

fuxo 12 Sep, 2012
Hi all,
(sorry for my english, i am beginner🙂 )

please, it's possible to auto-populate others textfields by selected opinion from Select Box?
I create reporting system and i must create form, that will have a Select Box with Names and associated adresses saved in database.

Example:
This data has been saved in database with Chronoforms DB Save:

Name: Jozo
Adress: Horna Dolna 1
Phone: 1111 1111
=======================
Name: Frantis
Adress: Dolna Malikova 2
Phone: 222 222
=======================
Name: Stevo
Adress: Izipovce 3
Phone: 333 333



I have form with Select Box and values:
Name:

- Jozo
- Frantis
- Stevo


And empty fields:
Adress:
Phone:


I select name: "Jozo" and i need auto-populate others fields with values:
Adress: Horna Dolna 1
Phone: 1111 1111

Any solutions ? Thanks.
GreyHead 17 Sep, 2012
Hi fuxo,

The Ajax Enabled DropDown action will do that for a single input e.g. 'Address', it can probably be adapted to do it for more than one input e.g. 'Address' & 'Phone'.

Otherwise you could perhaps use a multi-page form to do this selecting the name on one page and displaying the pre-filled boxes on the next.

Bob
fuxo 20 Sep, 2012
Hi Bob, thank you for your answer.

I found, that in newest Chronoforms is Event "Autocomplete Loader + Autocomplete Processor". This solution is better for my project.

DB Fields:

Name		Adress			Phone
==============================================
Jozo		Horna Dolna 1		111 111
Frantis	Dolna Malikova 2	222 222
Stevo	     Izipovce 3		333 333


I begin write name of person, autocomplete processor load a full name and on click or Enter, will be filled others fiels with data in DB row (Adress and Phone).

Something like this is real, or is it just my idea?🙂
fuxo 05 Oct, 2012
no idea or is it not possible ?
GreyHead 05 Oct, 2012
Hi fuxo,

Sorry I missed your previous post :-(

Yes it's possible but I think you'd need to hand-code the JavaScript to read the Ajax results and update the input values because the built-in AutoProcessor is only designed to return and update the value of one input.

Bob
This topic is locked and no more replies can be posted.