What do you have so far? On Thu, Jan 6, 2011 at 10:10 AM, Emil Rømer Christensen <[email protected]> wrote: > Hi there, > > I have made a form with 3 select boxes using sfWidgetForm. Here is the > schema for them: > > ServiceType: > columns: > name: { type: string(255), notnull: true, unique: true } > Milage: > columns: > name: { type: string(255), notnull: true } > service_type_id: { type: integer, notnull: true } > relations: > ServiceType: { onDelete: CASCADE, local: service_type_id, foreign: > id, foreignAlias: ServiceType } > Month: > columns: > name: { type: string(255), notnull: true } > service_type_id: { type: integer, notnull: true } > relations: > ServiceType: { onDelete: CASCADE, local: service_type_id, foreign: > id, foreignAlias: ServiceType } > > There are 2 different ServiceTypes, and for each of those two there > are a set of milages and months. > Milage and Month select boxes are not populated when the page loads. > > What I need to do, but can't figure out, is how to populate Milage and > Month with the correct choices using AJAX. > An example could be: > You select "BasicService" and then you have Milage select fill with > choices: "0-10000km", "10000-50000km", "50000+100000" and Month select > fill with "36", "48", "60", "72". > And if you select "ExtendedService" you will have Milage: 0-10000km", > "10000-50000km", "50000+10000", "100000+km" and month select "18", > "36", "48", "60". > > Above values are just examples. > Anyone has any suggestions? > > Kind regards, > Emil. > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en >
-- The Harvest Cloud Who says buying local food can't be easy? Find out more @ harvestcloud.com -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
