Posts: 1
Threads: 1
Joined: Aug 2016
Reputation:
0
I have an option list that when I choose one of the options it will populate a field.
For example Bank List has 3 options Bank A, Bank B, Bank C. Each bank has a code associated with it so if I choose Bank B, the code populates another field on my form. Can anyone tell me how to do this?
Posts: 37
Threads: 7
Joined: Dec 2014
Reputation:
0
This is possible. I use the FormTools Module, Submission Pre-Parser to create many automatic form fill ins on the forms I create. What occurs is that once the form is submitted, the code you place in the pre-Submission Parser is checked and makes changes to one field (or fields) based on the contents of another (or others).
A general example is:
If the user picks a particular item from a drop down list, then once the form is submitted, the Submission Pre-Parser Module looks into another table and finds a match for that particular item, and then fills in fields on my form based on data it finds in the matching record. The submitted form is redisplayed on the screen for the user to see, and now the previously empty fields are filled in from the match that was found. You do have to write PHP and HTML code in the Submission Pre-Parser Module in order to implement this, but it definitely works.