Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

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

Avatar

Level 2

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

3 Replies

Avatar

Level 7

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;

Avatar

Level 8

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

Avatar

Level 2

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