Page 1 of 1

Conditional field population

Posted: Fri Aug 06, 2010 11:57 am
by maxline
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.

Re: Conditional field population

Posted: Fri Aug 06, 2010 5:33 pm
by JakeJ

Re: Conditional field population

Posted: Fri Aug 06, 2010 8:17 pm
by maxline
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

Re: Conditional field population

Posted: Fri Aug 06, 2010 8:50 pm
by JakeJ
If you look closely at the code and the examples, you'll see it can be used for both.