9 Replies Latest reply: Mar 7, 2014 10:01 AM by mlstechwriter71 RSS

    Make Table Field Required When Other Table Fields are Filled In

    mlstechwriter71 Community Member

      Good Morning,

       

      After combing through the forums I couldn't find an answer for the the following scripting scenario.

      (Or maybe I am asking the wrong question)

       

      I have a Table (Name: InputTable) with a Header Row, and a footer Row (for a Grand Total Function), Add/Delete buttons, as well as Addition scripts.

       

      The client has requested that if a dollar amount is put in one or any of Cell4, Cell5, Cell6, Cell7, Cell8, Cell9 or Cell10
      Then Cell1 becomes a required field.

       

      This Table must have an Initial count of 10 Rows, so I can't simple make Cell1 a Required field, because there could be blank/empty rows being submitted, and that would fire errors.

       

      Could someone please provide an example of the Script I would need to Add to Row1, Cell1? (Or the resources of where to look)
      And can this script be made to work on all Rows Added?

       

      I don't do alot of scripting and I could sincerely use help on this.

       

      Thank you all in advanced, I appreciate you taking time to help me out!

       

      -Michelle