September 07, 2010, 09:35:06 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Always search the forum before posting !
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Populating Select List From Database Values  (Read 1862 times)
yurilobao
Newbie

Offline Offline

Posts: 4


« on: January 22, 2010, 12:30:30 pm »

Hi, i'm a newbie in facile forms and i need a help to create a form.

In Brazil, the address is constituted by 3 fields: neighborhood, street and number.

I created a form with 10 pages, and in page 4 i place a select list for each field, accounting 3 select list.

The first select list is populating from a database values with this query: "SELECT neighborhood FROM city ORDER BY neighborhood ASC"

The second select list should be populate from a database values depending which value is selected in first select list with this query: "SELECT street FROM city WHERE neighborhood = 'value_of_select_list_1' ORDER BY street ASC"

And the third select list should be populate from a database values depending which value is selected in the first select list and in the second select list with this query: "SELECT number FROM city WHERE neighborhood = 'value_of_select_list_1' AND street = 'value_of_select_list_2' ORDER BY number ASC"

The picture attached illustrates my form!

How can i create this functionality??


* tela.JPG (30.66 KB, 707x518 - viewed 104 times.)
« Last Edit: January 22, 2010, 12:36:09 pm by yurilobao » Logged
boldee
Administrator
Living Legend
*****
Offline Offline

Posts: 1359



« Reply #1 on: January 22, 2010, 03:19:16 pm »

This example form from my package collection shows how to do this, any questions just ask.

hth
Logged

Nick

Please read the forum rules first!
Please do not use PM for generic questions!
Please visit...
Protean MMO
yurilobao
Newbie

Offline Offline

Posts: 4


« Reply #2 on: January 25, 2010, 07:42:36 pm »

This example form from my package collection shows how to do this, any questions just ask.

hth
I tried to install your package (xml file).
But i could not install.
How to i have proceed?
Logged
boldee
Administrator
Living Legend
*****
Offline Offline

Posts: 1359



« Reply #3 on: January 25, 2010, 08:56:09 pm »

Are you using FF or BF?
Logged

Nick

Please read the forum rules first!
Please do not use PM for generic questions!
Please visit...
Protean MMO
yurilobao
Newbie

Offline Offline

Posts: 4


« Reply #4 on: January 25, 2010, 09:17:01 pm »

Are you using FF or BF?
FF = Facile Forms?

If Yes then I'm using FF 1.4.7 + Joomla 1.0.12!

And what is BF?
« Last Edit: January 25, 2010, 10:55:23 pm by yurilobao » Logged
boldee
Administrator
Living Legend
*****
Offline Offline

Posts: 1359



« Reply #5 on: January 25, 2010, 11:28:55 pm »

BF is Breezing Forms a fork of FF, the reason I asked is that we do not support BF.

Ok next question, are you uploading my form through FF config? That is the correct way to upload xml files to FF.
Logged

Nick

Please read the forum rules first!
Please do not use PM for generic questions!
Please visit...
Protean MMO
yurilobao
Newbie

Offline Offline

Posts: 4


« Reply #6 on: January 26, 2010, 11:38:35 am »

BF is Breezing Forms a fork of FF, the reason I asked is that we do not support BF.

Ok next question, are you uploading my form through FF config? That is the correct way to upload xml files to FF.

Yes!
I'm using Install Package in the Configuration menu.
But nothing happens when I click in Install Package, just refresh the screen.
Logged
boldee
Administrator
Living Legend
*****
Offline Offline

Posts: 1359



« Reply #7 on: January 26, 2010, 01:20:52 pm »

That is what appears to happen but there should be an entry in the package list in manage forms called select_db or somthing similar.
Logged

Nick

Please read the forum rules first!
Please do not use PM for generic questions!
Please visit...
Protean MMO
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF © 2001-2006 Lewis Media
| Terms of Use | Privacy | Sitemap |