Button that increments and one that clears

Hello, could anyone help me with a code for a button when clicked,  incremements by 1. I have a numeric field (not sure if it should be a  numeric or text field), and a button. I want when the user clicks the  button, the number in either the text or numeric field increments by 1. I  also need a code for another button, that when clicked, clears the text  field. I appreciate your help.

To increment....
// form1.page1.subform1.incBtn::click - (JavaScript, client)
form1.page1.subform1.nf.rawValue = form1.page1.subform1.nf.rawValue + 1;
if (form1.page1.subform1.tf.isNull) {
  form1.page1.subform1.tf.rawValue = "0";
var numStr = form1.page1.subform1.tf.rawValue;
form1.page1.subform1.tf.rawValue = parseInt(numStr) + 1;
To clear....    
// form1.page1.subform1.clearBtn::click - (JavaScript, client)
form1.page1.subform1.nf.rawValue = null;
form1.page1.subform1.tf.rawValue = null;

Similar Messages

  • Mid 2011 Macbook Air - Yosemite keyboard and trackpad stopped working, the only button that worked was the power button, only one USB port works.

    I have a Mid 2011 Macbook Air.
    Upgraded to Yosemite last week.
    Three days ago I was using my Macbook Air for the first time since upgrading to Yosemite. I had been using my Macbook Air for approximately 30 minutes, I was using safari and the keyboard and trackpad stopped working (would not respond). The only button that worked was the power button.
    I rebooted and they were still not working. I plugged in a USB mouse and external USB keyboard, only one USB port would work (the Left USB port if looking at the screen) so I had to swap between keyboard and mouse.
    After logging in there is a bluetooth icon at the top of the screen with a sawtooth line through it. Bluetooth is unavailable and the bluetooth icon is missing from the system preferences menu.
    If I run a hardware test by holding D (on USB keyboard) at startup it says that no problems are found and at the conclusion of the test the keyboard and trackpad start working again. When I log on the bluetooth is working again.
    I shut down the Macbook Air and when I started it again the keyboard and trackpad and right side USB ports were all not working again. I logged in using the USB keyboard and mouse and the bluetooth not available sawtooth icon had returned.
    I ran the hardware test again and at the conclusion of the test the trackpad and keyboard started working again.
    I have tried deleting com.apple.Bluetooth.plist and com.apple.Bluetooth.plist.lockfile from /Library/Preferences/ and tried resetting SMC and Power Functions but this did not fix the issue. The only thing that seems to work is running a hardware test - obviously I don't want to do this every time I use the computer.
    I do not believe any hardware is faulty/damaged - I think it has something to do with bluetooth/Yosemite.
    I do not have the Macbook with me at the moment, if you have suggestions that I can try or additional checks/info you require please let me know and I can get back to you.
    Thanks,
    John

    Hi!
    I have exactly the same problem, and I can't find any solution.
    I can't even track down the root of the problem: the Bluetooth/Wifi module? The trackpad? The keyboard/top case? The logicboard?
    I've tried all the usual: SMC/PRAM reset, clean install, kext cache clearing.
    Any suggestion is greatly appreciated!

  • I preordered an album and a song was released but it won't download. It just has a clear button that says "pre-ordered". How do I download the song but keep my pre-order for the rest of the album?

    I recently pre-ordered Ed Sheeran's "X Deluxe version" (or Multiply). He said he was releasing a song a day until the album was released. The most recent was Afire Love. The button where I should have "download" just has a clear button that says "pre-ordered". Shouldn't the song have already downloaded? How can I get the song without having to cancel my pre-order or getting charged for purchasing the song and the preorder?

    Hi kgiles13,
    It sounds like you may be having an issue with one of your purchases in the iTunes Store. Here is an article for you that will help you address this issue:
    Report an problem with an item you bought from the iTunes Store, App Store, Mac App Store, or iBooks Store
    http://support.apple.com/kb/ht1933
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • Two radio button groups merging into one, and I don't want that. How do I fix it?

    I have two sets of radio buttons that I want to be independent of each other. How do I do that?  Just to be clear... I have one set with two buttons.  The second set has six buttons.  They are independent of each other - they just happen to fall in line one right after the other.  LiveCycle keeps putting them together. 
    I have very limited knowledge and am learning as I go.  Thanks for any help that you can give me.

    Select the Radio button that you want to be independent of the other radio buttons, RIGHT click and choose Wrap in New Radio Button Group.
    This way it can be selected along with other radio buttons..
    One question here. If you want each radio button to be independent of each other, why not change them to Check Boxes instead of Radio Buttons.
    Thanks
    Srini

  • I need an application that will turn off my iPhone on the home screen just by a one click since my power button has sank and is no longer working--anyone have ideas?? I don't like having to use assistive touch and hit three buttons to lock my screen

    I need an application that will turn off my iPhone on the home screen just by a one click since my power button has sank and is no longer working--anyone have ideas?? I don't like having to use assistive touch and hit three buttons to lock my screen

    No such app exisits or can exist.  Apple doesn't allow 3rd party apps to access core functions of the phone.  Time to get your phone replaced or repaired if assistive touch doesn't needs your needs.

  • Just downloaded DW CC. Bought expensive book that tells me to use "Expanded Workspace" but the only options I see in window or workspace button are "Design" Extract" and one other. No where can I find "Expand" or "Compact" which the books says are the two

    Just downloaded DW CC. Bought expensive book that tells me to use "Expanded Workspace" but the only options I see in window or workspace button are "Design" Extract" and one other. No where can I find "Expand" or "Compact" which the books says are the two choices.

    Glad to be of help .
    I won't be spending any more money on expensive books now that I know you can't actually get one that applies to the latest version.
    Don't get me wrong.  I like books.  Classroom in a Book series is an excellent resource to have.  You will learn a lot from it.  Just don't get side-stepped by Creative Cloud's update schedule.  No publishing house can keep pace with it.   If you stay informed about new releases from Adobe's "What's New" Blogs, you will get your money's worth out of your books.   Online Help (F1) is another good resource to use since it is updated fairly often.
    Nancy O.

  • HT2470 The Finder toolbar, by default, has Previous and Next buttons that let you navigate back and forth in folders. I somewhat change that setting and can't go back and foreward. How do I change this setting to the original one? I tried everything!

    The Finder toolbar, by default, has Previous and Next buttons that let you navigate back and forth in folders. I somewhat change that setting and can't go back and foreward. How do I change this setting to the original one? I tried everything! Help!

    Select a Finder window, Finder->View->Customize Toolbar…, and add it back.

  • Is there a way to make rotated Buttons and ones that overlap??

    currently, im working on a dvd menu, and i want it to look like a stack of Polaroids,
    so i made the menu in photoshop with all the codes, like (+)(%) ect.
    though now i want the buttons to be overlapping and all tilted to a random direction,
    like a real stack of polaroids, i've tried making a "straight" menu and then rotating the buttons, but it didn't work.
    is there a way that you can rotate buttons and have the thumbnail footage also be rotated?
    and is it possible to have buttons that overlap at some point?
    (note that i want the Animated thumbnails)
    here's a random example picture i found online
    though i know it might be possible by making them all by manually in AfterEffects,
    by using the original footage with lots of masks to make thumbnail movies,
    but im not looking for such a tedious job, also im not very skilled in AfterEffects

    In DVD-Video, buttons cannot overlap, and their hit area will always be a rectangle...even if the contents of the button are rotated, it will result only in the rectangle becoming larger, to fit the rotated graphics.
    Regarding button thumbnail layers, they show similar behavior - they will always render out as a rectangle.
    If you don't use thumbnail layers (try a replacement layer), you should be able to rotate the button without the replacement layer getting re-adjusted. But note replacement layers don't accept video. If you want video in the buttons, you'll have to do all the work in After Effects.
    But remember - your buttons cannot overlap without introducing button highlighting problems.
    A better solution is to not make these buttons at all, but a regular menu layer or video background layer. And then you can create custom highlight layers in Photoshop, again making sure your buttons don't overlap. This would be a lot of work.

  • Back button no longer works in some specific situations; also, it appears that clearing cache isn't working.

    The "back" button no longer works in certain specific situations on certain specific websites -- especially on the very website on which I need to use it very frequently. This has been going on for a couple of weeks.
    Also, I noticed today that the "clear cache now" command doesn't seem to be working. Formerly, when I cleared the cache, I had to re-login to those websites that normally "remember" my login (because clearing the cache erased that "memory") -- but today, after using the "clear cache now" command, those websites still "remember" my login, which leads me to believe the cache didn't get cleared. Is there any other way to check whether it got cleared?
    I was attempting to clear the cache in the faint hope that this might help the above "back" button problem, as no one has yet given me a solution for this that has worked. One person suggested having Firefox re-create the possibly damaged "places.sqlite" and "places.sqlite-journal" files. I tried this, but there was no change to the problem.
    I think this problem started around the time I had a few Firefox crashes while using YouTube and doing something else on the computer at the same time.
    I just today learned about the "crash signature" -- how to look it up, and to include it in a forum question. However, the crash log did not show these recent crashes, only some others from a few months ago. So, I'm unable to show the crash signature for this.
    I'm guessing there's a chance that upgrading to a newer version of Firefox might fix this problem -- but I hesitate to do that, because it occurs to me that it also may be possible that changing the program before fixing this might make it harder to fix. I don't have enough knowledge of this software to know which is more likely, and I don't like to try things at random, in ignorance of the possible results. Also, after reading today several other forum comments from people who are unhappy with their Firefox upgrades, I hesitate to upgrade for that reason, also.

    Websites remembering you and automatically log you in is stored in a cookie.<br />
    So you need to remove the cookies to make a website forget you.
    * http://kb.mozillazine.org/Cookies

  • I am not able to access the history button that will empty my cache----they won't light up so I can use them and I am having lots of problems with function

    My computer is running stupid and I am being told by my malware bytes that I don't have any problems and when I try to clear my cache none of the buttons work after show history. THEY are all useless and won't light up to use them. I also have not been able to set up zoho as my default email address for all default emails====windows won't let me even though i disabled windows email, I still can't set up zoho.com

    When you use the private browsing feature, Firefox does not keep your history after your session. You don't need to clear history manually, you can just close Firefox.
    If you're looking for another way to clear you cache, you can use this one:
    Open the Options dialog using either:
    * orange Firefox button > Options > Options
    * Tools menu (if you have the classic menu bar) > Options
    Click Advanced, then on the Network mini-tab look for the Cached Web Content section and click the "Clear Now" button.
    If you have a large hard drive, this might take a few minutes.
    Perhaps, though, we should step back and ask for a more specific description of running wack. What's going on?

  • Create a clear button that will clear a jpanel

    so i have two classes. One being a frame, and the other being a panel.
    On the panel, i can draw various shapes with various colours etc. The frame contains the panel, and also a north panel containing various buttons to achieve this.
    What i would i need to do is create a clear button that will clear the panel.
    I know i can go and set it so it's draws a rectangle the same colour as the background but that would be cheating.
    I will post a section of the paint just so you get an idea.
        public void paintComponent(Graphics gPanel) {
            if (this.buffer == null) {
                Dimension d = getSize();
                this.buffer = new BufferedImage(d.width, d.height,
                        BufferedImage.TYPE_INT_ARGB_PRE);
                myLineColour = new Color(0, 255, 0);     // initial colour for drawing
                this.g2Buffer = (Graphics2D) this.buffer.getGraphics();
                this.g2Buffer.setColor(Color.white);
                this.g2Buffer.fillRect(0, 0, d.width, d.height);
                // This time we'll draw with a broad pen 
            g2Buffer.setStroke(new BasicStroke(myLineWidth));
            if (myShapeFlag == 1){{
                this.g2Buffer.setColor(Color.white);
                g2Buffer.setXORMode(myLineColour); //go into the overwrite mode
                g2Buffer.drawLine(xStart, yStart, xOld, yOld); // undraw last
                g2Buffer.drawLine(xStart, yStart, xEnd, yEnd);     // draw new
                g2Buffer.setPaintMode();          // out of XOR overwrite mode
                xOld = xEnd;                    // store last end point
                yOld = yEnd;
            if(mouseReleased) {          // final time through
                g2Buffer.setColor(myLineColour);
                g2Buffer.drawLine(xStart, yStart, xEnd, yEnd);     // draw final
                mouseReleased = false;
            gPanel.drawImage(this.buffer, 0, 0, this); }Any help on this would be much appreciated

    no idea how to do this.. sorry...
    for the jbutton action listenener i'm not sure.
    I think i'm on the right tracks with a method
        public void clearPanel(Graphics gPanel){
                g2Buffer.fillRect(100,100,100,100);     // draw final
                gPanel.drawImage(this.buffer, 0, 0, this);
    }but again i think i'm way off the mark..

  • How can I make a button that on press the object appears and on second press the object to disappear

    Hello,
    I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:
    on (press)
        _root.top1.gotoAndStop(2);
        _root.topp.gotoAndStop(2);
        _root.mm1.gotoAndStop(2);
              _root.m1.gotoAndStop(2);
    but from here I'm stuck.
    Thank you for your help

    What you can do is use the _visible property of the object to make it appear and disappear, or more correctly, use the opoosite of the _visible property.  You should not put code "on" objects, keep it in the timeline.
    If "object" is the instance name of the object you want to toggle, then in the timeline code you can use...
    object._visible = false;  // start with the object being invisible
    yourButtonName.onRelease = function(){
        object._visible = !object._visible;
    That one line in the function sets the object's _visible property to be the opposite of what it currently is.

  • Using Cap6, need to create menu screen that allows user to click a button, branch to other screens, and return to main menu. When returning to the main screen the button that was clicked will be grayed out or inactive.  How do I do this?  I created image

    I am trying to emulate a piece of equipment.  I need the user to be able to click on specific buttons that will take the user to another screen(s).  After viewing those screens the user will be directed back to the main screen where the user would know which buttons had been pressed and which still needed to be pressed.  I create image buttons with the 3 states - that worked except when the user returns the slide is reset and so the user does not see the 3rd state of the button.  How can I get that 3rd state to stay after user returns to the main screen? 

    Hi Elizabeth,
    Since I just did this morning what you are currently attempting to do, I thought I'd share my method.  I must provide a disclaimer and tell you that I am not an expert in Captivate advanced actions--like you, I am still figuring them out.  However, I am happy to share here anything I have learned thus far.
    First, here is what my initial slide looks like (see interaction slide below).  I created all of the icons (including the 'grayed out' icon on the second screenshot) in a few minutes using Adobe Illustrator. The icons have been imported as custom multi-state buttons so that I could have the desired effect when the user hovers over the image--the yellow 'explore' flag appears only when the mouse is over the icon. When the learner click either image, they are sent to the corresponding slide.  Once both slides are viewed, a 'continue' button will appear at the base of the screen (something I've not figured out--I sent an email to Lieve begging for some guidance). 
    The initial slide (interaction slide):
    Second, here is a depiction of what happens when the learner returns to the interactive slide from the content slide (see image below):  Once the learner visits the 'Battery Content' slide and then returns to the interaction slide, the images have changed.  The multi-state button is hidden (through the advanced action), the replacement image (the image with the completed banner over it) is shown, and a hidden click box to allow the user to return to the previously visited page (just in case they desire to do that) is "shown" to allow navigation since the button is no longer there (because it is magically hidden).
    Content Slide 1:
    Remember, there may be an easier way to do this in Captivate.  I am using Cp6 for this module.
    1. I created two user variables as follows
    Name: v_batteryExplore
    Value: 0
    Name: v_fuelExplore
    Value: 0
    2. I created an advanced action for each as shown below (showing only one--duplicate the first and change the names to match the content):
    Credit: I learned these steps from @Lilibiri and Dr. Pooja Jaisingh!
    I have also noticed that it matters where the buttons are located on the timeline.  It seems best to have buttons above all other content.  Not sure why, but I have had images not appear when I have not done this.
    And the last step you do not want to forget; you need to remember to tell Captivate to use the action.
    As a final note, remember that the elements you do not want to appear on the initial screen must not be initially visible.  Make sure to set them to invisible by removing the checkmark in the 'Visible in output' box located next to the button name.  In my case, the image of the completed battery and the invisible button to allow a revisit of content was initially hidden.  Here is a final screenshot of my timeline for this interaction.  I hope this information helps you!

  • I bought an album and one of the songs did not download completely.  It shows that the song is 3:17 seconds but only got 40 secs. of it.  How can i get the rest of the song back?

    I bought an album from itunes and one of the songs did not download completely.  It shows in the player that it is 3:17 but only plays for 40 secs.  How can i get the entire song back?

    I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the entry, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
    (Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.)

  • How do I create buttons that once clicked and un clicked, alter an image? ...

    How do I create buttons that once clicked and un clicked, alter an image?
    So for example if I imported a psd file into Muse with 5 layers, could i create 5 buttons which, when clicked, each individually took off and added 1 layer?
    Basically this should make what i'm trying to say clear (when it's loaded click the arrow and you'll see): http://lust.nl/lustArchive/noordzee/noordzee.html
    Appreciate any help

    Hi Joe,
    Please use this option to hide the target on click - http://prntscr.com/3plqn0
    - Abhishek Maurya

Maybe you are looking for

  • How continuously write data to a txt file

    hello,  first of all, sorry for bad English, but I have a problem to continuously write data to the txt file.... I have one 2D array with values of some function and based on 2 sliders (values of the sliders) i want to interpolate value using bilinea

  • Short closing : of PO

    Dear All , I have been shortclosing the PO by : 1) Selecting the Delivery completed tick . and 2) And Locking the Items in PO. but after this whether the PO will move for again release Procedure . Regards ,

  • I Just purchased Adobe Acrobat DC, Everytime I try to install I get the same Error Code: 207?

    I Just purchased Adobe Acrobat DC, Everytime I try to install I get the same Error  We've encountered the following issues, The server is not responding currently. Please try after some time (Errors  Code: 207) I've rebooted twice, and I get the same

  • Exadata Discovery - Failed to launch process: Algorithm negotiation fail

    Trying to discover an Exadata box. We've installed the latest EM (BP1) and deployed the agents successfully to the compute nodes. When we come to use the discovery wizard, it fails on the monitoring credential page. We input the cell root passwords a

  • Referencing a JAR archive

    Hello forum, this question has probably been asked a thousand times but I can?t seem to find a answer. I have a java package installed a C:\Program File\CSoftware\Import\Classes.jar In my code (C:\Java_Code), how do I make a reference to this package