Temporarily Disabling Validation

Hi,
I have a form which requires validation prior to it's final submission (fields must be populated, etc).
However, in order to pre-populate some of these fields, we also need to be able to submit the form to an external CRM to retrieve the FDF data for the form to be incorporated.
When doing this, the form is validated, and since there is no data yet, the submission fails and pre-population fails.
Is there any way to temporarily disable the validation of the form for the pre-population-submission, and then turn it back on following that?
The property xfa.host.validationsEnabled seems like a good candidate, but setting it to false doesn't seem to have any impact.
Cheers,
Martin

Thanks for providing me with that sample of your code. I can see what's happening but I don't know for sure why those fields you're making optional are remaining mandatory. It could be a timing issue (i.e. Acrobat's Object Model hasn't been updated with the mandatory to optional changes by the time you attempt to submit the form).
I can think of two possible solutions:
[Easiest of the two solutions] Since mandatory fields are flagged when they're null (when you haven't entered anything into them, which is the case on the Form:Ready event where you're executing the code which pre-submits the form to get the FDF data) and the problem you're getting is that Acrobat won't let you submit the form because it thinks some fields are mandatory, I would make all the fields optional and use Validation scripts like the one on the TextField. This way, you'll be able to pre-submit the form because all field values will be null initially and validations don't fail on null values because they aren't executed. This, however, will be a problem when the user submits the form via email because the email submit button will work even if one of the field's value is null (but now you want to make sure it's filled-in). To solve this problem, you would need to place a fake email submit button on the form (which is just a regular button), hide the real email submit button and put some validation code in its Click event. This validation code would verify that all fields contain valid data and aren't null. If this fails, you can show an error message and stop there. If all field values are acceptable, then you would execute the hidden email submit button's Click event in order to cause the form to be submitted via email:
EmailSubmitButton1.execEvent("click");
[My least-favored solution] You could try setting all fields to optional in the Form:Ready event and move your code to pre-submit and get the FDF data into an
invisible (not hidden or else Acrobat won't let you modify its properties at runtime) text field's Validate event. The Validate event on the invisible text field would have some guards to prevent it from executing every time a field's value changes on the form. When setting fields as optional, this would cue the execution of form validations (validation scripts on Validate events) and, if certain guards are properly set, would let your pre-submit code run. It's very complicated and difficult to explain but here's a thread to which I posted a similar solution (with a sample file) which uses this approach to import XML data into a form and display a summarized output in a table:
Grouping and Summation. See post #5 in that thread.
Let me know if you have any questions.
Stefan
Adobe Systems

Similar Messages

  • I need the Adobe Flash Player version 11.1.102.64plug in on my MacAir to view Ustream videos. Adobe message says the version is for Intel-based Macs with Safari; also says that I "may have to temporarily disable antivirus software. is it safe to download?

    I need the Adobe Flash Player version 11.1.102.64plug in on my MacAir to view Ustream videos. Adobe message says the version is for Intel-based Macs with Safari; also says that I "may have to temporarily disable antivirus software. is it safe to download?

    Your MacBook Air is an Intel-based system. To download the current version (11.2.202.228),  go to http://get.adobe.com/flashplayer/ and download it from there.
    If there is still a Flash issue, you can try the Google Chrome browser, which has the current Flash built into it, to see if it works any differently with the videos. It's available from https://www.google.com/chrome

  • Getting error "1013009 Administrator Has Temporarily Disabled User Commands

    Hi All,
    I am getting the error"1013009 Administrator Has Temporarily Disabled User Commands" while executing a report script in Essbase 11.1.1.3
    Appreciate any help..
    Thanks
    Mahesh

    Mahesh wrote:
    Hi All,
    I am getting the error"1013009 Administrator Has Temporarily Disabled User Commands" while executing a report script in Essbase 11.1.1.3
    Appreciate any help..
    Thanks
    Mahesh
    Possible Cause
    When a database is being restructured or any application/database on the server is being copied, you can get this message.
    or
    When a cube is being restructured, commands are restricted because the integrity of the cube has to be stable and no one is allowed to access it.
    or
    Copying an application requires that the Essbase security file be in read/write mode and therefore other applications are not accessible until the process is completed.
    Possible Solution
    In Application Settings, verify that the Allow Commands or Allow Updates options are not selected.
    If not selected select those..and try
    Regards,
    Prabhas
    Edited by: P on Apr 7, 2011 3:36 PM
    Edited by: P on Apr 7, 2011 3:38 PM

  • Is there a way to temporarily disable the iPod in the iPhone. I am trying to stream from an app and it gets overridden by the iPod initializing

    Is there a way to temporarily disable the iPod within my iPhone. I am trying to stream music using an app and a dock on my Sony AIR and the stream is over ridden by the iPod starting up.

    First of all, an idle threat is one that a person has no intention of carrying out. In the past 16 months that I have had this phone I have become less and less satisfied and found that it is like much of today's technology....over rated and under performing. The one thing that I have never been accused of is not wanting, or not giving help but when a company makes itself unavailable to resolve issues and leaves it to forums run by users helping users, it speaks more about the company than anything else they could do. As I said, I do not make idle threats and I did not threaten you in any way. Guess I'll call this topic done with as it is not and was not the intent to get a war started    

  • Spelling temporarily disabled???

    At the top of the InDesign forum page, one finds this:
    ANNOUNCEMENT: File Attachements temporarily disabled Show Details
    Would advise turning on spell checking...

    Thanks for the heads up.

  • Can I temporarily disable a domain in Exchange?

    A client has two separate companies each with a unique email domain. One has been moved to Exchange, the other is still on a GMail hosted domain while we prepare to cut them over. The company on GMail can send messages to the company on Exchange, but the
    company on Exchange cannot send email to the company on GMail. I take it that, because of the domain conflict, the Exchange server attempts to send these messages to the unused Exchange accounts instead of their GMail accounts.
    So my question is, is there a way we can temporarily disable the domain for the company that is using GMail until we are ready to change them over, so that emails sent to their domain will route externally to GMail instead of filling up the inboxes of unused
    accounts? Thanks for your help.

    Hi Brian,
    Thanks for your generous sharing. Have a nice day : )
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • How do I temporarily disable web filtering software? I'm getting a message: The problems you are experiencing are most likely the result of Web filtering software, firewalls, popup blockers or ad blocking software.

    I keep getting this message when trying to navigate in myverizon:
    The problems you are experiencing are most likely the result of Web filtering software, firewalls, popup blockers or ad blocking software.
    You may resolve this issue by visiting your browser's website and searching for instructions on temporarily disabling Web filtering software, firewalls, popup blockers, and/or ad blocking software. You may also use another computer.

    Which problems are you experiencing if you visit that website?
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Firefox > Preferences > Privacy > Cookies: "Show Cookies"

  • Is there a way to temporarily disable voice mail

    I am interested in knowing if I can temporarily disable the ability for someone to leave me voice mails?

    Contact your carrier, Voicemail is a carrier feature & some carriers require it & will not disable it. But, contact yours to see what their polices are.

  • Getting error "Administrator has temporarily disabled user commands"

    Hi ,
    I am getting the error "Administrator has temporarily disabled user commands" while executing the report script. I have tried creating a new script and getting the same error. We are on 11.1.1.3
    Appreciate any help..
    Regards,
    Mahesh

    It is worth having a read of the following article on "My Oracle Support" - Error "1013009 - Administrator Has Temporarily Disabled User Commands" [ID 1216053.1]
    It gives some examples of what can cause the issue and some bugs, ignore the 9.3.1 patch part.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Disabling validations if the first column is empty in an editable table

    Hi ,
    I'd want to disable validations if the first column in an editable table is empty - coz we'd assume that the user does not want to enter any data in the new row. How can this be done ?

    Hi Viren,
    It is correct that the first line for every Master Data is an empty row, if I am not wrong it derives from SEM settings.
    1.If you have some rows with 0CUST_SALES without any attribute it is because you are uploading this MAster Data with a source that does not consider compound objects: it is surely a Transactional DataSource (you do not upload Attributes). So for every Transactional record for which you do not upload also compound objects the system creates a record in your Master Data that is not correct.
    2. If you do not have Distr Channel update in Inventory Cube I think you must re-upload all your request starting from PSA. If you have deleted your PSA you can create a DataSource on your cube and feed once again your cube with its same data (built Update Rules that start from Cube and end in the same Cube). Make an upload of all your request and the delete all previous request.
    Ciao.
    Riccardo.

  • Temporarily disabling specific email accounts for phone shared by multiple users

    Hi all and thank-you in advance for any potential help!
    My company has a Blackberry "Style Flip" 9670 for our sales-people traveling in Northern Canada in the Yukon area.  This phone goes with whoever is going on that particular trip, however it has 5 different email accounts associated with it for the 3 users that share it.  
    I don't know if this is possible with a Blackberry or not, but we would love if there was an easy way to temporarily disable the email accounts that do not belong to the person carrying the phone at that point in time.
    The way it is now, we have User A (2 email accounts), User B (2 email accounts), and User C (1 email account) sharing this phone.  If 'User C' is presently up north and has the phone and sends an email to 'User A' and 'User B', the email is still received on the shared BB for both 'User A' & 'User B' and wastes a lot of precious bandwidth.  The main dilema is the two users with multiple accounts on that phone receive a ton of emails daily.  This means 'User C' may have 1 crucial email waiting to be received, but has to wait for all of 'User A' & 'User B's' emails to be received before getting the important email.
    Is there a way without deleting the accounts each time to turn certain email accounts on and off?  Any help is much appreciated!
    Colin

    Creating an email filter on the BlackBerry Smartphone
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Temporarily disable snap/smart guides

    I saw that there was an old post on this with an elaborate workaround, but I'm hoping there's something new in CS5.
    Is there a button that you can hold that will temporarily disable the snap to and smart guide features so that you can move an object freely? What I'm looking for is the same function as holding the ctrl key while working in InDesign. It seems like it would be really useful to be able to do that and I feel like I'm missing something obvious, so sorry if this is a silly question.

    Can someone please point me to WHERE in the AI CS5 help this is actually documented? I've spent the last 15 minutes scoring the hotkeys, and the "Selecting and arranging objects" portions of the help file and no dice. Is Adobe really just counting on the community to do its dirty work of documenting their software properly. This isn't an MMO folks, where it's "part of the game" to figure out how stuff is done. spend more time on your docs.
    Note: I'm not saying it ain't there - I'm saying if it is, it ain't logical or cross-referenced. And god forbid one should try to use your Search feature!

  • Temporarily disabling photostream

    I have a real problem with the photo stream when I am travelling. I often travel with two phones and two iPads (one phone being Android). As a result I tend to make a lot of use of personal hotspots so I only need to get one local SIM in whatever country I am in.
    However, the big problem is that if I switch on a hotspot the IOS devices see it as wifi and sync the photo stream. This often happens to me inadvertently and I suddenly discover all my data allowance used up. worst case if I happen to use international data roaming and there were 1000 photos, at $10 a MB that would cost something like $40,000 - an expensive mistake to make !!
    It is possible to disable photo stream but that has the effect of deleting all photos in the photo stream from that device, which I don't want to do. Is there any way to temporarily stop it syncing ?

    Power down your PC and clean the screen. Cleaning an LCD screen or monitor with the power on is not the wisest thing to do in terms of personal safety.
    If you still want to do it and completely accept the risk to yourself and your PC  just follow the steps listed below.
     Select Hardware and Sound in the Control panel. 
     Click on Pen and Touch and select the Touch tab. Uncheck "Use your finger as input device"
    When you have finished cleaning the screen, just return to the control panel and enable using your finger as an input device.
    Nrjoesam wrote:
    How do i temporarily disable the touchscreen facility on my 610-1030? I want to clean the screen without powering down
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Temporarily Disable Photo Stream

    I would like to bring to Apple's attention my need to temporarily disable Photo Stream om my mobile devices. I have used Photo Stream for a while and found it to be useful but a little unreliable and inconsistent, requiring resetting now and again. I've put up with this but the final straw was when I was using mobile broadband via WiFi while traveling internationally (I need to keep my own SIM in my phone but roaming data rates are very expensive so bought a local SIM and used it in a Mobile WiFi device) and taking lots of photos, and found my data cap exceeded very quickly due to Photo Stream activity. However, there is no temporary disable feature as switching it off deletes the folder on my phone and prevents later syncing of photos taken while Photo Stream is off. Even if I didn't want to sync all those holiday pics and switch it back on once I've finished traveling, more data will be wasted reloading photos already installed in the cloud, and it would make more sense for them not to be deleted from the phone in the first place! Or have I missed something?

    Because there is no "temporarily" turning Photo Stream off.

  • Temporarily disable Assert's

    Hey,
    I'm looking to disable the "Assert" dialog boxes that InDesign throws up in debug mode (as a temporary measure, there's too many of them appearing in the plugin that I'm debugging)...
    I've tried adding the following line to my Debug Settings.xml:
    In a similar fashion to how IntenseDebugging is disabled, but this just throws up an Assert dialog on startup saying:
    "Ignored the unrecognised element named BreakOnAssert"
    I've also tried adding "#undef ASSERT_ON" to the VCSettings.h, but this has had no effect. I would assume this is because the Assert's are being thrown internally by InDesign.
    Does somebody know how to disable these dialogs from appearing? I would be happy if I could just sink the errors to a log file, but I can't find a setting for this...
    Any help will be much appreciated.
    Sean

    I randomly came across a copy of my thread in another forum, in which a user responded with the answer. Its a shame that forum didn't push the response back here, it was sheer luck that I came across this post:
    http://objectmix.com/adobe-indesign/727612-temporarily-disable-asserts.html
    His response in full:
    >Try this in the plugin entrypoint...
    >
    >IPlugIn* GetPlugIn()
    >
    >{
    >
    >#ifdef _DEBUG
    >
    >gLogAsserts = kTrue;
    >
    >gBreakOnAssert = kFalse;
    >
    >#endif
    >
    >return &gPlugIn;
    >
    >}
    >
    >Be aware that this seems to be an application wide global so if you
    >have one plugin switching things on and another switching things off
    >then it's the last one that takes effect.
    >
    >The assert text gets put in the debug TRACE.
    >
    >Don't be tempted to leave asserts off permanently you're liable to
    >miss something you should be fixing.

Maybe you are looking for

  • Album Artwork Disappearing / Can't be updated.

    Hello All, I recently noticed that my songs have been slowly losing their artwork. Upon further inspection (and forum searching), I've found that this problem has happened to many people. For the songs with the missing album artwork, I cannot update

  • Need some help understanding VPNs on Windows 8.1

    I set up an incoming VPN connection on a home PC - myVPNserver - running Win 8.1 Pro (by going to Network Connections/ALT File/New Incoming Connection).  I enabled Port Forwarding on my NetGear Router to forward port 1723 to the internal IP Address o

  • Installation error when installing CS6 on Mac?

    I keep getting an installation error when I try to install CS6 on my Macbook Pro. It says "installer failed to initialize, this could be due to a missing file". It also shows troubleshooting tips. I have tried them and none of them work. I also tried

  • NEW COLOUMN NAME IN COLOUMN SET

    Hello, I am using a standard report of purchase ME2N i.e Purchasing document by purchase no. In change layout I want to add new field in column set. Thanks & regards Varun Bisaria

  • Why Photoshop PDF adverts look faded when get printed on newspaper?

    I've to export artwork into PDF, which is the only acceptable format  by newspaper publisher. What steps should be take to make sure that actual colors printed  in newspaper are close to colors in Photoshop? One of the newspaper publisher told me som