7 Replies Latest reply on Mar 30, 2011 11:39 PM by psun@adobe.com

    Marking fields read only when emailing...

    ChiTriGuy67

      Ok, I know this is possible I just don't know what the syntax is to do it, so hopefully one of you gurus can point me in the right direction.

       

      I have a dynamic form that is adding rows.  I have been asked by the muckety mucks to mark the fields as read only once they have clicked on the email submit button.

       

      I have it working for the static fields but don't know how to do it for the dynamic rows.

       

      I'm assuming I would need to do a for loop but would it be on the index?

       

      Here is what I have in formcalc, but I am getting an error at the end of the second line:

       

      foreach element in ("Table.Table1.Row2[*]) do

      Table.Table1.Row2.Remove[*].access="readOnly"

      Table.Table1.Row2.QTY2*].access="readOnly"

      Table.Table1.Row2.DESC2[*].access="readOnly"

      Table.Table1.Row2.PRICE2[*].access="readOnly"

      Table.Table1.Row2.PER2[*].access="readOnly"

      endfor

       

      Clearly I don't have a good grip on coding for Livecycle, can someone provide me with some assistance, please.

       

      Thanks much