8 Replies Latest reply on Mar 31, 2013 9:53 AM by mmodrall

    Custom calculation script not working

    mmodrall

      Hi...

       

      I've been looking at the samples and searching but have yet to make my custom calculation script work.  The bottom line is that I want one field to be blanked out if another is populated.

       

      My script currently looks like this:

      event.value = (getField("List_B1") + '').length > 0 ? '' : getField("List_A1");

       

      I've also tried

      event.value = (getField("List_B1").value + '').length > 0 ? '' : getField("List_A1").value;

       

      Neither result in List_A1 being empty when List_B1 has something in it.

       

      Anyone see something I'm missing?

       

      Thanks

      Mark