You can put the following code in t1's On Blur handler:
var t1 = this.getField("t1name");
var t2 = this.getField("t2name");
if(t1.valueAsString == "1")
{
t2.value = "a";
}
else if(t1.valueAsString == "2")
{
t2.value = "b";
}
else if(t1.valueAsString == "3")
{
t2.value = "c";
}
else if(t1.valueAsString == "4")
{
t2.value = "c";
}
else
{
t2.value = "insert text";
}
I have not test above code but I believe it should work. Let me know how it
goes.
Thanks,
Yang
I want this behaviour:
--
You received this message because you are subscribed to the Google Groups
"CenoPDF Support Group" group.
To post to this group, send email to cenos...@googlegroups.com.
To unsubscribe from this group, send email to
cenosupport...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cenosupport?hl=en.