How can I change the content of a text field in a PDF form with a defined variable?

Hello all!
First time poster, and getting pretty frustrated with trying to figure out this one issue. Here is the scenario: I am using Acrobat 10 Pro to design what is essentially a giant order form. I designed the document in InDesign, defined the various buttons and whatnot and then exported it to Acrobat to continue building the form.
I have a Radio Button group called "conference_opportunities" which contains different options at different price points, so they are all named the same, but have different values (so that they belong to the same group and only one can be selected at a time).
What I have done is created a "MouseDown" event on the radio button that sets a variable called "ConferenceOpportunity" which is equal to the title of the option they are picking. I then want to take that variable and display it in a text box called "Conference_Option". I am using a variable because the values of my radio buttons are all the actual prices of the option they are picking, so I can't define the value as the title of the option.
So its an array of radio buttons, and at the bottom of the page there is the Option They Selected, the quantity (which can change) and the value (in dollars)
I also then want to display this variable at the end of the document as a sort of summary of everything they chose to purchase as well but I imagine its the same code.
I am not an expert Javascript person at all, so any code snippets would help greatly. I have looked over the Adobe Document on the SDK and API and have not been able to find a solution. I have also turned to the almighty google and still no luck.
Any help would be greatly appreciated!
Thanks Everyone

All you now have to do is use that variable to the value property of your text field... So add this at the end of your code:
this.getField("Conference_Option").value = ConferenceOpportunity;
Also, I would use MouseUp, not MouseDown.

Similar Messages

  • How can I change the Background in a text-field into lets say grey?

    I created a text field and now I would like to not have the background in white. I did not figure out yet how I can do this. Also the help program did not help. Does anybody know how this works?
    Thanks a lot. Many greetings!

    Oh.. all right, forget it.. I just found it myself.... just looking a little more... Thanks for your help anyway....

  • How does one change the "rollover" value in text field of fillable PDF

    I have a fillable PDF, and the values displayed when rolling the pointer over a fillable text field are showing some strange values.  I inherited this form from someone who is no longer with the company.  I need to be able to change the values but can't figure out how.  I'm new to LiveCycle so any help is greatly appreciated.

    I guess you are referring to "Tool Tip" you can update those in "Accessibility" Pallet...in designer you would access this by Shift+F6.

  • How can I change the caption of a text field using data?

    Hi, I've read that this is possible to do but when you have an xsd file, I'm using a preview xml data file, so there is no way to link them together, any ideas?.
    Thanks!.

    1) In Designer, Tools>Options
    2) Select Data Binding in the left pane and make sure Show Dynamic Properties is checked
    3) Select the field that you want the caption to be driven by XML
    4) In the Object palette under the Field tab you'll notice Caption is now green and underlined, click it.
    5) If your form is bound to a schema you can see the hierachy when you press the button beside the binding entry field or in your case to access the Caption attribute in your XML type> $.textField1.Caption
    Assuming '$' is your root node.
    Kyle

  • I'm using pages.  How can I change the shape of a text box to arch?

    I'm using pages.  How can I change the shape of a text box to arch?

    You can't do that in Pages. If you need text in an arch use Art text 2 lite, free from the Mac AppStore.

  • HT3069 How can I change the content list when I change residence country?

    I bought an Apple TV in Mexico but came to came to the US to work on a project, so I brought my Apple TV with me. I already changed the credit card to an American one and all the country settings, but it still displays the Mexican list. How can I change the movie content?

    Purchases will be tied to the original account. Your US account will not have access.
    If your Apple TV is not displaying US content make sure the Apple TV location settings are correct. DNS should be on automatic.

  • How can I change the sound of push notifications on an iPhone 4 running with iOS5?

    How can I change the sound of push notifications?
    In settings > sounds there are various options but not the a possibility to change the general sound (!!!) of push notifications.
    Example: How can I change for instance the sound of the push notification of for example the New York Times notifications.
    Thanks for the help!
    Product: iPhone 4 running with iOS5

    What you see - what is available for this is what you get.

  • HT4759 How can I change the password on my stolen iPhone 5 which shares data with my ipad2

    How can I change the password on my stolen iphon5 which shares data with my ipad2

    If you had Find My iPhone activated on your iPhone, you can remotely wipe it, which you can do through iCloud on your computer.  If you did not have Find My iPhone active on your phone you're out of luck.
    You should immediately change all passwords for your Apple ID, email, any apps where you had a password, or any where you have credit cards tied to shopping.

  • Changing the background of a text field in adobe interactive forms

    Hello All,
    Is there any way to change the background colour of text field in interactive form dynamically.??
    Thanks,

    Naresh,
    Change the language to JavaScipt in Script Editor of LiveCycle Designer and use the following code to highlight the area of TextField where R,G,B means that you have to give the RGB values of the color you want.
    <YourTextFieldName>.border.edge.color.value = "R,G,B";
    For eg:- If you have a textfield with name TextField1 then this will highlight the TextField1 area in red color.
    if ((TextField1.rawValue==null) || (TextField1.rawValue==""))
      TextField1.border.edge.color.value = "255,0,0";
    You can use this on exit event of Textfield1 or at the submit button where you check the form data.
    Chintan

  • How can I change the content of JTable?

    Dear friends.
    I have an JTable. I create tablemodel for it and fill out it by data.
    In application at the run time I always need to change the content of whole table. For example I have a frame with JTree and JTable. When I click on the tree node I need to retrieve the data about this node in the JTable.
    Advice me please how can I do that and give an example please.
    Thank you.

    SOL I:
    There solution can be simple if u've written a model for it.
    If u are updating the data of the table by the setValueAt() method of the tableModel, in ur calling(mutating code), then just append a sinle line at the end of the method. U just need to fire a data change event corresponding to the event that has happened.
    void setValueAt(Object aValue, int rowIndex, int columnIndex) {
    - - - - - - - ur code
    //then last line can be
    fireTableDataChanged() ;
    OR
    fireTableCellUpdated(int row, int column);
    OR
    fireTableStructureChanged() ;
    depending uopn what has happened.
    SOL II:
    U may also try calling the method fireTableDataChanged(); from the place where the table data is getting mutated.
    like:
    ((AbstractTableModel) table.getModel()).fireTableDataChanged();
    [email protected]

  • How can I get the content of a text element to insert in a different block

    I have two blocks. The first one (block_control) is a non based block with a text element (EXERCICE). When I go to the second block (block_data) and I want to insert a new record, I need in my record the value of EXERCICE who is in the first block (block_control). How can I get this balue if I want to be able to do an execute_query too on the second block ? Because if I use pre-block or post-block or when-new-record-instance trigger to make the content of EXERCICE follow from block_control to block_data in a hidden field, I can't execute_query.
    Thank's

    First , when you want to insert a record in the second block , override the default commit_form processing and create a commit-form trigger which is called by a button to commit your form. The when-button-pressed trigger of this button should be : do_key('commit_form'); . And you create the key-commit trigger on the second block. Inside the key-commit trigger write this :
    :second_block.item_name := name_in('block_control_name.exercice');
    commit_form;
    In this way you get the exercice data into your record.
    Secondly, in the post-query trigger of the second block, set the exercice column of the second block to the exercice column of the block_control.
    And that's it.

  • How can I change the background color in text box using RGB format

    Can some one tell me if Mac Pages (version 5.0) allows users to customize the background color of a text box using RGB color format?  It appears that the text color can be changed using RGB but background color is limited to a few standard colors.   Thanks

    They are just sample swatches, use the Color Picker to choose anything you want.
    Peter

  • How can you update the content of a textfield in a dynamic xml form from MSAccess and VBA

    I am trying to use the code below to update a field in a dynamic xml form created by Livecycle.
    I can read the field content but cannot change it.
    What am I missing?
    Thanks
    R
    Sub test()
    Dim oPDF As AcroPDDoc
    Dim FileDestName As String
    Dim jso As Object
    Dim ofld As Object
        FileSrcName = "C:\Documents and Settings\My Documents\ADOBE Forms\NoVB.pdf"
        Set oPDF = CreateObject("AcroExch.PDDoc")
        Set jso = oPDF.GetJSObject
        Set ofld = jso.getfield("form1.TopForm.Header.Subform1.Contact")
        Debug.Print ofld.Value
         ofld.Value = "HHH"
        Debug.Print ofld.Value
    oPDF.Save PSsavefull, FileSrcName
    oPDF.Close
    Set jso = Nothing
    Set oPDF = Nothing
    End Sub

    You need to research the difference between an AcroForm and an XFA form.  You're trying to access a "Field" object, which is an AcroForm object.  An XFA form does not have fields, it has nodes.  The JavaScript you are using is specific to AcroForms and you are working with an XFA form.

  • How can I change the flow of threaded text?

    Hi I have a 90 page Indesign 5.5 document in which the text is threaded.
    I need to move several pages to another part of the document.
    When I move the pages with the pages pallet, the threads go all over the place.
    How do I either re direct the thread so it runs in the order I want them to, or break the threads and
    re thread them once move is complete?
    I would be grateful to anyone who could assist, as I seem to be going in circles trying to remedy this problem.
    Lindy.

    What do you mean by break the thread? You can break the link between threaded frames by clciking on either the inport or the outport of a frame, then clicking inside that frame, but all of the text inthe the thread will remain with the "upstream" section of the broken thread and any text that was in the downstream section will become overset. You can then insert a new page, pick up that overset text and thread throughthe new page and back into the old section, which remains threaded together.
    If you want to actually break the story apart into separate threads, you need to brboth break the thread and cut the overset from the original portion and paste into the empty section. This has been scripted by Dave Saunders for your convenience, or you can do it manually. You'll find Dave's script at http://jsid.blogspot.com/2005_08_01_archive.html
    If you eancounter errors when running the script, move it into a subfolder named "Version 4.0 Scripts" (without the quotes) and it should run,I think. For instruction on how to install scripts, see How to install scripts in InDesign | InDesignSecrets

  • This should be easy! How can I change the background colour of my fields?

    Apologies if this has already been posted but nothing has come up via Google nor the Forum search.
    I'm sure this should be easy but it's really doing my head in!
    I have a number of textboxes, dropdown lists, etc within my form - I have set Custom backgrounds on each which are visible within Design View. However, in Preview PDF all the fields have a default blue colour and only change to my Custom backgrounds when you enter the field.
    Is there a way of removing the default colouring of fields so that it's the same as my Custom backgrounds? My Custom backgrounds are 'linear to bottom' so I don't want to just set border.fill.color to one colour.
    Thanks for any help,

    Hi,
    If you include this Javascript in the docReady event of the root node (default "form1").
    app.runtimeHighlight = false;
    This will turn off the field highlight. It doesn't prevent the user from turning back on the highlight, but it will mean that your form opens with the highlight off.
    Hope that helps,
    Niall
    Assure Dynamics

Maybe you are looking for

  • Windows Vista 64 Bit and Button Support - Qosmio G30?

    Windows Vista 64 Bit and Button Support?

  • Menu Bar AppleScripts do not work

    I just tried to use the Finder script, Add to File Names, to add a prefix string to a group of files. What I got was the string "Prefix" added to the end of the file name, after the siffix, thus changing the file type to an unrecognized string.

  • Re calicutae values

    Hi Friends, i recently came accross an issue, actually for asset our users uploade from legacy in 2008 and in the same year they posted all the depriciation and later in 2009 there is nothing to depriciate. Now in 2010 they are trying to scrap it, th

  • How to make fixed position of column names on JSP/xml form

    Hi, I use Oracle 9i, ver. 2. I create a browse form (JSP) where I can see the data from one large table through Microsoft Internet Explorer (version 6). When I scroll the browse form I would like that names of columns to be fixed on the form. I trued

  • MapBuilder version error

    Hi, we just downloaded a new version of MapViewer and Mapbuilder - we delpoyed MapViewer succesfully and is up and running. But when I try to run the MapBuilder it gives me this error: java.lang.UnsupportedClassVersionError: oracle/mapviewer/builder/