Validation questions: How to turn it off, and how to check to see if a form is valid

Hi all,
I'm looking for some assistance with validation on a form / Form guide. Basically there are two things that we need to be able to do.
1) We need to be able to disable all the validation on a given form / Form Guide so that we can perform a submit operation to save all the data currently on the form.
2) We also need to be able to make the determination of whether or not a form is valid. The validity of the form would be passed with the form during the submit process.
Towards that end, I have been looking into the properties "validationsEnbled" and "disableAll". Neither one of which seem to do anything at all.
Any assistance you could provide would be greatly appreciated.
Thanks in Advance.
Steve

Okay here's a nice little function I wrote to turn off all the mandatory fields in your form.
function unMandatoryAll() {
    //makes all mandatory fields not mandatory anymore
    var oFormRoot = xfa.form.nodes.item(0);
    var arrMandatoryFieldNames = findMandatories(oFormRoot, new Array());
    for (var i=0; i<arrMandatoryFieldNames.length; i++) {
        var oCurrentField = xfa.resolveNode(arrMandatoryFieldNames[i]);
        oCurrentField.validate.nullTest = "disabled";
function findMandatories(oFormNode, arrMandatoryFieldNames) {
    //loops recursively through all fields in the given oFormNode and builds up a list of field names (actually SOM expressions)
    var oChildNodes = oFormNode.nodes;
    var nNumberOfChildNodes = oChildNodes.length;
    for (var i=0; i<nNumberOfChildNodes; i++) {
        var oCurrentNode = oChildNodes.item(i);
        var strNodeType = oCurrentNode.className;
        if (strNodeType == "subform")
            arrMandatoryFieldNames = findMandatories(oCurrentNode, arrMandatoryFieldNames);
        if ((strNodeType == "field") || (strNodeType == "exclGroup")) {
            if (oCurrentNode.validate.nullTest == "error")
                arrMandatoryFieldNames.push(oCurrentNode.somExpression);
    return arrMandatoryFieldNames;
Jared Langdon
http://www.jlangdon.ca

Similar Messages

  • I have a question. For the past week I have not been able to access my iTunes app it always kicks me out. I've turned it off and on and still nothing. I was wondering how can I get it to work or what should I do. Thank you

    I have a question. For the past week I have not been able to access my iTunes app it always kicks me out. I've turned it off and on and still nothing. I was wondering how can I get it to work or what should I do. Thank you

    You need a computer with iTunes and an internet connection
    Try:
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                                              

  • My Macbook Pro is frozen on the login page with a white screen and only my login picture. How do I fix this? I can't turn it off and I closed it and let it charge but it's still not working.

    My Macbook Pro is frozen on the login page with a white screen and only my login picture. How do I fix this? I can't turn it off and I closed it and let it charge but it's still not working. It's only 3 months old and was working perfectly fine 30min before this happened.

    Hello Kierasully,
    I would start your troubleshooting with the article below for issues of not being able to log in to your Mac. Start with booting up in to Safe Boot as well as resetting PRAM on your Mac. If that does not work, then verify the hard drive with booting to the Recover HD and go to Disk Utility to verify it.
    Mac OS X: Gray screen appears during startup
    http://support.apple.com/en-us/ts2570
    Regards,
    -Norm G. 

  • Safari and firefox 'cannot find the server' for every other page that i navigate to, unless I turn Wifi off and on. How do I fix this?

    Safari and firefox 'cannot find the server' for every other page that i navigate to, unless I turn Wifi off and on. Once i reconnect to the network, the page loads, but after loading a few more pages, the same thing happens all over again.
    This happens each and every time, on different Wifi networks, in different locations.  On the other hand, I don't ever encounter this problem when I tether my laptop to my mobile phone's 3g/2g network using Personal Hotspot. How do I fix this?

    Try this DNS server ...
    Open System Preferences > Network > Advanced > DNS
    Click + and type:
    208.67.222.222
    Click + again and do the same.
    208.67.220.220
    Click OK.
    Quit and relaunch both your browsers to test.
    If that doesn't help, try here >  iOS: Troubleshooting Wi-Fi networks and connections
    And here >  Wi-Fi: How to troubleshoot Wi-Fi connectivity

  • My MacBook Air won't stay off. I turn it off and it will wait anywhere from a few seconds to a few hours and turn itself back on. You can see how that can get annoying and I can't seem to solve the problem.

    I turn it off and it will wait anywhere from a few seconds to a few hours and turn itself back on. You can see how that can get annoying and I can't seem to solve the problem.

    There's a slight chance this might help:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    Otherwise it needs to be repaired.

  • Someone has hacked my things, how do I turn wifi off, and when will it be safe to go back on?

    Someone has hacked my things, how do I turn wifi off, and when will it be safe to go back on? Also, do I need to reset everything? I have already changed passwords, covered my webcam, etc. Will they still have access to my computer?

    Could you explain what you mean by 'Someone has hacked my things'?
    What Mac do you have, with what version of OS X?
    What security do you have on your wi-fi?

  • HT4528 the camera on my iPhone 4s color is all weird and the shutter keeps opening and closing trying to fix its self but cant.  I rest my phone and turned it off and back on again.. how do i fix this. I only had the phone maybe six months.

    The camera on my iPhon 4s is not working correctly.  It is colored all strange and the shutter keeps opening and closing trying to fix the problem but it cant.  I have already reset my phone and turned it off and on again.  How do I fix this??

    If resetting the camera app doesn't work you can try restoring your iPhone's software. The entire process takes about an hour to an hour and a half. Make sure you do a backup. Make sure you do a backup.
    Backup:
    http://support.apple.com/kb/HT1766
    Restore:
    http://support.apple.com/kb/HT1414

  • In Yosemite, I can;t operate for more than a few minutes with Keychain or Safari asking for my login password.  How can I turn this off, and still be safe?

    Using Yosemite, I an't seem to work for more than a few minutes without being asked for my login password.  Keychain wants it, Safari wants it, iCloud wants it..the list goes on.  Then in 10 minutes or so, they all want it again.  Passwords are being stored by Safari as usual, but new tabs or pages bring up the request.  How can I turn this off and still have protection?

    Tutorial: Resolving Keychain Issues
    If you can't access your keychain, or forget your password If you can't get into your keychain file because you've forgotten your password or the keychain file appears to be corrupt, there are a couple of options.
    First, if you've forgotten your password, you can use the "Keychain First Aid" utility to make the keychain password the same as the login password. This can be accomplished via the following process:
      1. Open Keychain Access (located in Applications/Utilities)
      2. Go to the "Keychain Access" menu and select "Preferences"
      3. Click the "First Aid" tab
      4. Make sure the "Synchronize login keychain password" box is checked
      5. Close the Preferences window
      6. Go to the "Keychain Access" menu and select "Keychain First Aid"
      7. Enter your username and password
      8. Click the "Repair" button
    The second option is to completely delete your keychain then recreate it. This routine is useful if your keychain appears to be corrupt or otherwise inaccessible. This can be accomplished as follows:
      1. Launch Keychain Access (located in Applications/Utilities)
      2. Click "Show Keychains" in the lower-left corner of the window.
      3. Select the problematic keychain from the left-hand pane.
      4. Navigate to the "File" menu and select "Delete Keychain '(name of keychain)'"
      5. Check all options for deletion and press "OK"
      6. Create a new keychain by going to the "File" menu, then "New" and selecting
          "New Keychain"
      7. You can now make this keychain your default if you desire by selecting it, then
          going to the "File" menu and selecting "Make '(name of keychain)' Default"
    Login as root and perform repair In some cases, problems with keychains can only be resolved when logged in as the root user.
    First, you want to enable the root user:
      1. OS X Mountain Lion: Enable and disable the root user
      2. OS X Lion: Enable and disable the root user
      3. Mac OS X 10.6: Enabling the root user
      4. Enabling and using the "root" user in Mac OS X
    After enabling the root user, and logging in under this account, again open Keychain Access. First attempt repairs using Keychain First Aid, and failing that, delete then recreate the keychain as described above while logged in as root.
    Persistently asked for stored passwords If you are persistently asked for passwords in various applications that you have specified should be remembered in a keychain, your "login" keychain may not be active for one reason or another.
    Navigate to ~/Library/Keychains/ (this is the Library folder inside your user's home folder). Find the file named "login.keychain" and double-click it.
    Failing that, select the "login" keychain within the Keychain Access application and make sure it is the default keychain by going to the "File" menu and selecting "Make 'Login' Default"
    Turn off Keychain synchronization in applications having problems If specific applications are experiencing issues when accessing password-protected material, the Keychain may be to blame.
    The above comes from an article published on MacFixit.com.

  • I have my contacts synced with icloud and exchange. I want all of them to be synced via icloud, I have tried turning contacts off and then clicking merge but that doesn't copy all of them over. How do I transfer all contacts onto my phone and then icloud?

    I have my contacts synced with icloud and exchange. I want all of them to be synced via icloud, I have tried turning contacts off and then clicking merge but that doesn't copy all of them over. How do I transfer all contacts onto my phone and then icloud?

    Welcome to the Apple Community.
    If you can't do this on a computer, which would be much easier using drag and drop, then you will need to share the contacts with yourself in order to move them to the iCloud account.

  • I know how to turn bluetooth off and on but my mac book pro asks me to turn bluetooth power on. How do I do this?

    I know how to turn bluetooth off and on but my mac book pro asks me to turn bluetooth power on. How do I do this?

    Are you recovering Lion or later Time Machine backup with a Lion or later machine?
    If you are, then use this article:
    http://support.apple.com/kb/HT4718
    Other Time Machine restore options are here:
    http://support.apple.com/kb/ht1427
    Note, if recovering from a PowerPC Mac (iMac G5, PowerMac, Mac Mini G4, iBook, Powerbook), this tip is important:
    http://discussions.apple.com/docs/DOC-2295
    Otherwise use the recommended restore option with whatever backup software you used initially.

  • So someone took my ipod 4g and who ever took it turned it off and i dont know how to find it and i really want it back, what should i do?

    so someone took my ipod 4g and who ever took it turned it off and i dont know how to find it and i really want it back, what should i do?

    lost/stolen                                      
    No app on the iPod is required.                            
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected, on a computer browser go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • HT3964 I just opened up my MacBook Pro after a few days of not using it and it was frozen. I turned it off and back on and all I see is a white screen, there was a file with a question mark flashing for a bit but I can't do anything, please help me!!

    I just opened up my MacBook Pro after a few days of not using it and it was frozen. I turned it off and back on and all I see is a white screen, there was a file with a question mark flashing for a bit but I can't do anything, please help me!!

    Jerricayoung,
    you have a 13-inch Mid 2012 MacBook Pro. It’s modern enough that it supports booting into Recovery mode. To do so, hold down a Command key and the R key as you start up. It should eventually show a Mac OS X Utilities menu. Select Disk Utility from that menu; when the Disk Utility window appears, select the bootable volume from the left-hand side of the window. (It’s typically called “Macintosh HD”.) When the volume is selected, some buttons will appear on the right-hand side. If it’s not greyed out, press the Verify Disk button; if it is greyed out, or if it reports on errors that it found, press the Repair Disk button. Once the verification/repair is completed, exit Disk Utility and select Restart from the Apple menu; that will restart your MacBook Pro in its normal mode. With luck, that will be enough to get you to your normal login screen, rather than the white screen.

  • My backlight will not turn off automatically.  I have to manually turn it off and forget to sometimes and that drains my battery.  Does anyone know how to make it turn of automatically after a few seconds?

    My backlight will not turn off automatically.  I have to manually turn it off and forget to sometimes and that drains my battery.  Does anyone know how to make it turn of automatically after a few seconds?

    Use the Settings app.
    Settings > General > Auto Lock
    Is Auto Lock set to Never? Change it to less time.

  • My iPhone 5s won't charge, unless I plug into the charger and turn it off and back on again? How do I fix this problem?

    My iPhone 5s won't charge, unless I plug into the charger and turn it off and back on again? How do I fix this problem?

    Try cleaning out the phone's connector.  Else take it in to Apple, you have a 1 year warranty.

  • My iphone 5s was stolen and i gps d it and found where it was but they turned it off and denied it and i googled how to open iphone 5s without passcode and a youtube video showed how, so now i am out of a phone that i just paid 300 dollars for becaus

    my iphone 5s was stolen and i gps d it and found where it was but they turned it off and denied it and i googled how to open iphone 5s without passcode and a youtube video showed how, so now i am out of a phone that i just paid 300 dollars for because i dropped my last 5s and the glass shattered and i didnt have any insurance. so now it seems like i am out again. i was sold on the fact that the fingerprint sensor would stop that from happening but they can just reset the phone and have it as theirs new. is there anything i can do to get my phone back.

    If you set up your phone correctly, it is still protected by the Activation Lock and can be used without knowing your AppleID and password.
    Here are some more things about that:
    What if your iOS device is off or offline?
    If your missing device is off or offline, you can still put it in Lost Mode, lock it, or remotely erase it. The next time your device is online, these actions will take effect. If you remove the device from your account while it's offline, any pending actions for the device will be cancelled.
    How do you turn off or cancel Lost Mode?
    You can turn off Lost Mode by entering the passcode on your device. You can also turn off Lost Mode on iCloud.com or from the Find My iPhone app.
    copied from If your iPhone, iPad, or iPod touch is lost or stolen

Maybe you are looking for

  • Panel size inconsistency

    Hi all. I am fairly new to making my panels native doc-able panels using Eclipse with Extension Builder. Up till now, I have been creating floating panels just using ScriptUI. I am pretty happy with the new process, and its good forcing me to brush u

  • Apple ID changing password trouble with getting email

    so, my itunes has been getting something popping up on it about not working and to try later or something so it made me a little nervous so i wanted to change my password. I went to change my password but couldnt remember my security questions so i h

  • Need help with an Error

    Hello, im using this class to query a table from my database. everything is ok, but when i write the closing } of the Main class the Program gives an error. In the main class ive wrote here at the bottom, the main class has no ending } . Now only the

  • Translate date characters from Analyzer 6.5 DB2 database

    Is anyone knows or experienced how to translate the 13 digits date to a regular date/time format from the DB2 7.2 Personal Enterprise Edition database for Analyzer 6.5? This 13 digits date (Create Date & Last Modified Date) are reside in DB2 database

  • No stereo sound on my iPad2?

    No stereo sound on my iPad2