4 Replies Latest reply on Apr 10, 2008 9:04 AM by (Xiou)

    Move the info to a different field

      Hi All,

      I am new creating a form in PDF. I am wonder if anyone can help me.
      I have a 3 radio buttons with different value, what I am trying to do is:
      If I click on radio 1 the value of radio 1 will go to field 1
      and field 2 or 3 will be empty
      if I click on radio 2 the value of radio 2 will go to field 2
      nd field 1 or 3 will be empty
      if I click on radio 3 the value of radio 2 will go to field 3
      nd field 2 or 1 will be empty

      Any help will be greatly appreciated!

      Thank you,

      Xiou
        • 1. Re: Move the info to a different field
          gkaiseril MVP & Adobe Community Professional
          Since there are 2 products that are used to produce forms, which product?

          And, what values do the radio button export and what is the "Off" value if using LiveCycle Design?
          • 2. Re: Move the info to a different field
            Level 1
            I am using the Adobe Acrobat Professional

            The value of the the radio button are
            radio 1 value is 200
            radio 2 value is 400
            radio 3 value is 600
            • 3. Re: Move the info to a different field
              gkaiseril MVP & Adobe Community Professional
              Assuming the radio buttons all have the same name, you will need to provide the same script for all the radio buttons or call the same document level function.

              // clear all text fields - assuming "Off" condition
              this.resetForm(["field 1", "field 2", "field 3"]);
              if (this.getField(event.target.name).valueAsStrng == "200")
              this.getField("field 1").value = this.getField(event.target.name).valueAsStrng;
              if (this.getField(event.target.name).valueAsStrng == "400")
              this.getField("field 2").value = this.getField(event.target.name).valueAsStrng;
              if (this.getField(event.target.name).valueAsStrng == "600")
              this.getField("field 3").value = this.getField(event.target.name).valueAsStrng;
              • 4. Re: Move the info to a different field
                Level 1
                I am new using creating the PDF form.

                I added the script inside the radio buttonaction with the select trigger as "mouse down" to all 3 radio button which have the same name. but for some reason when I click at radio1 the value does not show at "field 1". Any idea what am I doing wrong?