var sNewSel = this.boundItem(xfa.event.newText);
switch (sNewSel)
{
case "1": // car purchase
TextField1.rawValue = "Basic features:\n- frame\n- wheels\n- glass";
break;
case "2": // other purchase
TextField1.rawValue = "Basic features..."
break;
default: // unknown value -- do nothing
break;
}
I am Working on a text field to, creating the form is no problem with a little Script.Right now Im just using an easy Drop Down Menu Generator.
http://www.javascriptsandmore.com/drop-down-menu-generator-software.ht ml
Stefan,
I am not very literate in scripting, but am learning as I go, so hopefully this will make sense. I am trying to get the drop down to generate a message in a text field, and if drop down is left blank, no message is shown. I used your example above to get my drop down to generate a text field, but it is not working. My drop down list is named "Security Deposit" and the text field is "Security". Here is what I entered in the script editor using Javascript and Change:
var (sNewSel=this.boundItem(xfa.event.newText);
switch (sNewSel)
{
Security.rawValue
break;
default://unknown value--do nothing
}
If you could please assist with this, I would really appreciate it!!
Thank you so much!
North America
Europe, Middle East and Africa
Asia Pacific