I have a form I am trying to develop. I am familiar with the drop down list populating from one field to the next dynamically, but I am looking at a different solution utilizing PHP and MYSQL. I am attempting an inventory form. Eventually, I hope to incorporate barcodes, but for now I am hoping to have 2 fields. The 1st allows an item # to be manually typed in. When the field is exited, its sibling will auto-populate with a descriptor (White latex gloves, etc.) if the item # is recognized or an error message (item # not on file).
Any help would be appreciated.
Thank you in advance.
Conditional field population
Moderator: General Moderators
Re: Conditional field population
This is what I used: http://www.blueicestudios.com/chained-s ... ysql-ajax/
Re: Conditional field population
That is for drop down. I wanted a free text.
Example:
Box 1 and 2 would be blank starting out.
In Box 1 I would enter one of over 200 product id's, ex.: 394584
Box 2 would then yield Oak, southern red, 5 gallon
Example:
Box 1 and 2 would be blank starting out.
In Box 1 I would enter one of over 200 product id's, ex.: 394584
Box 2 would then yield Oak, southern red, 5 gallon
Re: Conditional field population
If you look closely at the code and the examples, you'll see it can be used for both.