Menu

#2 Populate multiple form fields with result?

v1.0_(example)
open
nobody
None
5
2005-10-20
2005-10-20
TheIdeaMan
No

I've just started testing AjaxAC. The
GoolgeSuggestCloneJax application was enough to get me
started, but I've run into a problem I can't figure out.

I have a "suggest" box that a user can type in a
product name. When the user chooses the product they
want from the list of results, I want the product_name
field to be updated with the name (which I've done) and
the product_price field to be updated with the products
price.

In order to do this do I need to return an array and
then populate the fields using a custom JavaScript
function that I would write?

Thank you,
Benjamin

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.