Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example using Event Listeners in forms #33

Open
dcsg opened this issue Aug 6, 2011 · 3 comments
Open

Example using Event Listeners in forms #33

dcsg opened this issue Aug 6, 2011 · 3 comments

Comments

@dcsg
Copy link

dcsg commented Aug 6, 2011

Hi, i'm facing a situation that i need to use event listeners, i would like to know if is possible to implement it in this bundle to show how it works?

In my situation i need it to select cities based on the county and country selection first.

I have follow this article without success: http://webb-on-the-web.com/?p=5

I sent an email to ML but i didn't got any response yet, i would like to help in this feature and in others. I created a gist maybe could help explain the situation: https://gist.github.com/1127540

In AcmePizzaBundle, we can try to implement a detailed address for the client with the city and state using event listeners what do you think?

Thanks in advance,

Daniel Gomes

@brikou
Copy link
Collaborator

brikou commented Aug 6, 2011

Why not validate address against google map services?
If you'd like some kind of select field why not use a auto-complete plugin and keep field as regular text?

btw your given example using listener is very interesting but for acmePizza we still have to allow order edition afterward

@dcsg
Copy link
Author

dcsg commented Aug 6, 2011

@brikou, in my case, i need to list companies by location/city and i have all the cities that was provided by portugal postal services.

Regular text can make redundancy entries in database, in my database i will not allow users to add cities, countys they are already set.

I just need a way to pick them by country -> county -> city i thought event listeners could do the job, but i was seeing that they aren't change the data in the city choice field.

I would like to implement it for AcmePizza, but we can create a more general case and maybe not so complicated with only state and city for example, what do you think?

@cordoval
Copy link
Contributor

is there an update on this or can I post my solution or at least what I have?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants