Two text fields each other also have the values of the minimum and maximum fields?

I have two text boxes that are mutually exclusive: one is a dollar amount per pay period, and the other is an annual amount in dollars. User can enter an amount in the box of one or the other (but not both), and I used the validation for this below script:

Field1 script:

If (event.value) this.getField("Field2").value = "";

Field2 script:

If (event.value) this.getField("Field1").value = "";

Now, I also Inow the field limit with the minimum and maximum amounts for these same fields. But, because the range of field values is an option button other than the custom validation script, it seems that I can't do both because I can choose only one option button:

Screen Shot 2015-11-02 at 1.25.44 PM.png

Is there a way to keep my custom validation scripts so that they are mutually exclusive, but also to impose minimum and maximum amounts for these areas?

You must validate the range using a script.

It will look something like this:

if (event.value) {
    if (event.value<10 || event.value>100) {
          app.alert("You must enter a value between 10 and 100.");
          event.rc = false;
    } else this.getField("Field2").value = "";
}

Tags: Acrobat

Similar Questions

  • How can I change the minimum and maximum values on a map of metrics.

    Sorry, I'm new to vCOPs and it drives me crazy.  I searched the community and Google, but found nothing so thought I'd post here.  I am interested in a VM in vCOPs and select operations - tab the metric.  I add the CPU usage | Use (%) to the table.  By default, the y-axis is has a low of-40 and a maximum of 60.  Well, my % of the CPU usage never goes below 0% right?  It's hard to look at this figure.  Also, I like to see usage to 100% as a maximum rather than somewhere just above where is the top of the chart.  Looks like there should be an easy way to change the minimum and maximum y, but I can't seem to find it.  Can someone show me what I'm missing here?

    Thank you

    Bob

    He does. There is no way to force it to a specific axis. For vC Ops, there is no concept of a "desired" min and max for Y axis in respect to the display by the metric system settings type. All the data is dynamic and can be any value graphically speaking.

  • How can I detect the minimum and MAXIMUM values of the inputs to the NOR-Scope channels (NI-SMU-1073)?


    Hello Philippe,

    Take a look at the example below. Retrieves the Min and Max of table X and also correspondent has the value Y.

    Best regards

    Klas

  • Try to generate minutes date using the minimum and maximum date

    Hello

    Generate data to date in minutes using the min_time and max_time of the table or query specified, below
    With time_data as
    (SELECT 1 sr, TO_DATE('5/5/2009 7:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 9:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL
     UNION ALL
     SELECT 2 sr, TO_DATE('5/5/2009 10:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 12:00:00 PM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL)
    SELECT * FROM time_data;
    
    SR     MIN_TIME     MAX_TIME
    1     5/5/2009 7:00:00 AM     5/5/2009 9:00:00 AM
    2     5/5/2009 10:00:00 AM     5/5/2009 12:00:00 PM
    The output I am looking for is,
    5/5/2009 7:00
    5/5/2009 7:01
    5/5/2009 7:02
    .
    .
    .
    5/5/2009 9:00
    5/5/2009 10:00
    5/5/2009 10:01
    5/5/2009 10:02
    .
    .
    .
    5/5/2009 12:00
    I tried this query, but it seems not to work,
    With time_data as
    (SELECT 1 sr, TO_DATE('5/5/2009 7:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 9:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL
     UNION ALL
     SELECT 2 sr, TO_DATE('5/5/2009 10:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 12:00:00 PM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL)
    SELECT TRUNC(TRUNC(min_time)+level/1440,'MI') udates FROM time_data
    connect by TRUNC(TRUNC(min_time)+level/1440,'MI')  <= TRUNC(max_time, 'MI');
    Ideas please...

    With 10g
    Salim cordially.

    WITH time_data AS
         (SELECT 1 sr,
                 TO_DATE ('5/5/2009 7:00:00 AM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) min_time,
                 TO_DATE ('5/5/2009 9:00:00 AM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) max_time
            FROM DUAL
          UNION ALL
          SELECT 2 sr,
                 TO_DATE ('5/5/2009 10:00:00 AM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) min_time,
                 TO_DATE ('5/5/2009 12:00:00 PM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) max_time
            FROM DUAL)
    SELECT min_time dt
      FROM time_data
      model partition by (sr)
      dimension by (1 rn)
      measures( max_time,min_time,(max_time-min_time)*24*60+1 dif)
      (min_time[for rn from 1 to dif[1] increment 1]=min_time[1]+ numtodsinterval(cv(rn)-1,'minute'));
    
  • Validate a field with the minimum and maximum values

    How can I register a form in Livecycle designer?

    http://www.java2s.com/code/JavaScript/form-control/Validateaninputfieldwithminimumandmaxim umvalues.htm

    Can someone help me with a sample?

    Just replied to your other thread.

    Paul

  • What are the minimum and maximum of a competing request ID numbers

    Hello

    I was wondering where the concurrent request ID start for example 0,1, or 10000 and where they "check". For example, is it to 9999999, 99999999 or higher.

    I have a feeling they start with four or five digits may be 1000, but I could not find a direct reference in the manuals or on the Support website. I don't think that the maximum size of the FND_CONCURRENT_REQUESTS table's history, but can be a problem.

    Oh, I mean a 11.5.10.2 instance in my case, but would be interested in the case of the 12 too.

    Kind regards

    John

    Hi John,.

    ID of the request is picked on the sequence FND_CONCURRENT_REQUESTS_S, see wats the value in the startup sequence. In 12.1.3.8, it's the same thing in 12.0.6

    Simo

  • Get the minimum and maximum values

    Hi all

    Please, how can I solve the problem below.
    WITH DT1 AS
    (
    SELECT 'A' ID,  3 MIN_VAL FROM DUAL UNION ALL
    SELECT 'B' ID, 25 MIN_VAL FROM DUAL UNION ALL
    SELECT 'C' ID, 55 MIN_VAL FROM DUAL
    ),
    DT2 AS
    (
    SELECT 21 MAX_VAL FROM DUAL UNION ALL
    SELECT 37 MAX_VAL FROM DUAL UNION ALL
    SELECT 41 MAX_VAL FROM DUAL UNION ALL
    SELECT 51 MAX_VAL FROM DUAL UNION ALL
    SELECT 67 MAX_VAL FROM DUAL UNION ALL
    SELECT 76 MAX_VAL FROM DUAL
    )
    SELECT ID
         , MIN_VAL
         , MAX_VAL
      FROM DT1
         , DT2
    expected result
    --------------------
    ID  MIN_VAL  MAX_VAL
    A         3       21
    B        25       51
    C        55       76
    Kind regards

    Using the analytical function LEAD:

    SQL> WITH DT1 AS
      2  (
      3  SELECT 'A' ID,  3 MIN_VAL FROM DUAL UNION ALL
      4  SELECT 'B' ID, 25 MIN_VAL FROM DUAL UNION ALL
      5  SELECT 'C' ID, 55 MIN_VAL FROM DUAL
      6  ),
      7  DT2 AS
      8  (
      9  SELECT 21 MAX_VAL FROM DUAL UNION ALL
     10  SELECT 37 MAX_VAL FROM DUAL UNION ALL
     11  SELECT 41 MAX_VAL FROM DUAL UNION ALL
     12  SELECT 51 MAX_VAL FROM DUAL UNION ALL
     13  SELECT 67 MAX_VAL FROM DUAL UNION ALL
     14  SELECT 76 MAX_VAL FROM DUAL
     15  )
     16  SELECT ID, MIN_VAL, (select max(max_val)
     17                         from DT2
     18                        where max_val
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/07/creare-documenti-office-da-plsql/]

  • Customization of file exchange: what is the initial and maximum size recommended?

    Hi everyone and hurt.


    After response of harm to my question on how to install diskettes, evil said:


    "allocation of disk: is a three step process, first of all, you set the boot order in the BIOS, then you format the windows disks and assign drive letters, then again Windows you set up for the swap file." Then the allocation of media preview cache, project etc. is made in preferences, and setting up a PR project."


    and I have a question about the pagefile.


    First of all, let me tell you describe my new machine, there a configuration to 4 disks, no RAID, 16 GB RAM, with OCZ Vertex3 for programs and the OS, which I installed Windows 7 Ultimate 64 bit on this disc, Web Premium CS5, and Acrobat 9 Pro. In the BIOS, I did drive OCZ (OS), be the priority in the boot order.

    Later, after checking the system is functioning, I'll upgrade to Classic Collection CS5.5, so at this point, I named my 3 expansion packs to this title.


    WDC WD 2002FAEX-007BA0 - "Media Projects (D).
    WDC WD 1002FAEX-00Y9A0 - "Swap file, media Cache (E)"
    WDC WD 1002FAEX-00Y9A0 - 'previews, Exports (F).

    Then, because now they are simply names I gave on different drives, and I'm trying to change the paging file, switching happens in the disc of the operating system, in order to arrive in the disk that will be designated for media Cache (by the Prime Minister, subsequently).

    Thus, in the performance of Windows Options pane, I went to the Advanced tab, and under virtual memory, I hit 'change', uncheck automatically manage file size exchange for all readers, select drive E, which is the drive that is having the pagefile to happen there.

    And the question, assuming that I'm supposed to select custom, size can harm you, or / and others, please recommend the initial and maximum size?

    Alternatively, I have to select "system managed size"?

    Thanks :)

    Minimum,.

    Where you put the pagefile just does that much of difference, when you have 16 GB (as you do) and 24 GB still less so (as the user in the other thread).

    If I had your material, I put on E: and make static at 16 GB min and max 16GB (bad suggests same size).

    I don't spend more time reading or to dwell on "static pagefile" However unless you want to purely for fun.

    When you have enough RAM that your applications require no more you have, Windows must either ask for a large part of this file. Ten years when the RAM chips were much smaller and the cost per GB was more expensive that now, details of page file were indeed more important than they are today.

    Jim

  • Hi im trying to media share with my ps3 and have two devices see each other, but my wmp allow me to click the allow for the sony device what can I do

    Hi im trying to media share with my ps3 and have two devices see each other, but my wmp allow me to click the allow for the sony device what can I do

    Hello

    1 how long have you been faced with this problem?
    2. don't you make changes on the computer before this problem?

    Take a look at the following article that may help you.

    http://community.us.PlayStation.com/message/2371488

    I recommend you contact Sony support teamfor further assistance.

  • Hi, I have two decimal strings, each of them contains the numbers change over time. I want to plot them on the graph XY, a string for each axis. Can you show me how do?

    Hi, I have two decimal strings, each of them contains the numbers change over time. I want to plot them on the graph XY, a string for each axis. Can you show me how do?

    This is not a formula, but a constant simple schema of a table complex. Wire remains, then do a right click of the terminal of the initializer of the feedback node and select "create constant. That should do it.

  • How to fill two text fields based on a simple drop down list

    I'm trying to set up a form so that the two text fields will fill with a text by default (separate for each text field) at the same time.

    Here is a screenshot of the fields.

    Thus, for example, if I select Utah in the drop-down list in 'State', ' OH Fund Center "is automatically filled in with APWSWR4949 and"OH WBS"is automatically filled in with WR49.73.0003.

    I have a similar script for down text in form fields, but the script does not work.  I tried the following script:

    var v1 = this.getField("RecState").valueAsString;

    If (v1 == "Utah") event.value = APWSWR4949;

    else event.value = "";

    However, it would not AutoFill OH Fund Center area.  And I have no idea how complete both fields at the same time.

    Any help would be greatly appreciated.

    Thank you!

    Crystal

    Strings must be enclosed in quotation marks. So change your code:

    var v1 = this.getField("RecState").valueAsString;
    if (v1=="Utah") event.value = "APWSWR4949";
    else event.value = "";
    

    If it works, then you can use code similar to your other field.

  • Firefox continues to try to update each time I open the browser, and it then puts a message saying update failed. It does this on both of my computers. The most recent version, the other does not. How can I stop Firefox to do this?

    Firefox continues to try to update each time I open the browser, and it then puts a message saying update failed. It does this on both of my computers. We already have the latest version, the other does not. How can I stop Firefox to do this?

    If there are problems with the implementation at day then best is to download the full version and uninstall the currently installed version and remove the Firefox program folder to remove all remaining files.

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

    Uninstall your current version of Firefox, if possible.

    • Do NOT remove the data of a personal nature when you uninstall the current version or you lose your bookmarks and other data, because all profile files will be deleted.

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

    Your bookmarks and other profile data stored in the Firefox profile folder and will not be affected by a relocation, but make sure that you do not select delete data of a personal nature if you uninstall Firefox.

  • I have a HARD disk with two partitions and two copies of Win7 but at the start, I have the black and white screen asking me only one to choose. How do I rename them.

    I have a HARD disk with two partitions and two copies of Win7 but at the start, I have the black and white screen asking me only one to choose. How can I rename the Windows 7 and Windows 7 Test to start in one I want right here?

    I have a HARD disk with two partitions and two copies of Win7 but at the start, I have the black and white screen asking me only one to choose. How can I rename the Windows 7 and Windows 7 Test to start in one I want right here?

    Use BCDEDIT to SET the description that you are wanting to "Rename" and also to choose the displayorder, timeout and that you load by default...

    Maybe this old conversation will help you:
     http://www.SevenForums.com/general-discussion/20191-renaming-earlier-version-Windows-dual-boot.html

  • Just installed Mac OS Sierra on Mac Pro air. What I do need to update to Safari and other applications on the iPhone and I have the carpet?

    Just installed Mac OS Sierra on Mac Pro air.

    What I do need to update to Safari and other applications on the iPhone and I have the carpet?

    Unless otherwise indicated by an application or in the description of an update, no.

    (144880)

  • I have PHotoshop CS5 for PC. I have a new PC and want to install CS5 on this new PC. I also have the bridge. As I don't remember having bridge separately, I guess this is the part of CS5 and I automatically have deck when CS5 is installed on the new compu

    I have PHotoshop CS5 for PC. I have a new PC and want to install CS5 on this new PC. I also have the bridge. As I don't remember having bridge separately, I guess this is the part of CS5 and I automatically have deck when CS5 is installed on the new computer. Is this correct?

    Yes, that's correct. The bridge is only a separate download with CC (CC).

Maybe you are looking for

  • FireFox 29.0.1 is sluggest to inadmissible

    I am running Windows XP and two service Packs, and have maximum RAM. The hard drive has at least 60% of available space. I have several programs of malicious software bugs who reported that my system is clean. The hard drive has been defragmented. Wh

  • Stop the attachments for printing go to note pad.

    I have the Printer A940 connected to an old computer that my computer illiterate husband uses for games and internet.  My problem is I'll send an email from my computer operating system windows 7 to XP OS from windows of my husband and I want to prin

  • New user of eprinting

    I am a new user of eprinting and ike to better understand... my printer should be to use e print or can I put the end of the day to get impressions that I sent to him, and if so for how many days he will remember jobs. In addition, what would happen

  • Error of content protected after a few seconds of Live TV

    Original title: error display driver When in Media Center to watch live TV I get about 2 seconds of TV and then the picture freezes. If I try and do something else, I get this error message "driver display error video reading legacy does not support

  • Only photoshop will launch after installation.

    I can't get anything other than photoshop for the creative cloud App launch.I paid for the full suite of software for a year. Checking my account via Adobe confirms this. I uninstalled, reinstalled, disconnected signed in, restarted, rebooted and not