2 Replies Latest reply on Aug 20, 2008 11:08 AM by miromonti

    missing : after property id

    miromonti Level 1
      I want a droplist to populate a text field that's formatted for numbers. I found what I think should work from Thom Parker in the Adobe User Community and modified it to suit my form...

      COMBO BOX CUSTOM KEYSTROKE SCRIPT:
      ]if(event.willCommit )
      ]{
      ] if(event.value == " ")
      ] this.resetForm(["fee_video"]);
      ] else
      ] SetFeeValues(event.value);
      ]}

      DOCUMENT JAVASCRIPT:
      ]var VideoFee = { Pan and zoom video:{ amount: "0"},
      ] Custom online video:{ amount: "999"}};
      ]function SetFeeValues(cVideoType)
      ]{
      ] this.getField("fee_video").value = VideoFee[cVideoType].amount;
      ]}

      When I click OK for the Document JavaScript, I get this error:
      "missing : after property id
      1: at line 2"

      I searched this forum and found one instance in January and I applied some of the solution, but the errors mounted, so I don't think that discussion is right for me.

      What's wrong with this script I modified?