3 Replies Latest reply on Dec 1, 2013 11:35 PM by C@rter

    How to change the label of PDF Form Field Button?????

    C@rter Level 1

      Hi,

       

      I have a PDF document which consists of 2 Form fields of object types Button and Textfield. Button having label "Deliver", now I want the text label to be customised, What ever the value sent as input should be placed as the label for same button.

       

      Is it possible to customize the form field elements?????? 

       

      The PDF has been created using ADOBE Acrobat Pro.

       

      I was able to modify the label value using Acrobat Pro.

       

      Regards,

      Carter

        • 1. Re: How to change the label of PDF Form Field Button?????
          jasotastic81 Level 3

          Put this in the exit event (or somewhere else you'd like) for the text field. (I don't know what you named your button; so, I chose btnDeliver.)

           

          xfa.resolveNode("btnDeliver.caption.value.#text").value = this.rawValue;

          • 2. Re: How to change the label of PDF Form Field Button?????
            TundraSteve Employee Moderator

            This is in the wrong forum.  This is the LiveCycle forum the reply above won't work in your case.  Open your question in the Acrobat Forum not LiveCycle

            • 3. Re: How to change the label of PDF Form Field Button?????
              C@rter Level 1

              Hi TundraSteve,

               

              I want this to happen from LiveCycle only not from the acrobat side. I want this caption change when I pass this document as an input to the process, and the process should change the button caption from "Deliver" to another value(passed as an input variable). Initially I am able to modify the TextField value using the below xml input

               

              <?xml version="1.0" encoding="UTF-8"?>

              <topmostSubform>

                <Deliver/>

                <TextField1>',/process_data/@inputName,'</TextField1>

              </topmostSubform>

               

              Passed this xml as input to the renderPDFForm activity along with the PDF form.

               

              Now I want to modify the caption of "Deliver" button to a string passed as an input to the process. For this process I have two inputs strings. One Input value should be placed in the TextField and the another input value should be placed as the caption name of the button.

               

              Thanks,

              Carter