6 Replies Latest reply on Mar 13, 2017 11:24 PM by MadMich

    align 2 text field boxes based on dropdown option

    MadMich Level 1

      I would like to align two text fields boxes based on a dropdown field with the option 'yes' or 'no'. if no is selected the two fields align.

       

      Here is my code (custom calculate script of event target field) which aligns the event target field to the top left hand corner of the test field.

       

      if (this.getField("dropdown").value != "No") {

      event.target.rect = this.getField("test").rect

      }

       

      The trouble is the event target field is resized to that of the test field!  I just want the fields to be aligned not resized.
      I've used the rect[1], rect[2] etc but can't seem to get it to work?

       

      Thanks