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);

}

Tags: Acrobat

Similar Questions

  • How can I add fonts, which are not in the Adobe Typekit?

    I want to add (for example TheSans) fonts in InDesign - but they are not in the Adobe Typekit.

    How can I add them?

    I tried to add them to my pc and tried to add them directly into the folder "fonts" in my adobe InDesign folder. But they are not yet available in InDesign.

    Help, please!

    Policies are managed by your operating system. Use the control panel of the system on Windows or the Fontbook on Mac utility.

    Mylenium

  • 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

    }

  • Open a pdf file - how can I avoid that Windows Media Player assuming the default

    I download a PDF - and I want to store it in a file I left Adobe pdf, but I download and it is Windows Media player GUESS - it's a job for Windows - how to fix it-because Windows Media Player - is not all it is cracked up to for be and I want to select all the defaults for me - it would be better to uninstall Media Player - Media Monkey - I and the only program to download a PDF - IMnsHO is Adobe so I don't want to make my default to open and store - Adobe pdf
    My goal is to download and store in PDF - Noreen kitchen recipes - for this, I MUST have Adobe and me - the latest version - but when Windows Media plunges - it seems to cut Adobe
    Bad that - please help

    See:

    See also:

  • I can't find my lexmark x 6100 all-in one series on my comptuor, it does not indicate the default value

    I CAN'T FIND MY PRINTER ALL - IN - ONE - PRINTER SERIES.  It is SAID IT is THERE, BUT SAYS NOT SET AS DEFAULT. What does that mean?

    Hello

    -What is the exact error message you see when you try to print?
    -This work was fine before? If so, what are the changes in software/hardware on the computer?
    -What version of windows you have?

    If she says that a printer is not set by default, this means that there is no recognized printer or the printer that is there is not yet defined as a default value. Here are some steps that might be tempted to solve these problems.

    Method 1: Diagnose and automatically fix problems printing and printer
    http://support.Microsoft.com/mats/printing_problems/
    This see below mentioned articles that may help you in the matter of fixing.

    Method 2: Solve printer problems.
    You can use the link as a reference which may help you fixing the issue below.
    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows
    First of all, try to uninstall the printer drivers, then unplug the USB cable from the printer and then try to install drivers from the Brother Solutions and plugin site then the cable and then try to print.

    Method 3: Download the drivers from the Lexmark Web site
    You can also try to download the latest drivers for the printer from the lexmark support Web page and install.
    http://support.Lexmark.com/index?page=productSelection&channel=supportAndDownloads&locale=en&UserLocale=en_US

    I hope this information helps!

  • How can I get WMC to play sounds on the default device?

    I'm under WMC via HDMI to a SAMSUNG TV. Works very well, but to get a sound to play through the TV (which is in another room), change the playback by default windows to SAMSUNG device. I would like to have sound PC via the PC and only the WMC sounds via the TV.  My PC can split the sound, as with DEFAULT SAMSUNG I can go to Windows Media Player (WMP not WMC!) and the value of reading through the speakers. So has solved part of the problem, because music is now back on the PC and the TV via WMC are on TV. However, the SYSTEM SOUNDS stay with the DEFAULT device and are as such on the TV.

    The ultimate would be to have speakers as the default, and then be able to go in WMC and play through the HDMI connection on the SAMSUNG TV.  Otherwise, I need to be able to change the SOUND SYSTEM to the uncommon speakers.

    Whenever I set up through WMC speakers, he grabs SAMSUNG as the default device. If this isn't just a question of sequencing.

    Any ideas?

    Hi Tony,.

    Not sure if it is an option currently in Windows Media Center.

    However, you can post your request in the below given link and see if they can help you accomplish what you want.

    www.thegreenbutton.com/forums.

    In addition, you can leave you valuable suggestion in the below given link so that your request to change the options in the Media Center window is taken into consideration. http://mymfe.Microsoft.com/Windows%207/feedback.aspx?formid=195

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I tell SQL Developer to always display the datetime values in its entirety?

    It's really annoying. Developer SQL displays only the date part of datetime variables. Good, if I preface every query with 'ALTER SESSION SET NLS_DATE_FORMAT = "DD-MON-YYYY HH24:MI:SS";', it will force the datetime value to display, but that it a nuisance!

    How can we make SQL Developer ALWAYS display the full datetime value?

    SQLDeveloper it will display Date + 12:00:00 AM (depending on the format you chose). You will get no error. I published an article on this with screenshots, in my blog. If you are interested, you can read [here: | http://srinisboulevard.blogspot.com/2010/05/date-display-in-oraclesqldeveloper.html]

    HTH
    -rsrini

  • HPMINI 110-3030NR UPDATE BIOS. "Sum of CMOS is invalid health check", check if the bios setings can change. ' RESET CMOS < 502 > reset to the default values.

    I; m getting this message during the installation of the new bios. my touch pad is going crazy, then I was told by hp to update bios F 0.6 to F06 f. However when I turn the computer back lights are not flashing and I get this message "CMOS is invalid health check sum", check if the bios setings can change. reset to default values". HP doesn't seem to know what the problem is. can anyone help. It's a netbook new, purchased in the States but in Malaysia now and he cannot return as too costly. Help, please...

    Please repost your request to the experts in the Forum for HP laptopcomputer laptop HP.  Thank you! Carey Frisch

  • How can I copy and paste iCloud Notes on the site to iCloud for Word on Windows?

    I looked at the instructions on Apple's site on how to copy / paste of Notes iCloud in document programs, but I had no success. When I right click and drag to select what I want to copy, and then right-click, there is no option to 'Copy' (there are options to 'Copy image' and 'Save image', which do not translate in a Word document). I would like to consolidate some of the Notes I will be no more editing in the document files and you'd be acknowledging the possibility of a solution to this problem I encounter.

    The following works for me: select the text, and then use the Ctrl-C key combination (or the copy of the browsers Edit menu command). Then paste into Word.

  • Windows 2003 R2 how can I define a group do not have the right to remove the higher level folders on a shared drive or folder still have full rights on all subfolders and files?

    I have a client who had a user to remove a folder on a shared drive that has removed several files.  He does not want users to be able to delete the main folder, but he wants that they have all rights to their files/folders under the main folder.  How is that possible?

    Hi CNG13,

    Because the question you posted is related to Windows Server 2008 R2, it would be better suited in the Windows Technet Forum. Please visit the link below and the message your question in the TechNet Windows Server forum:

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    Concerning

    Jeremy K
    Microsoft Answers Support Engineer

  • How can I reload subject tabs? Not only the current tab.

    When you read a blog, I'll open all the interesting conversations. If I'm away from the computer for a few hours, I want to refresh all tabs with one click - page-by-page by page. Thank you.

    This can be done by right-clicking on a tab and selecting "reload all tabs".

  • How can I get a "Détails" view - as the default - when you download a file, in the dialog box "enter the name of the file to save on...» » ?

    When I get an attachment to an email (using Zimbra Imail, Firefox, Windows XP Pro) and I click on it and select 'Download', I get the dialog box "enter the name of the file to save on...» "(because I already have the option"always ask me where to save files. "But the view of default file always in a 'list '. At least recently. I don't remember it always does this. In any case, I want the value default to a 'Détails' view, in ascending order, I can find then things so much faster that way. (I often use the 'Update' tab to bring up, the latest version of a file.) I know that I can go to the Menu 'view' icon and select 'Détails', but whenever I go in a sub-folder in this dialog box, I have to do this all over again and it wastes a lot of time and attention.

    I did some research on the internet but have not found a way to solve this problem.

    Try this:

    a. open my documents, press the alt key.

    b. click on Tools. Click on folder options.

    c. click on the view tab and select Reset and check records.

  • How can I get my E-Drive to accept the blue ray discs?

    My HP computer won't accept Blu - ray disc even though I have Cyberlink Pro 15 software is there a fix for this problem?

    Look at the drive on the computer and check if it has a Blu - Ray logo image on it.  If this isn't the case, you will need to buy a new drive able to read Blu - ray.
  • How can I get an ASA 5540 return to the default configuration?

    Is there an easy way to re-apply the default that comes with a new ASA 5540? I would like to have the our ASA 5540 to return to its default to 192.168.1.1 inside the interface and act as a DHCP server, so I connect a PC to start the initial configuration using the ASDM.

    The ASA 5540 is running on asa723 - k8.bin.

    factory default setting

    http://www.Cisco.com/en/us/docs/security/ASA/asa72/command/reference/c4_72.html#wp2039866

    a simple "write erase/recharge" would also do the trick.

  • Do not change the default value, no results text

    Is there a possible way to change the text that is displayed if no result is found?
    It usually displays the applied filters.
    I have a filter applied to a column that contains a set of functions associated with it.

    Evaluate ('TO_CHAR(%1,%2)' as varchar (10), "< Table.Column >", "MON YYYY'")

    When there is any result in the repost OBIEE displays text and displays this text

    Evaluate ('TO_CHAR (%1, %2)' AS VARCHAR (10), the Date of bankruptcy Confirmation, 'LUN YYYY') is not null

    We want it to be displayed as 'Month and year' is not null

    Pls help

    Check no view results Clcik on view--> other views--> no. results

    http://total-bi.com/wp-content/uploads/2010/09/obiee_no_results_view.jpg

    Thank you
    Saichadn.v

    Published by: André Varanasi on October 25, 2010 16:41

Maybe you are looking for