You can use the 'export value' option of the drop down or combo box, then you can use any of the calculation methods for the text field to get the export value from the drop down or combo box.
OK, I got it.
Thanks a lot.
OK, now there is a problem.
When I hit the button to clear all fields, the combo box and the related text field don't clear.
My script to clear the form is:
if (app.alert("Do you really want to clear all fields of this form?", 2, 1) == 1)
I've got another combo box in that Form and it clear fine (that one has no Export value attached to it).
1 person found this helpful
When you set up a combo box, one of the items in the list is set to the default, which is the item that the field will get set to when the field is reset. If you want neither of your two previosly mentioned item to be selected, then you'll have to add a third one to the list. Note that you cannot have a blank item, but you can have one that's a single space or something like "Select an item". You'll have to adjust your code to deal with the additional item.
OK, now it's resetting itself correctly.
I think I had the wrong one selected as default.