2 Replies Latest reply on Apr 1, 2009 6:39 AM by (Michael_Frommer)

    What is the correct syntax to get two scripts to run sequentially?

      I want to call a document level script to run immediately after a custom script runs, which is placed at the event (text box).

      Can I do that? What am I missing (syntax-wise)?

      This is the custom script (I have no problems with it, on its own):
      if ((this.getField("AttendeeType1").value == "Member")
      && (this.getField("Dinner1").value == "Yes"))
      {event.value=1;} else {event.value=0}

      This calls the document level script:
      calcTotalMD();