|
Gayle,
I believe the following _javascript_ placed as the “Custom Validate Script” under the “Validate” tab in the "Field Properties" of the combo-box field for Street where “Location 1” and “Location 2” are items on the list, may do what you want:
// Fields for City, State, Zip, and Phone var f1 = this.getField("City"); var f2 = this.getField("State"); var f3 = this.getField("Zip"); var f4 = this.getField("Phone"); switch (event.value) { case "Location 1": f1.value = "City 1"; f2.value = "State 1"; f3.value = "Zip 1"; f4.value = "Phone 1"; break; case "Location 2": f1.value = "City 2"; f2.value = "State 2"; f3.value = "Zip 2"; f4.value = "Phone 2"; break; }
-----Original
Message-----
We have several locations. I want to set our letterhead that when you pick a location from the Street combo box the City, State Zip and phone fields automatically get filled in with the appropriate information. I am not sure what to call this problem so I can’t search for it in the archives. Can someone suggest a solution or at least some keywords for a search? Thanks.
Gayle Graham Senior Deputy District Attorney Support and Technical Services (925) 957-2226 direct line (925) 957-2240 fax
|
- [PDF-Forms] if javascripts Gayle Graham
- RE: [PDF-Forms] if javascripts Day, Tim G.
- RE: [PDF-Forms] if javascripts Day, Tim G.
