fill textbox from other textbox based on combobox selection
I would like to know if anyone can help me on the following problem?
However when i do this nothing happens. I have 2 forms in the document 1 with only textboxes (top) the other with 1 dropdownbox and 2 textboxes (bottom).
My knowledge of Acrobare Pro Java is quite small. I think it should be something like this. However this doesn't work in Java.
If dropdownDoc1.text=DocumentnrTXT.text then TitleTXT.text=TextboxTitle1.text RevTXT.text=TextboxRev1.text else ....
The following code doesn't do exactly what i need.
This code is placed in the custom calculation script of the textbox i would like to fill.
if(this.getField("dropdownDoc").value == " ") { event.value = ""; }
else if (this.getField("dropdownDoc").value == "DocumentnrTXT1")
{event.value = this.getField("TitleTXT1").valueasstring; }
else if (this.getField("dropdownDoc").value == "DocumentnrTXT2")
{event.value = this.getField("TitleTXT2").valuevalueasstring; }The problem is that it show the value from the dropdownbox and not the textbox as i expected it to do.
