Use the value in the text box to change the visibility of a button

I have two fields that I work with.

-The first is a field of text called 'Code '.

-The second is a button called 'Show '.

I'm looking for - when a user types in 8495498 in the 'Code' 'Show' visibility is set to visible.

Here's what I'm trying:

If (this.getField("Code").value == '8495498') {}

this.getField("Show").display = display.visible}

else {}

App.Alert ("incorrect")}

However, it keeps returning the alert app even if I type in 8495498. Someone help of mind?

What follows is designed to be the custom script to validate the Code text field:

Get a reference to the key

var f = getField ("Show");

If (event.value) {/ / leave the field empty}

If (event.value = "8495498") {}

f.Display = display.visible;

} else {}

f.Display = display.hidden;

App.Alert ("incorrect");

}

}

Tags: Acrobat

Similar Questions

  • Clear values of a text box?

    Hello

    A fairly simple, I think. When I go back to a page I've been already, a value that I put in the text box is still there. How can I force it's clear each time?

    Thank you very much

    -Adam

    How you navigate away from the page that has the text box? You have a button "Cancel"? Or you click on a link? Whatever it is, you can clear the cache if you don't want to see the old value in your text box. If it is a button, you can clear the cache by specifying the page number or just the name of the element. You can also clear the cache by indicating the page number or items in your point exit link URL.

    Jerry

  • How to refer to the gross value of a text box is entered on a new line

    Hello

    I have a form in livecycle with a radio and the text box buttons.

    There is another section of the form that displays the value of the text box when the user clicks on the radio button.

    Formcalc script works fine for the first line.

    If (xfa.form.form1 [0].) AgendaMatrixFrame [0]. AgendaMatrixRow [0]. AgendaRadios [0]. ActionRadio [0] == 1) then

    XFA. Form.Form1.AgendaMatrixFrame.AgendaMatrixRow.AgendaItem.RawValue

    on the other

    ""

    endif

    It's another when you press on the button will add a new line to the shape.  This javascript works fine.

    Form1.CommonScripts.AddRow ();

    I have not been successful in recovering the value of the text box if a new line is added.

    I've changed the reference in the AgendaMaxtrixRow script [0] to AgendaMatrixRow [1], but there was a mistake.

    Can someone please provide assistance with how to reference correctly to the new line when adding?

    Thank you

    Hello

    The syntax is a bit light:

    This...

    this.rawValue = oLastRow.AgendaItem.rawValue; newLine
    

    .. must read...

  • EP 6: change the size of the text box without changing the font size?

    OK, it took me awhile looong to finally install PES 6 (from 4 PES) and now it's been a Loooong time that I used it.

    4 PES, you just had to click on the text tool in the text box to see the squares bounding, and you can make the changes. In PES 6, it seems the only way I can get the bounding box to show is now with the tool selection... which of course does not change the size of the font as well.

    I did beaucoup Googling etc and that you can't find the answer. Help, please. I'm not a PSE newbie by any means. I used it for scrapbooking widely in the past which included a LOT of text resizing box... but it seems that 6 is designed differently than 4 and it is NOT intuitive at all. I've figured it out at some point, but it's been too long... > 1 year.

    Please help... need to finish scrapbooking for Christmas gifts...

    I wonder if what has been improved in later versions?

    OK people... it seems it's on my own computer performance issues! To do a break more significantly on areas bounding while using the text tool. I was so rushed... I had mice on and if something didn't happen immediately, assumed that he would not. Sorry for the trouble, but maybe this will help some other impatient soul like me!

  • Change size of text box without changing the type...

    Hello

    Hope this finds you well.

    What is the right way to resize a text box? I read that you are supposed to choose the type, and then hold down the command key, and then change the size. However, sometimes it works and sometimes it doesn't. Any thoughts?

    I appreciate your time and look forward to hearing back from you soon.

    If you want to change the size as well as the box, use the key command key. If you just need to change the dimensions of the bounding box, while leaving the type of the same size (which causes reflow), just hover over a corner and click drag to resize.

  • By selecting the text box to change the text field

    I worked on a form to allow suppliers to fill their reports of endoscopy online.  I'm trying to do something very simple.  If a user selects a check box change the value in a text field.  Either we allow the code to run once.  It will change the value once - even if I think it's to set an incorrect value in the code - but that is neither here nor there at this point.

    Here's the code that should work in my opinion.

    Form1. EndoscopyPage1.TestChkBox::click - (JavaScript, client)

    If (this.rawValue == 1)

    {

    TestTxt1.rawValue = "ON"; the user cannot enter field

    }

    on the other

    {

    TestTxt1.rawvalue = "off"; the user can enter the field

    }

    I tried the following as well

    If (TestChkBox.value = 0) then

    TestTxt1.editValue = 'Off ';

    endif;

    If (TestChkBox.value = 1) then

    TestTxt1.editValue = "ON";

    endif;

    I have attached the file as well.  My trial fields are in the middle of the first page.

    It's just a typo. You typed rawvalue rather than rawValue "V" must be upper case.

    See the attahed to the snap.  It works for me after you change this property.

    Nith

  • How can I make the text in all the boxes down following objects when the text box is changed from 1 to 2 lines?

    Hi people Muse.

    I'm faced with a problem of text box:

    At the bottom of my page, I have the title "ACTING ERMUTIGEN ZUM". Without any manual adjustment, I was happy to see that the text box pushes down the following objects as soon as the title Exchange of 1 to 2 lines. Point out clearly: I didn t add any point to stop or change any additional settings to achieve this, it just happened automatically and that's exactly what I want to happen.

    To my confusion, I can´t find a way to apply this behavior for the second title 'COURAGE OBSERVES UND LOSEN. It s on the same page. When I drag the breakpoint controller in the design-time view from the left to the breakpoint 900 pxor do it in the browser after export of the site, the title changes from 1 to 2 lines, as assumed, , but then the next Don t objects react and stay in the same place they stay when the title takes only 1 line.

    You will find the site on businesscatalyst:

    WILLKOMMEN

    I´d appreciates your support very well. I m sure it s not a big problem, but after an hour of re - try and control and do not receive a millimeter in advance, I thought, he could be one of these 'Don t worry - here comes the solution'- Muse hero there, read this. What you...? ;-)

    Thank you in advance.

    Moritz

    –––

    1st Title: everything works fine...

    Bildschirmfoto 2016-03-15 um 17.24.43.png

    Bildschirmfoto 2016-03-15 um 17.25.25.png

    –––

    2nd title: the 1200 px BP do everything ready...

    Bildschirmfoto 2016-03-15 um 17.26.13.png

    .. .but as I drag the marker of BP to the left just as I did with the title 1, the 2nd title doesn´t lower content:

    Bildschirmfoto 2016-03-15 um 17.26.30.png

    If you set the text block "ZUM ACTING... "sensitive width via the resizing control, rather than"Stretch to the width of the browser", which will provide the behavior you're looking for.

    We will study the design compared to the difference of the browser view. It seems that how items are grouped in resizing behavior is different in the case of elements with parameters width Resize mixed, in the mode of creation of the Muse and the browser.

  • How can I compare data from a set of values in a text box?

    I want to paste a series of numbers in a text box and use it to query the active column of numbers in a report to return only the assets including the active number is in the text box to know how to do this?

    If your text box contains the values concatenated to a string (: or; or, or another) you can use it in a query by replacing ":" with your string concatenation, similar to this example:

    SELECT empno, ename, job, mgr, sal
      FROM emp
     WHERE INSTR (':' || :p138_empno_textbox || ':', ':' || empno || ':') > 0
    

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • validate required fields before using the custom e-mail button

    Hello

    I have a custom button that I use as a button email so that we could have a cc address added. The code I use is:

    Form1.subform.Button3::click - (JavaScript, client)

    var oDoc = event.target;
    oDoc.mailDoc({)
    bUI: true,
    cTo: "[email protected]."
    cCc: "[email protected]."
    bassujetti: "title of the form."
    });

    Is there a way I can validate that 3 text fields are filled when the user clicks on the button?

    Thanks for any help you can provide.

    to check if a field is filled in, you can use the if statement to check if the rawValue is null

    var boValidation = true;

    If (textfield1.rawValue == null) {}

    Validation failed

    boValidation = false;

    }

    If null does not work, it might be because it's a checkbox or radiobutton or dropdownlist, etc. needed if the value is 0

    If (chkBox.rawValue == 0) {}

    Validation failed

    boValidation = false;

    }

    Now, when you're about to send the email check is the fields were filled with success

    If {(boValidation)

    var oDoc = event.target;

    oDoc.mailDoc({)

    bUI: true,

    cTo: "[email protected]."

    cCc: "[email protected]."

    bassujetti: "title of the form."

    });

    }

  • Impossible to uninstall and cannot use the minmise/maximize/exit buttons

    I can't use the high minmise/maximize/exit buttons on the right, so I reset FF on the troubleshooting page. That didn't work so I thought I would try a new new download. I think that it is better to uninstall the existing version first so I went to Control Panel/Add & remove but when I type remove flashes and does nothing else i.e. without uninstalling. I tried to go through my computer and programs, but clicking the uninstall wizard does nothing. Grateful for any help.

    Troubleshooting Info:

     Application Basics
    
           Name
           Firefox
    
           Version
           19.0.2
    
           User Agent
           Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0
    
           Build Configuration
    
             about:buildconfig
    
     Extensions
    
           Name
    
           Version
    
           Enabled
    
           ID
    
           Microsoft .NET Framework Assistant
           0.0.0
           false
           {20a82645-c095-46ed-80e3-08825760534b}
    
     Important Modified Preferences
    
         Name
    
         Value
    
           browser.cache.disk.capacity
           358400
    
           browser.cache.disk.smart_size.first_run
           false
    
           browser.cache.disk.smart_size.use_old_max
           false
    
           browser.cache.disk.smart_size_cached_value
           358400
    
           browser.places.smartBookmarksVersion
           4
    
           browser.startup.homepage_override.buildID
           20130307023931
    
           browser.startup.homepage_override.mstone
           19.0.2
    
           extensions.lastAppVersion
           19.0.2
    
           network.cookie.prefsMigrated
           true
    
           places.history.expiration.transient_current_max_pages
           13396
    
           plugin.disable_full_page_plugin_for_types
           application/pdf
    
           privacy.sanitize.migrateFx3Prefs
           true
    
     Graphics
    
           Adapter Description
           NVIDIA GeForce4 MX 440 with AGP8X (Microsoft Corporation)
    
           Adapter Drivers
           nv4_disp
    
           Adapter RAM
           Unknown
    
           Device ID
           0x0181
    
           Direct2D Enabled
           Blocked for your graphics driver version. Try updating your graphics driver to version 182.65 or newer.
    
           DirectWrite Enabled
           false (0.0.0.0)
    
           Driver Date
           4-7-2004
    
           Driver Version
           5.6.7.3
    
           GPU #2 Active
           false
    
           GPU Accelerated Windows
           0/1 Basic Blocked for your graphics driver version. Try updating your graphics driver to version 182.65 or newer.
    
           Vendor ID
           0x10de
    
           WebGL Renderer
           Blocked for your graphics driver version. Try updating your graphics driver to version 182.65 or newer.
    
           AzureCanvasBackend
           cairo
    
           AzureContentBackend
           none
    
           AzureFallbackCanvasBackend
           none
    
     JavaScript
    
           Incremental GC
           true
    
     Accessibility
    
           Activated
           false
    
           Prevent Accessibility
           0
    
     Library Versions
    
           Expected minimum version
    
           Version in use
    
           NSPR
           4.9.4
           4.9.4
    
           NSS
           3.14.1.0 Basic ECC
           3.14.1.0 Basic ECC
    
           NSSSMIME
           3.14.1.0 Basic ECC
           3.14.1.0 Basic ECC
    
           NSSSSL
           3.14.1.0 Basic ECC
           3.14.1.0 Basic ECC
    
           NSSUTIL
           3.14.1.0
           3.14.1.0
    

    Try disabling hardware acceleration in Firefox.

    Try a clean reinstall and remove the Firefox program folder before reinstalling a new copy of Firefox.

    Download a new copy of Firefox and save the file to the desktop.

    Uninstall your current version of Firefox, if possible, the settings in the software security and cleaning of the Windows registry.

    • Do NOT remove the data personal when you uninstall your current version of Firefox, because all profile files will be deleted and you will also lose your personal data such as bookmarks and passwords from other versions of Firefox profiles.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    Your bookmarks and other profile data is stored in the Firefox profile folder and will not be affected by a uninstall and (re) install, but make sure that 'delete personal data' is NOT selected when you uninstall Firefox.

    If you keep problems also create a new profile.

  • Judgment of multiple while loop running at different rates to stop using the single Boolean stop button

    Hello

    I'm on the block diagram of 4 loops, do different tasks. They are independent of each other, but need to see the unique front panel - some of the wonders of labview!

    Now, I want to have a unique stop button which will in fact be a back button to return to the main screen by stopping all four loops on the block diagram. I used the stop button (switch released) with local variable to stop the three other loops. He stops the vi but it is not a good stop vi to stop properly and the grid on the performance of the front panel. Now all loops run also at different rates, so it is not necessary that all loops are stopped immediately when one of the loop is stopped. Can't really think of a better way. All the ideas!

    Kind regards

    Austin

    Variables local is ok in this case, but you will need to keep the control in switching mode (no lock).

    A better solution would be to have all the loops as a structure of event all listening value stop change. Or have the Stop value change event generate a user defined output event or similar.

    /Y

  • Used the victory 8 reset button - and now, just a "No Signal" monitor... no BiOS, no Safe Mode... not nothing

    I bought a gateway Desktop PC DX Series DX4860-UR28 (DT GE0AA.004) Intel Core i5 3330 (3.00 GHz) 8 GB DDR3 1 TB drive HARD Windows 8 64-bit. It has been preloaded with Win 8 *. It worked fine until

    I went and pressed the RESET BUTTON WIN 8.  My monitor went black and sat there for hours... (I left it overnight.) The next day I turned it and turn it back on.  The PC starts, fans are whirring, the lights are on... and the Viewsonic monitor says: "No Signal" and goes off.  I tried to get into the BIOS by pressing F2, F8, Alt + F10, nothing worked. The computer makes a short beep every 10 to 20 seconds. I turned off the computer. I turn it on again, I turn on the monitor, the monitor button displays the logo of Viewsonic, "No Signal" and goes out, even though I have vainly press F1, F2, F8, F11... that one should I use?    I looked on YouTube to correct the videos.  tried power cycling. I tried to remove and reinstall the sticks of RAM and graphics card. I have tested the monitor so it works with another computer, is not broken. I tried to connect the monitor to the computer with the white and blue led cables and both at the same time.  I tried to remove the video card and put it on with the on board one... nothing. Always impossible to get in the Mode screen without failure or Bios.  What I am doing wrong? Help, please.  I thought using the button Reset Windows 8 would automatically result in a 'clean install' of it.  I wanted to delete my personal files. At this point, I would sell just my computer for junk, but I can't be sure that my files are really erased.  Thank you for all the helpful tips.

    Hello

    Thanks for posting your query in Microsoft Community.

    I understand your concern, and we as a community will try to help you in the best possible way we can.

    Create recovery media in Windows 8. This media can be used in situations when you cannot start your Windows installation. This recovery is a recovery for your Windows PC 8 partition. Simple, you can boot from it & fix your computer to a stable situation. You can use a USB key drive that has more than 256 MB of disk space. Alternatively, you can also use a CD / DVD disc to create the recovery media.

    Using recovery media trying to start on your PC, and auto repair.

    (a) once you start your computer by using the Windows DVD or USB, a black screen is displayed with the gray text "press any key to start from the CD or DVD. Press a button on any.

    (b) select the exact time and the type of keyboard.

    (c) click on repair your computer in the lower left corner.

    (d) select Troubleshooting in choose an option screen.

    (e) click Advanced options in the form of resolution of the problems.

    (f) select auto repair.

    Hope the information helps, if you have any additional questions, feel free to post. We are here to help you.

    Kind regards

    Guru Kiran

  • How can I view 2 sites at the same time (using the ms ms ctrl button to split the screen)

    I can't open a second secession of ff if I can use the split screen feature offered by windows. I want to see 2 things at the same time I cannot compare etc.

    Try this: https://addons.mozilla.org/en-US/firefox/addon/fox-splitter/?src=ss

    Alternatively, open a second window of Firefox (Firefox button > new tab > new window or Ctrl + N), the second loading site, resize the windows side by side.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • How many phone numbers can be connected simultaneously, use the most and merge buttons

    How many numbers phones can be connected at the same time, use the most and fusion of the buttons after you make the first call?

    It depends on your operator.

    It's been a few years since I've really looked into it, but I think that AT & T supports up to 5 concurrent calls. I know that other major U.S. carriers support less, but I don't remember the exact numbers. I want to say that Verizon and Sprint are in charge 3 and T-Mobile supports 2, but my memory on this subject is blurred.

    Contact your operator for more information.

  • HOW do you use the INS/PRT SC button to insert the copied data? It does not work! Help!

    I just got a pavilion DV6-7010us... I have always used the INSERT key when I copy data and insert into a message, chat screen, document... this computer has a key of INS/PRT SC.  I can't get the key to insert data into almost anything.   How do you use this key?  or is there another way to insert data that you copied, into something... ???  I'm used to use Shift + Insert key on my old laptop.    Right now, I try to keep in my mind to use the mouse to insert data... but would like to be able to use the key on the laptop keyboard.

    Is there a way to do it?

    Thank you

    Barbara

    You must identify your laptop for each of us to have a clue as to what looks like your keyboard. There are so many models of HP to be precise.

    Remove the battery and look for the label that says p/n. Post this string alphanumeric together here. It is your HP product number. G6 or dv6 and dv7 are all just model numbers.

    You can also do this by using Ctrl + C to copy and Ctrl + V to paste. That's what most people use to copy and paste in most applications and productivity programs.

    Because Windows 7 has the capture tool, I didn't even use the Ins or Prt Scr.

Maybe you are looking for

  • How to find number of online user clicks in multicolumn Listbox

    Hello I'm trying to find the line number of the clicked point right in the (MC) Multicolumn list box. Scenario:  I have activated the menu custom for multicolumn ListboxWhen the right-click on a line in a listbox multicolumn, I need to know the numbe

  • HP 3800: hp3800

    My printer HP3800 initailizes fine. When it prints, the page will be stick approximately 2 "out of the fuser unit and stop at a 13.02.00 error every time. I checked all sensors, I can't, but haven't found anything. What I read, if it boots ok, this i

  • I have a C drive and a drive of F, F being the slave, how to change where to save downloads to?

    I have a C drive and a drive of F, F being the slave, lately, all my downloads went the F drive and now it is overloaded, how can I get downloads to go automatically on the C drive? and how can I transfer some of the overload from F to C?Thank you

  • Discovery of the network shuts down in Windows 7

    I tried to get my new laptop with an upgrade to Windows 7 (from Vista) networking with your XP desktop.  A question I am having is that when I go into the advanced settings, network discovery is always off, even after I changed to the and have saved

  • Organize Contacts by the interest in the product or Business Unit

    Hi all - I'm new to Eloqua and our entire organization is as well and we are struggling with the idea to allow contacts to be available in the world (all divisions) while maintaining some sense of who "owns" that contact record or maybe a better way