I'm fairly new to using scripting in forms. So hopefully somebody can help me here.
I have a list box called "Name", which the user will use to select a name. I have a text box called "DOB", which I want to be automatically populated with the birthdate of the corresponding name that was selected.
I've tried adapting a few scripts to fit my needs here, but to no avail. Though this seems like it should be pretty easy. Any ideas? Thanks in advance for any responses.
1. Fill in the list box with the 'name' and place the birth date in the optional 'exprot value'.
2. For the 'On blurr' action add the following script:
this.getField('DOB').value = event.value;
When you tab or mouse out of the list box, the value will appear in the 'DOB' field.
Thanks a lot, that worked perfectly! I actually changed the list box to a combo box though so it would be a drop down menu, but that script did exactly what I needed.