1 Reply Latest reply on Nov 6, 2012 11:49 AM by George_Johnson

    edit duplicated fields

    UliW

      I think it's an easy thing, however I don't now how to do it.

       

      In a form I have a namefield occuring 5 times in different places.

      In most cases the name will be identical but it may also differ.

       

      Example:

      1.CustomerName

      2.ProjectName

      3.AccountName

      4.BillingName

      5.ReferenceName

       

      So, when I write field 1 this should be copied to field 2,3,4,5.

      But then I would like to individually change field 2,3,4 or 5.

       

      thanks for your help

       

      Uli W

        • 1. Re: edit duplicated fields
          George_Johnson MVP & Adobe Community Professional

          You can use the following custom Validate script in the CustomerName field:

           

          // Custom Validate script

          if (event.value) {

              getField("ProjectName").value = event.value;

              getField("AccountName").value = event.value;

              getField("BillingName").value = event.value;

              getField("ReferenceName").value = event.value;

          }

           

          This will overwrite those field values whenever the user updates the CustomerName field, unless it is blanked. You could add additional code so that if any of the fields is not blank, it won't overwrite the value.

          1 person found this helpful