In Adobe Acrobat XI Pro, how do I validate a form field so that it's numerical value is less than or

I have one numerical field named "B," and I need to validate it so that it is less than or equal to the value of another field named "A." I can't figure out how to do that!

OK, so the custom calculate script for field B could be something like:
(function () {
    // Get field values as strings
    var sA = getField("A").valueAsString;
    var sC = getField("C").valueAsString;
    var sD = getField("D").valueAsString;
    // Only perform the calculation if all fields are filled
    if (sA && sC && sD) {
        var sum = +sC + sD;
        event.value = sum;
        // Alert the user if the sum is more than A
        if (sum > +sA) {
            app.alert("Error message goes here");
    } else {
        // Blank this field if all fields are not filled in
        event.value = "";
Instead of (or in addition to) an app.alert popup, you could place this message in a read-only form field, and clear it if there is no error condition.

Similar Messages

  • I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically. Can some one out there help me?

    I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.

    Update automatically under which circumstances, exactly?

  • In Adobe Acrobat XI pro how do I change the units of measure from inches to centimetres?

    In Adobe Acrobat XI pro how do I change the unit of measurement from inches to centimetres?

    Edit > Preferences > Units

  • For Adobe Acrobat X Pro how do you change font size Acrobat in form editing mode?

    For Adobe Acrobat X Pro how do you change the font size when Acrobat is in Form Editing Mode? The fonts are different sizes in the highlighted fields.  I want the font the same size throughout my document...

    Dear Michael:
    The documents do not look professional with the 2 different font sizes.  And it
    is driving me crazy because I cannot figure it out… But I will try the steps you
    gave me to change the font size.  Attached via e-mail is a screanshot of the
    document.
    Sincerely, Lisa

  • We use adobe acrobat X pro, how can I convert pdf to worl document?

    we use adobe acrobat X pro, how can I convert pdf to worl document?

    Hi ,
    Please refer to the following link to convert PDF to word file.
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7eeb.w .html
    Regards
    Sukrit Dhingra

  • What is the registry key in Adobe Acrobat v9 which turns the dialog off: any form fields that have the same name in the merged documents are now...

    what is the registry key in Adobe Acrobat v9 which turns the dialog off: any form fields that have the same name in the merged documents are now...

    There is no key because that is an important dialog.  Why would you want it to go away?

  • Adobe Acrobat  9 Pro - How can I speed up my Batch Processing sequence

    Adobe Acrobat 9 Pro Version 9.0.0
    My company upgraded from Adobe Acrobat 7 to Acrobat 9 recently. Now, whenever I run a batch sequence on one 2003 Word file, it takes over 20 minutes - that's one Word doc. Before with version 7, it took only a few minutes.
    My Batch Sequence has only one command - the Open Options command.
    Question
    What can I do to speed up this Batch Processing sequence?
    FYI
    My Word doc contains no graphic - merely text with a TOC and Index.
    PS
    My system has 3.50 GB of RAM

    I have advanced tagging turned off.
    I'm only using these two Word options:
    Convert cross-ref and table of contents to links.
    Convert footnote and endnote links.

  • Adobe Acrobat 11 Pro---How to get it

    I downloaded Adobe Acrobat 11 Pro, dutifully created an Adobe ID and password, and then came the brick wall:  Adobe Download Assistant.  That was the end of the road.  There were no options to get beyond it.  Does anyone else out there know the secret way in?
    Also, is the forum of other users (while certainly welcome) the only way of getting information from Adobe?  Does Adobe itself ever answer questions?

    There is no support for trial versions, anyway, so it's a moot point. It says so in the fineprint. If you can't download with the assistant, you might try that:
    Direct Download Links for Adobe Software
    Mylenium

  • Since upgrading to Mavericks my Adobe Acrobat 9 Pro requires administrative password on every launch--whats with that?

    Since upgrading to Mavericks my Adobe Acrobat 9 Pro requires administrative password on every launch which seems like an unnecessary step.  Does anyone know why this is happening and what can be done to eliminate this?

    Download and run the combo updater to refresh your files.
    OS X Mavericks 10.9.3 (Update (Combo)
    http://support.apple.com/kb/DL1746
    Open Disk Utility and run Repair Permissions
    You might need to remove and reinstall Acrobat. Be sure you are in an admin account when installing.

  • How can I concatenate a currency field (eg: 12.25) with numeric values

    Hi,
    I ma working in ECC6.0.
    How can I concatenate a currency field (eg: 12.25) with numeric and character values into a variable.
    I want to concatenate 12.25  with  "+"  and  "0".
    Regard,
    Divya

    Hi,
    I ma working in ECC6.0.
    How can I concatenate a currency field (eg: 12.25) with numeric and character values into a variable.
    I want to concatenate 12.25 with "+" and "0".
    Regard,
    Divya
    ==================================
    data: l_string type string.
    move l_curr_field to l_string.
    condense l_string no-gaps.     "if needed
    concatenate l_string '+' '0' into l_string.
    now your l_string will have all the values.

  • Adobe Acrobat 9 Pro- How to password protect with time expiration

    Does anyone know how to set a password for a .pdf file that will expire after a certain length of time. Thanks for your help.
    Roy

    Not possible with Acrobat alone, but with a DRM system on your PDF (License Server etc.) you can expire documents as and when you like.

  • Adobe Acrobat 9 Pro: How can i use german quotation marks automatically in my formular?

    Only english quotation marks are used automatically.
    Thanks a lot for help!

    Hi John ,
    Please refer to the following links .
    https://helpx.adobe.com/x-productkb/global/find-serial-number.html
    https://helpx.adobe.com/x-productkb/policy-pricing/volume-licensing-site.html
    Hope this will help to recover the serial number of your software.
    Regards
    Sukrit Dhingra

  • Downloaded Adobe Acrobat XI Pro- how do I save to that file?

    The software seems to have downloaded but when I try to save my document on pdf it is defaulting to Nitro- the programs that came on the computer.  Suggestions?

    You need to change the File Association on the computer for PDF files.
    For Windows :- http://helpx.adobe.com/x-productkb/global/file-associations-broken-uninstall-applications. html
    For Mac :- http://osxdaily.com/2009/10/25/change-file-associations-in-mac-os-x/

  • How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?

    How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?
    I’m creating a form where the user has three options to make a payment.
    1. charge to my credit card
    2. charge associated costs to bank account
    3. By cheque or money order
    My Problem is, under each option, there are required fields that has to be filled out. So if the user picks the first option, charge to my credit card, they would fill out the required fields (credit card number, expiration date etc.). But when they click submit button to submit the form, it won’t let them, because there are required fields under the second option. Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it. So what I'm trying to do is this: If the user selects the radio button for option 1, the other two options are greyed out/disabled. And if the user holds down the shift key and clicks radio button for option one again, it unchecks the radio button and the other two options are available again. Is there a way to grey out or disable the two other payment options when the other one is picked. I’m assuming I will have to use javascript, but what would the coding be and which field do I write it under?
    Thanks in advance guys

    You will have to use custom JavaScript to access the various properties of the field object.
    The radio button group has a value. When no button is selected that value is "Off". When an individual button has been selected the value for the group will be the option or export value for that individual button.
    Once you have determined the button selected, then you will know the form fields that need to be made required. You use JavaScript to access those fields and change the "read only" property to false, and set the "required" property to true. For the fields associated with the other options, those fields should be reset, made read only, and have the "required" property set to false.
    Disabling (graying-out) Form Fields
    >> Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it.
    Radio button in a PDF do not work that way. Only check boxes can be unchecked by clicking on one that has been checked.
    If you plan the coding for the Mouse UP action to test for all possible options and code for each of those options you should have what you want.
    If you want actual code you need to provide a lot more details.
    It is even possible to perform some credit card and bank routing number validations with JavaScript and some check digit formulas.

  • How to set adobe acrobat 9 pro as pdf default program on mac snow leopard OS?

    how to set adobe acrobat 9 pro as pdf default program on mac snow leopard OS?

    I say to highlight more than one if you can because if the PDF you highlight was made by using Acrobat, it will change all PDF's made by Acrobat but if you have one made by some other product, it may not change them to open with Acrobat.
    So in other words, at some point you may have to do it to a PDF made by some other product.

Maybe you are looking for

  • How do I change the name of my movies in Apple TV from Unknown Genre

    I assume I would change it in iTunes?  When I go to Computers on Apple TV, I get Music, Movies etc., but my movies are listed under "Unknown Genre" Thanks for your help Cheers

  • Sudden Change to Slide Show Display/Presenter View Greyed Out

    Two weeks ago powerpoint was acting normally. I would come into class, hook my netbook up to the projector, set my monitor output option to extended desktop and start my slideshow in presenter view. This morning I went into class and I was unable to

  • Exception data: java.lang.AbstractMethodError - Calling Remote Method.

    We recently changed some of our CMP fields from primative int's to integer's and now we are receiving Abstract Method Errors at runtime. We have fixed all the methods that use this CMP fields, well at least we think we got them all. Since this are re

  • Data value not showing in added column

    I have added a column to a fixed SQL query.  When the application runs, the column appears in the display grid, but the value is missing. I have added the column to both the query and display templates.  I've added the column to the IlluminatorDoc, r

  • SESSION AND SPID.

    Hi, guys. Does one session always have one spid? I quried. SELECT S.SID, S.SERIAL#, S.SUSERNAME, P.SPID FROM (SELECT SID, SERAIL#, USERNAME, PADDR FROM V$SESSION WHERE USERNAME = 'AAA') S, (SELECT ADDR, UPPER(USERNAME) FROM V$PROCESS WHERE USERNAME =