How can I validate a field of visibility of the control to a second field?

I have two text fields

Text field #1: an empty field where the user enters the text

Text field #2. a read-only field that is to become visible and display a message (via its default value) If a user has entered text in the #1 field

The validation script that I wrote has syntax error that I can't solve. Can someone take a look and see, 1 am I on the right track and 2. If so, what is wrong in this script?

Thanks in advance for any ideas on that.

if(Event.value == '')

{lbl_coupon request appliesFld.display = display.hidden standard}

}

else {}

request lbl_coupon standard appliesFld.display = display.visible

}

To access a field, you must use the getField method, as follows:

If (event.value == "")

{getField("lbl_coupon_request_standard_appliesFld").display = display.hidden

}

else {}

getField("lbl_coupon_request_standard_appliesFld").display = display.visible

}

Tags: Acrobat

Similar Questions

  • How can I remove icons for programs unibstalled of the control panel "programs and features"?

    Icons FRO uninstalled programs still appear in "Programs and features" of the control panel. How can I remove them?

    Hello


    Icon/program which you are referring?

    To work on the issue, refer to these methods.

    Method 1:

    Check out the following link to start your computer in safe mode
    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode
     
    Check if the problem persists in safe mode. Display the results.
     
    Restart the computer and boot to the desktop normally.

    Method 2:

    Run the fixit from following link to confirm if the program or the application has been uninstalled correctly.

    Solve problems with programs that cannot be installed or uninstalled
    http://support.Microsoft.com/mats/Program_Install_and_Uninstall
     
    See also:

    Check if it helps.
  • How can I validate a dropdown list NOT accepting the default value?

    I have a fillable form where I need the user to select their "number of employees". I've added several lines as their options in a drop-down list (1-10, 11-25, 26-50, 50 +). My question is "defult value" is set to "1-10" and people submit it without changing the correct value.

    I changed the value for default "-select -", but it allows them to always submit the form with the value entered.

    I guess I need some sort of validation script that will basically say - "If the value of this field is - select one - do not submit the form, but give an error that says 'Please select your number of employees' or something of the sort."

    Basically I just want what they choose something as opposed to just submit it with the default value.

    I looked everywhere and am not very good with JS.

    You can't have the default set to a possible real value. You need a value that must be selected.

    So for your sending script, you will need to test all your required fields to make sure that they are not at the default value.

    You make a variable that assumes that all required fields are filled and then check each field and if one still has the default value that you set your variable to 'false' and then when you have verified all of the fields that you test the value of the variable and only if she is true to send you the form.

    var bSumbit = ture; logical variable for test submission

    Test menu drop-down # of employees

    this.getField ("number of employees".). required = false; Disable the required property

    If (this.getField ("number of employees"). value == "-select one - ') {}

    Determine = false;

    this.getField ("number of employees".). required = true; Set the required property

    }

    {if (bSubmit)}

    your submit acation;

    } else {}

    App.Alert (' not all required fields completed", 0, 1);

    }

  • How can I validate the data in the control file?

    Consider that the SQLLoader reads the data entry of the path file and loads the data in the base tables up on top of the description specified in the control file.
    First, the form is created:

    create table sql_loader_1 (load_time date, digital Champ_1, Champ_2 varchar2 (10))
    Example of control file:
    load_1.CTL

    load data
    INFILE "load_1.dat", "str"\r\n"
    insert into table sql_loader_1
    (
    load_time sysdate,
    Champ_2 position (01:10).
    Champ_1 position(11:20)
    )
    Note that positions 11 to 20 are loaded in positions 1 to 10 in Champ_2 and Champ_1. The load_time field is filled with time current (sysdate) load.

    Here is the data. The name of the file (load_1.dat) had been specified with the statement for infile in the control file.

    load_1.dat

    0123456789abcdefghij
    **********##########
    foo bar
    This is a very long line
    and the next one is
    short

    declared the Champ_1 as a numeric data type, but the input data file contains the data "Sue"(position 11:20) so the sql loader adds not the record to the database instead the record is written in the bad file. But I want to validate the data of the "(position 11:20) is digital or not." How can I post this in the control file itself? If it is not possible, how can I validate it in the database? give me a sample code to explain this

    Here are two ideas.

    Idea 1: This control file will check to see if the data to be loaded in Champ_1 contains a number (including the negative and decimal).

    load data
    infile 'load_1.dat' "str '\r\n'"
    insert into table sql_loader_1
    (
    load_time sysdate,
    field_2 position( 1:10),
    field_1 position(11:20) "decode(trim(translate(:field_1,'-0123456789.',' ')),null,:field_1,-999)"
    ) 
    

    If Champ_1 is a number or null, it is passed through, as is. If there is no numeric characters (in addition to '-'and'.') a distinct value-999 will be inserted for you allow to load the rest of the columns and easy to see the lines had data that cannot be loaded in Champ_1. This idea has its flaws (a string like "... ("will always drain the .bad file)

    Idea 2: Load the data into a staging table first (or define an external table) where all columns are VARCHAR2. Then use SQL or PL/SQL to validate data in the staging table in your process to move the data into the table with the actual data types.

  • HOW CAN SOMEONE VALIDATE MICROSOFT WINDOWS ONLINE?

    How can someone validate windows genuine 7, 8, 10 online? / What is the secure link to validate windows genuine 7,8,10 online anytime?

    Visit our page what to look for on the Microsoft How to Tell website...

  • How can I validate my copy of Windows XP

    I am trying to create a copy of mssstool32 on a cd but it takes imapi v2. but it says that I have to validate my XP first.
    How can I validate it?

    http://Windows.Microsoft.com/en-us/Windows/help/genuine/what-is-validation

    Click Validate now on the right side.

  • How can I add a field to 2 digits which, to the entry '1' returns '01?

    How can I add a field to 2 digits which, to the entry '1' returns '01?

    You can use this code as the Custom Format script:

    If (event.value) event.value = util.printf ("% 2d", event.value);

    Re: Display of the numbers 1 to 9 as 01-09?

  • Help? How can I get my fields of tab?

    How can I get my fields of auto tab to the next field with Adobe Acrobat Pro DC?

    Hi hsimpson,

    Refer to the threads below, can be useful: -.

    Kind regards

    Nicos

  • How can I make a field on a form always take into account what is entered in a field somewhere earlier on the form

    How can I make a field on a form always take into account what is entered in a field somewhere earlier on the form. Basically an auto-fill of the same info

    Assign eponymous for the fields of the form.

  • How can I stop my songs to change to the next song before finishing (on AppleTV)?

    How can I stop my songs to change to the next song before they ended?

    I don't think that apple TV has a setting of crossfade. The music is being heard from iTunes? In iTunes, this is defined in the preferences > reading.

    TT2

  • When I send a text message and mobile data are off, it is not given, but I do not see this message for a few minutes. I can then refer using "send as a text message. How can I 'send as a text message' in the first place?

    When I send a text message and mobile data are off, it is not given, but I do not see this message for a few minutes. I can then refer using "send as a text message. How can I 'send as a text message' in the first place?

    Disable the iMessage?

  • How can I transfer pictures from my computer to the iphone 5 using icloud

    How can I transfer pictures from my computer to the iphone 5 using icloud

    Normally, you do not use iCloud for this, you use iTunes, as shown below, but you can use iCloud photo library if that's your preference.

    Keep your photos safely stored and updated on all your devices - Apple Support

  • How can I import Firefox bookmarks, now stored in the folder of the user on the same PC (new), in Firefox?

    How can I import Firefox bookmarks, now stored in the folder of the user on the same PC (new), in Firefox? I exported my old PC Firefox bookmarks in a folder [Windows 8] on my new PC.
    When I use the ease of importing from Firefox, it will only import a bookmark at a time - and then it inserts the bookmarks all the main pages on the site marked with a bookmark, not just the one I initially put bookmark. Also, it does not matter the information stored in the bookmark tag.

    Sure thing.

    1. Open the dialog box run by pressing the Windows key by pressing R
    2. Type of %appdata% in the immediate window and press ok
    3. Open the Mozilla folder
    4. Open the folder of Firefox
    5. Open the profiles folder
    6. Copy the folder that is located in this folder on a USB
    7. Install and run Firefox on the new computer
    8. Closing of Firefox
    9. Repeat steps 1 to 5 on the new computer
    10. Open the folder that you copied from your old computer
    11. Copy the contents of this folder into the folder inside the folder of the profile on the new computer
    12. Allow Windows to replace all records in doubles with those you are copying to the computer is prompted

    If you have problems with these instructions, or if you would like more information, feel free to comment below.

  • How can I turn on turn off (and on) the incognito in Version 28?

    How can I turn on turn off (and on) the incognito in Version 28? Seems to be permanently on the private browsing mode. I would like to be able to choose which mode on the fly without addons. All the help I've seen so far, is for older versions of Firefox. I use the 28 Version. Which seems to be the latest version from here.

    You can check that you are not running Firefox in permanent private browsing mode (don't remember history)?

    • Tools > Options > privacy > Firefox will be: "use the custom settings for history".
    • Uncheck the box: [] "always use the navigation mode private.

    You can check the target line in the shortcut to the Firefox desktop (right click: properties) to make sure that nothing is added after the path to the Firefox program.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • How can I change my att iphone 4S for the sprint network

    How can I change my att iphone 4S for the sprint network

    You can not.  AT & T phone is a GSM, CDMA Sprint.

    Sorry

Maybe you are looking for