Depselect module

Archived from the Xataface Users forum.

Deluxe — Tue Feb 26, 2013 7:22 am

Hi, i’m having some troubles with the Depselect module and i’m wondering if it’s possible to use it for 2 fields which are in the same table.
I have a form where I want to select a date in function of the people which is selected before, is that possible ?

Thanks for support.


shannah — Tue Feb 26, 2013 9:40 am

If the date is free form (i.e. not a select list) then you can’t use depselect for this. You would need to use custom javascript on the date field’s onchange handler to update the contents of a people list.

_Steve


Deluxe — Wed Feb 27, 2013 3:00 am

Ok so i’ll let the date without depselect.
But i’ve another prob now, can i use this module for 2 fiels in the same table ?
Because at the moment it doesn’t works, here is my code :

[logement]
widget:type=depselect
widget:table=logement

[adresse]
widget:type=depselect
widget:table=logement
widget:filters:logement=”$adresse”

For “logement” it selects me the name of the city, that is good. But for “adresse” i want the adress but it gives me the name of the city again.
I don’t know how to do :/

Thanks for support.


Jean — Wed Feb 27, 2013 7:16 am

have a look here

Cheers


Deluxe — Thu Feb 28, 2013 2:56 am

Yeah i’ve seen that but i would use the depselect module :/