Announcement

Collapse
No announcement yet.

drop-down list javascript does't work in foxit

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bug drop-down list javascript does't work in foxit

    I have a test document made with Adobe LCD ES2.
    on this form I have a drop-down list with 3 options and on the exit event I have a script that should show or hide subform "fietsbel".

    the script is as follows:

    var CurSel = this.getDisplayItem(this.selectedIndex);

    if (CurSel == "GLTW" || CurSel == "SCLTW")
    {
    xfa.form.DataSheet.TechnicalInformation.Fietsbel.p resence = "visible";
    }
    else
    {
    xfa.form.DataSheet.TechnicalInformation.Fietsbel.p resence = "hidden";
    }

    where dit I go wrong?
    Last edited by swvermeulen; 09-19-2012, 11:21 AM.

  • #2
    Originally posted by swvermeulen View Post
    I have a test document made with Adobe LCD ES2.
    on this form I have a drop-down list with 3 options and on the exit event I have a script that should show or hide subform "fietsbel".

    the script is as follows:

    var CurSel = this.getDisplayItem(this.selectedIndex);

    if (CurSel == "GLTW" || CurSel == "SCLTW")
    {
    xfa.form.DataSheet.TechnicalInformation.Fietsbel.p resence = "visible";
    }
    else
    {
    xfa.form.DataSheet.TechnicalInformation.Fietsbel.p resence = "hidden";
    }

    where dit I go wrong?
    Changed the script to:
    if (this.rawValue == "GLTW" || this.rawValue == "SCLTW")
    {
    Fietsbel.presence = "visible";
    }
    else
    {
    Fietsbel.presence = "hidden";
    }

    and now it is working

    Comment

    Working...
    X