Button Setting Variable - Text Field Not Updating

Hi,
I am working with Acrobat 9 Pro on Windows.
I am unable to make the following work: When the user clicks a Button, a Text Field appears with the text associated with the Button clicked. I have tried accomplishing this with a variable declared in the Document JavaScripts, buttons setting the value of the variable, and a Text Field containing a Custom Calculation Script that returns the text associated with the value of the variable.
Everything works - except the Text Field doesn't return the text associated with the value of the variable. I have an app.alert (for now) in the button scripts so I can see if the variable has the correct value - and it does - but when the Text Field appears - the text never changes.
What I have observed: if I go back into the Custom Calculation Script of the Text Field and do nothing, go back out, go to Preview, and click on a Button, the text updates to the previous variable value (not the Button variable value I just clicked).
So - I think - the Custom Calculation Script isn't seeing the new variable "on the fly". Even though the app.alerts are. I don't think this is a Field Calculation Order problem. But maybe it is. And this is where my brain power ends. Any suggestions would be greatly appreciated. Thank you.
I have this in the Document JavaScripts:
var ITrig = 1;
I have three Buttons (want to have more) that will set the ITrig variable.
Here is what I have in one Button:
var Inpopup = this.getField("PartASectionIIInstructions")
ITrig = 2;
app.alert(ITrig);
if (Inpopup.display == display.hidden) {
Inpopup.display = display.visible
Inpopup.setFocus();
} else {
Inpopup.display = display.hidden;
I have this in the PartASectionIIInstructions Text Field in the Custom Calculation Script:
if (ITrig == 2) {
event.value = "#2";
else if (ITrig == 3) {
event.value = "#3";
else if (ITrig == 4) {
event.value = "#4";

Thank you. I had tried something like that earlier - without success. That is why I went to the calculation script. So - I went back to the "Acrobat Forms - JavaScript Object Specification" looking for an answer. It finally sunk in I was guilty of this:
var Inpopup = this.getField("PartASectionIIInstructions").value
Inpopup = "#3"
When I should have been doing this:
var Inpopup = this.getField("PartASectionIIInstructions")
Inpopup.value = "#3"

Similar Messages

  • Problem with JButtons Text field not updating

    Im working on a program (which has its full code included below incase its part of the problem) which wants to change a Jbutton's name during a program. The way I'm trying to make it change is by having a string, "test", be called "before update". then have the jbuttons text equal test. then, in an actionlistener, it changes string test to equal "after update". This doesn't update the Jbuttons text.
    I don't get any errors when I press the button, but the buttons name is not updating. Whats causing the buttons name not to be updated?
    Thanks for help in advance.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*; 
    public class TicTac extends JFrame {
    public int Teamplaying = 0;
    public int CrossA, CrossB, CrossC, CrossD, CrossF, CrossG, CrossH, CrossI, CircleA, CircleB, CircleC, CircleD, CircleE, CircleF, CircleG, CircleH, CirclI, TLB, TMB, TRB, MLB, MMB, MRB, LLB, LMB, LRB = 0;
    String test = "Before Update";
        public TicTac() {
             JPanel TicTac = new JPanel();
             TicTac.setLayout(new GridLayout(3,4));
                  TicTac.add(new JButton(test));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  setContentPane(TicTac);
             pack();
             setTitle("Add Numbers Together TicTac");
             setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             setLocationRelativeTo(null);
        class TopLeftBox implements ActionListener {
             public void actionPerformed(ActionEvent e) {
             String test = "After update";
             if (Teamplaying == 0) {
                  CrossA = CrossA + 1;
                  CrossD = CrossD + 1;
                  CrossG = CrossG + 1;
             else {
                  CircleA = CircleA + 1;
                  CircleB = CircleB + 1;
         public static void main(String[]args) {
        TicTac Toe = new TicTac();
        Toe.setVisible(true);
    }

    1) Strings are immutable meaning you can't change them.
    2) Even if you could, the two test strings are completely different variables.
    3) To change JButton text, you should call its setText method.
    4) For a JButton to perform an action on button press, it needs to have an actionlistener added to it via the addActionListener(...) method.
    5) Please read, study, and review the Sun Swing tutorials. You will benefit greatly from having a solid foundation in Swing basics before you try coding in Swing.
    Good luck.
    Edit: a small example code (SSCCE, if you will):
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class Frame extends JFrame
        public Frame()
            JPanel panel = new JPanel();
            JButton button = new JButton("Before Update");
            button.addActionListener(new ButtonListener()); // add actionlistener here
            panel.add(button);
            setContentPane(panel);
            pack();
            setTitle("Frame");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setLocationRelativeTo(null);
        private class ButtonListener implements ActionListener
            public void actionPerformed(ActionEvent e)
                // get the button that called this action
                JButton button = (JButton)e.getSource();
                // update the button's text
                button.setText("After update");
        public static void main(String[] args)
            SwingUtilities.invokeLater(new Runnable()
                @Override
                public void run()
                    new Frame().setVisible(true);               
    }Edited by: Encephalopathic on Apr 28, 2008 9:26 PM

  • Text Fields Not Showing in Design or Live View

    Hello Everyone,
    I have run into a problem trying to create a simple contact form through Dreamweaver CS6.  I have two text fields for Name & Email, and 1 text area for Comments.  The issue I am running into is that the text fields are not showing in Design or Live view.  I have set-up all variables required for the server for the form to work... but that should not have any effect on the text field showing...  I tried uploading my contact page with the same result of no text fields showing...
    What is really laughable is that the "text area" I placed in my form for Comments shows up in Design & Live view just fine.  I am thinking that I am missing something, but just do not know what exactly.  The form is styled through CSS.
    Here is the form code:
         <div id="CRDForm">
           <form action="http://www.sweetformimi.com/formmail/formmail.php" method="post" enctype="application/x-www-form-urlencoded" name="contact" target="_self" id="contact">
        <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
        <input type="hidden" name="recipients" value="[email protected]" />
        <input type="hidden" name="subject" value="Contact Form" />
             <label><p>Your Full Name
               <input name="Name" type="text" id="Name" size="40" /></p>
             </label>
             <label><p>Email
             <input name="email" type="text" accesskey="2" tabindex="2" title="Email" value="Email"></p>
             </label>
             <label>Comments<br />
             <textarea name="comments" cols="40" rows="10" accesskey="3" tabindex="3" title="Comments"></textarea>
             </label>
             <input name="submit" type="submit" accesskey="4" tabindex="4" title="submit" value="submit">
           </form>
        </div>
    Are there other variables I should be thinking about in the rest of my site?  I am using a fluid grid layout.  I have CSS for desktop, tablet, and phone devices.  I also have a primary CSS file that imports all three.  The sites structure was done by using <header>, <article>, <footer>, and of course <div> tags. 
    Has anyone ever experienced the "text fields" not showing up before? Is it a simple fix as reinstalling Dreamweaver CS6?  Finally, another thing I should mention is that I did have a previous version of Dreamweaver on my comp, which was CS3.  I did not uninstall that before installing the newer version.  I assumed (and I could be wrong here) that it would automatically replace the older version.
    I apoligize for it being long winded, but I am looking for some help on this issue...
    Thank You

    Hey thank you osgood for the reply!
    When I look at code for long hours it sort of blurs together, and I miss things... I think that happens to the most of us
    Ya I found what was blocking my text fields in my desktop.css
    I primarily work through code view, and currently working on quite a few projects kind of makes your eyes miss the small errors.
    Thanks again!

  • How do you grey out a radio button if a text field is blank in Adobe Acrobat XI Pro?

    How do you grey out a radio button if a text field is blank in Adobe Acrobat XI Pro?
    So this what I'm trying to do:
    (     )   |TEXT FIELD|
    (     )   |TEXT FIELD|
    (     )   |                  |
    (     )   |TEXT FIELD|
    I have a radio button: (     )
    and a text field: |TEXT FIELD|
    The third text field is blank, and I would like for the radio button next to it greyed out (user can't click on it) since the text field is blank. Is this possible to achieve? I'm assuming I'll have to use javascript, but what would the code be and would it be entered in the javascript editor for the text field or the radio button?
    Thanks in advance guys

    Hey, thanks, but it didn't work
    I have the text fields as read only. Could that be why it's not working? Should I make the fields not read only?
    Thanks,

  • Vendor field not updated in CRM pricing condition table

    Hi,
    We have maintained condition table with Material and Vendor fields in ECC and table is active
    After replicating this table from ECC to CRM, vendor field not updated in table and it is inactive.
    There is any mapping settings required to update vendor field in CRM table from ECC.
    Please help me out to solve this issue
    Regards
    kishore kumar

    hi,  the data field of vendor is a standard one or custimizing one?
    I remeber there is a data mapping setting in CRM, for condition field.   If you want to mapping a ERP standard field to a CRM custmizing one, you need to setting your rule in it.  Maybe you can find it in SM30 view.
    I can't login a CRM system now, so sorry for not offer your the view name.

  • Linking a radio button to a text field in a pdf form

    Forgive my ignorance but does anyone know how to link a radio button to a text field in an Acobat pdf form?
    I have a series of 4 radio buttons. If you click on one of them I would like to activate a text field which you then have to fill in. In addition it would be good to have it so that if you don't click on the radio button you're not able to fill in the associated text box.
    I am a designer not a programmer so I don't know much about javascript. Can anyone help?
    Many thanks

    You might want to look at Hiding and Showing Form Fields by Thom Parker. You might also want to clear the text field when the radio button changes.

  • Bug report: text does not update on the stage

    I am not sure whether this has been reported:
    I have several groups divs into one main group div. In these are images and text. I create a new group by copying elements from a previous group and then insert new text in the copied text box. The text does not update on the stage but is correct when I run the composition and also in the text panel.

    Hi Hemanth.
    I tried all day and is intermittent, why?, 'cause the numbers are now showing but the other texts not, this happen only on Chrome and Safari when the navigator screen increases size.
    On Chrome:
    On Firefox:
    I discovered that the error appears only on the right side of the stage, if I move the buttons to center, the error disappears:
    On Chrome (Fullscreen):
    I have no idea of what is happening.

  • Sharepoint 2013 Active Directory Import- Manager field not updating

    Hi,
      SharePoint 2013 Active directory import  -Manager field not updating
    Concern/Issue-
     We are using SharePoint and configured the Active Directory Import .First import it seems everything is working fine and OOB Organization chart  built using User profile data is coming out right.
    Now the user is moved from one Organization Unit to Another.
    Now our Manager field is not Updating .There is change in AD manager attribute but not reflecting in the SharePoint User profile.
    Manger field is mapped to "manager" attribute in SharePoint.
    We tried removing the user and Re-Import using Incremental import but no luck.
    Thanks for help in advance
    Sachin

    Moving a user from one OU to another in AD won't normally change the Manager attribute in AD.  You would need to edit the user's organization settings to change the manager value in AD.  I've also seen these changes not be picked up unless something
    other than just the manager field in AD changing.  Try changing something like Office location and see if the manager change is picked up by AD Import.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How do I set the Text Fields alignment using LiveCycle 7.1

    I created a Form using LiveCycle Designer 7.1 with a few sample Text Fields. Each text box is about 0.75" in height to accomodate a few lines of text within it - it will be holding a description field so the data could be quite large. When my PDF document gets populated with data from an XML file via a .NET Web Page, the text is shown in the center of the Text Field. However, I need the text to be dispalyed at the Top of the Text Field, not in the center. Does anyone know where the option is to make this happen?

    In the paragraph tab. You may have to open it the first time from the Window menu.
    Chris
    Adobe Enterprise Developer Support

  • Text field not showing record set options

    I entered the following php code to a text field in a form:
    <p>
          <label for="date">Select Available Date</label>
          <select name="date" class="text" id="date">
            <option value="0" selected="selected">select your preferred travel date</option>
                <?php while ($row_rsDep = mysql_fetch_assoc($rsDep)) {
                      echo '<option>' . date('d.m.Y',strtotime($row_rsDep['Start_Date_Eur'])) . ' - ' . date('d.m.Y',strtotime($row_rsDep['End_Date_Del'])) . '-' . $row_rsDep['Itinerary_Code'] . '</option>';
              ?>       
          </select>
        </p>
    In the text field it shows only the option=0 "select your preferred travel date" and does not show the rest of the options as available from the database.
    Any idea what is wrong with my code?
    Thanks,
    zabberwan

    I do have it showing in the sidebar showing as a repeating region. I commented it out and entered your code, but this time it shows nothing at all, not even an error!
    The problem may have to do with "VIEWS" as I am working partly with Views on the external server. The server guys are having problems allowing Views. They did allow it for my account, but somehow this is not working. So I update my database leaving out the 3 tables created as views out of a total of 8. On the contrary on the local server the database is working fine, so that may not be the problem after all.
    I had got it work a fortnight back, but lost it as I had to redo a few things with the forms it is in. On the sidebar it is working fine otherwise as a repeating region and showing all the dates of all itineraries. Only it's not working in the form, where it shows the preselected string (select your preferred travel date), but not the rest of the options.
    About changing the email, one has to change the whole ID  and profile etc. and then you can't log into your own account with the same user name, you have to have a different one, so that your own thread is no longer your own. What a pile of goons at the wheels! And what a disappointment with otherwise such a great bunch of forums.. I'll now have to contact the staff and would like them wipe out all my ID's and Profiles at Adobe and make a new one. It's such a rotten mess. This thing even ruined my ID at Adobe Browser Lab.
    I suppose we'll leave it for Mr. Nobody to fix it, like so many other things especially around Christmas!
    zabberwan

  • BAPI_ACC_DOCUMENT_POST line item text SGTXT not updating

    Hi,
    We have copied following LSMW for opening balance upload from ECC 5  to ECC 6.
    When we upload through LSMW (BAPI_ACC_DOCUMENT_POST ) which is used for uploading opening balances of G/L accounts field Long Text (Tech Name: ITEM_TEXT) not updating.
    Form Vendor and Customer Opening balances LSMWs  Long Text (Tech Name: ITEM_TEXT) field of G/L line item is not updating. According to my observation data field  SGTXT of BSEG table. not getting updated through this LSMW. I have tried same transaction through  T Code F-02 and it is updating field SGTXT of BSEG  table. As per confirmation from business same LSMWs  are working fine in ECC 5.
    Jigar

    hi experts,
    no body faced this situation?
    Any suggestions ?
    kindly give me any inputs
    thanks & regards,
    Raghul
    Edited by: Raghul Gandhi on Aug 11, 2009 11:32 AM
    Edited by: Raghul Gandhi on Aug 11, 2009 12:56 PM

  • Last Played, Play Count, Ratings fields not updating

    iTunes 6.0.1.3, 3rd Gen iPod, iPod Shuffle 2005-09-23 firmware
    After updating to iTunes 6.0.1.3 I was forced to also update my iPod firmware to 2005-09-23. Since then, the last played, play count and ratings fields associated with music tracks no longer updates when I re-synch my 3G iPod. I’ve tested with ripped AAC, ripped MP3, older (FairPlay 1) purchased music as well as new (FairPlay 2) tracks. No matter what I’ve tried, the dates, counts and raings remain frozen in their pre-update state.
    However, these fields are updated for Podcast tracks!
    I also ran a test with my Shuffle. Music file play counts are updated as usual. I do notice that the Last Played field within iTunes is updated with the date and time of re-sync. Has it always been this way? I haven’t paid attention to this since I first purchased my Shuffle but I thought it only updated play count, not Last Played.
    Any advice would be appreciated.

    Found the problem. After my iPod didn't update after purchasing new songs, I checked my iPod options. For some reason my iTunes iPod Options changed from "Automaticaly update ..." to "Manually manage ...". Once I set this back to automatic everything updated fine.
    It is interesting that even when "Manually manage" was selected, a new Podcast trak was downloaded to the iPod and, after listening to it, the Last Played and Play Count fields were updated.
    Also, regarding my question about the Last Played update with my Shuffle, I learned that iTunes 5 implemented a change to update this field with the current date and time once the Shuffle is re-synch'd.

  • Text field getting updated with Vendor account

    Hi,
    If we want to populate vendor code and  vendor name in text field of each payment line item while executing Automatic Payment Program, is it possible?
    What configuration changes needs to be done?
    I have tried the Substitution at the Complete Document Level but the system is not updating the doc.

    hi
    in the substitution you have to build your logic

  • Using radio button instead of text field

    Hi. I need to convert a text field for radio button. The conversion is as follows: the user will choose one of three options on the radio button (gif, png and jpeg). If the user chooses the image format such as jpeg, for example, how should I put in value? Put image/jpeg and does not work. This text field belongs to a form that was generated automatically by a WebService Data Control. Thanks

    remove the text field.
    drag and drop that attribute from data control, choose selectOneRadio
    in the wizard window, select fixed list and select this particular attribute and then type gif, png and jpeg one by one.
    in the pagedef it would be something like below:
        <list IterBinding="myIterator0" id="image" DTSupportsMRU="false"
              StaticList="true">
          <AttrNames>
            <Item Value="image"/>
          </AttrNames>
          <ValueList>
            <Item Value="gif"/>
            <Item Value="png"/>
            <Item Value="jpeg"/>
          </ValueList>
        </list>whatever you select that values goes to db.

  • Setting a Text field in adobe form non editable

    Hi Experts,
    I have generated a Adobe form using webdynpro java. I have  couple text fields. They are binded with some values which a RFC returns. When I see the output These text fiels values which are populated from backend are editable. Can anyone suggest me how to make these text fields non editable.
    Thanks,
    Raj

    Hi Raj,
    You have to set the properties of these text field as readonly.
    For this you have to select the text field ... Go to the Object Pallete.
    There you will see three Tabs Field, Value and Binding.
    You have to click on Value Tab  and there you have select the Type as Read Only.
    If you do not have Object Pallet open .. go to Menu Bar Window and Click Object
    This will solve your problem.
    Cheers
    Satya

Maybe you are looking for

  • Mid 2011 MacBook air vertical lines on display

    While sending à webform today my air display all of à sudden displayed à bunch of vertical lines. I couldnt see anything so i held power button down to restart and it restarted to gray screen no apple logo but 2 vertical lines representing my 2 login

  • How to create objects in ABAP Webdynpro?

    Hi, I want to create the object for the class: <b>CL_GUI_FRONTEND_SERVICES.</b> then i want to call file_save_dialog method. how shoud i write the code, plz?

  • JTreeTable and LookandFeel

    Hi, All Currently I have some troubles with subj.The main problem -- painting time of the tree/table cells.Best perfomance in "standard" java L&F,after Win L&F and at least Motif. I'm not sure but think that is trouble of L&F.I amcorrect? and one mor

  • Podcasts don't appear in Recently Added folder after upgrade to itunes7.7

    I just upgraded to itunes version 7.7. With this new upgrade my "Recently Added" folder in itunes no longer shows podcasts, it only shows songs. I have tried looking for a setting that will let me add Podcasts to this folder but I can't. Is anyone el

  • Neverwinter Nights Is Invisible

    Background: I previously had the open source Radeon driver installed but switched to the Catalyst driver in order to get PCSXR working. Now I have a problem with Neverwinter Nights. When I start NWN, nothing happens. I get no error message in the ter