Page 1 of 1
Depselect module
Posted:
Tue Feb 26, 2013 7:22 am
by Deluxe
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.
Re: Depselect module
Posted:
Tue Feb 26, 2013 9:40 am
by shannah
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
Re: Depselect module
Posted:
Wed Feb 27, 2013 3:00 am
by Deluxe
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.
Re: Depselect module
Posted:
Wed Feb 27, 2013 7:16 am
by Jean
Re: Depselect module
Posted:
Thu Feb 28, 2013 2:56 am
by Deluxe
Yeah i've seen that but i would use the depselect module :/