By netron on
is there a guide somewhere on using an Ahah powered select menu to autofill a form?
An example of this might be:
select company name -> database query - > autofill form with company contact, telephone number, email address , street address etc...
with the Ahah select being on the same form.
has anyone done this? is it possible to do in Drupal 6?
Comments
I am interested in a guide
I am interested in a guide for this one too.
Me too...
Do you find something?
Skip the AHAH, as you are not
Skip the AHAH, as you are not updating the form elements, just values in the form. Create an JQuery AJAX request to a custom menu callback. Use the results from this to populate the fields. I think that the Flag module has a nice AJAX example to start you off.
Alan Davison