Help, signatureValidate() function doesn't work on hidden fields

I am trying to use the signatureValidate() function to check if any signature fields are signed. I am doing this because I need to have the signature fields lock the form manually so that a specific department can make changes after signatures have been applied (via a password field). I got the signature fields to lock the form and I can unlock everything with a password dialog. However, I am trying to add some code to the Change event so that if a user clears their signature and no other signatures have been applied, then the form will unlock. I wrote a script that checks the signature validation of each signature field to verify that all of them are unsigned, and it works perfectly until one of the signature fields becomes hidden. Then the code just doesn't work. Am I doing something wrong? Is there a way to check if a signature field (which may or may not be hidden) has been signed? Below is the code that I am using:
var engMgrSig = event.target.getField("form1[0].Subform1[0].signatures[0].Eng_Manager[0].eng_manager_sign ature[0]").signatureValidate();
var mfgMgrSig = event.target.getField("form1[0].Subform1[0].signatures[0].Mfg_Eng_Manager[0].mfg_engr_sig nature[0]").signatureValidate();
if (mfgMgrSig == 0 && engMgrSig == 0)  {       
     oTargetField = this.resolveNode("ECO_table");
          oTargetField.access = "open";
else {
     oTargetField = this.resolveNode("ECO_table");
          oTargetField.access = "readOnly";

The fields are supposed to be hidden when the form is opened, but can be "added" (made visible) by the user to allow for additional signatures. I use hidden fields rather than a simple Add Instance because of data binding issues.
I tried modifying the script to make the fields visible, fire the validation, and then hidden again, but for some reason it would either not work or it would make them visible after the first change and then hidden only if the field was changed again. Also, the code has to be able to recognize whether the fields were hidden before the code fired. If the were, they should be hidden afterwards. If they weren't then nothing needs to happen to them.
I have tried using an IF statement to run a validation on the fields based on which ones are visible, but that doesn't seem to work either. Here is an example:
   // this field is always visible
    var status = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Eng_Manager[0].eng_manager _signature[0]").signatureValidate();
    var engMgrSig2 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Eng_Manager2[0].eng_manage r_signature[0]").signatureValidate();
    var engMgrSig3 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Eng_Manager3[0].eng_manage r_signature[0]").signatureValidate();
    // this field is always visible
    var mfgMgrSig1 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Mfg_Eng_Manager[0].mfg_eng r_signature[0]").signatureValidate();
    var mfgMgrSig2 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Mfg_Eng_Manager2[0].mfg_en gr_signature2[0]").signatureValidate();
    var mfgMgrSig3 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Mfg_Eng_Manager3[0].mfg_en gr_signature3[0]").signatureValidate();
    //if all sig fields are visible
    if (this.resolveNode("signatures_REV1.Eng_Manager1").presence == "visible" && this.resolveNode("signatures_REV1.Eng_Manager3").presence == "visible" && this.resolveNode("signatures_REV1.Mfg_Eng_Manager2").presence == "visible" && this.resolveNode("signatures_REV1.Mfg_Eng_Manager3").presence == "visible") {
        if (status == 0 && mfgMgrSig1 == 0 && engMgrSig2 =0 && engMgrSig3 == 0 && mfgMgrSig2 == 0 && mfgMgrSig3 == 0)
            oTargetField = this.resolveNode("ECO_table");
                oTargetField.access = "open";           
    //if eng_mgr2 is visible
    if (this.resolveNode("form1.Subform1.signatures_REV1.Eng_Manager2").presence = "visible" && this.resolveNode("form1.Subform1.signatures_REV1.Eng_Manager3").presence = "hidden" && this.resolveNode("form1.Subform1.signatures_REV1.Mfg_Eng_Manager2").presence = "hidden" && this.resolveNode("form1.Subform1.signatures_REV1.Mfg_Eng_Manager3").presence = "hidden") {
       if (status == 0 && mfgMgrSig1 == 0 && engMgrSig2 =0)
            oTargetField = this.resolveNode("ECO_table");
                oTargetField.access = "open";

Similar Messages

  • The to_date function doesn't work ?

    Hello
    I don't know why my to_date function doesn't work on my pc.
    my statement is pretty complex so i just tried simple one
    select to_date('10-Jan-2006','dd-mon-yyyy') from dual;
    but even this one doesn't work it says it is invalid month
    howcome?
    is it because my Windows XP (not english version) doesn't recognise month Jan?
    i tried it another place it worked
    so is there any language pack / patch i need to install? ?
    so does OS matters?
    or how to fix this..please help me

    By default SQL Developer picks up it's language settings up from (on Windows) the Regional and Language Options. You can see what it has set by querying the NLS_SESSION_PARAMETERS view.
    Assuming you don't want to change to using DD-MM-YYYY formats for your months or change your regional settings on your PC, you need to tell SQL Developer which language you want, which you can do by adding the following lines to the file sqldeveloper\jdev\bin\sqldeveloper.conf:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=US

  • Tap function doesn't work, recovered files in bin etc

    Hi
    I'm using Mac Book Pro 13' - Mac OS 10.6.8
    1) Every time, I switched on my laptop, the one finger (tap to click) function doesn't work (although I have set it up).
    I have to go to 'systems preferences' to set it up again.
    2) Why is there 'Recovered files' in the trash bin each I switched on my laptop? How to get rid of it?
    3) Sometimes when I work using Word 2011, it takes a long time to save (the little icon will be swirling and swirling) and then I had to force quit and lose unsaved info. Why does this happen and how to avoid it from happening?
    Pls help me. I'm in the middle of my thesis submission and urgently need solutions to my Mac problems. Thanks!

    Reinstall Photoshop. That often fixes the issue.

  • Cannot print with a Samsung ML2160 printer (mono laser) and Pages. Print function doesn't work, only drag and drop in printer's queue

    Hello,
    I just purchased a Samsung ML2160 printer and it doesn't work with nor my Pages program, nor the Preview (to print PDF). No matter the way I tried, the Print function doesn't work and I cannot neither print or even enter the printer preferrences menu! My MacBook Pro has worked before with other printers, but now with the Samsung it doesn't work at all... Though, if I drag and drop a document, jpg, pdf in the printer queue, it prints just fine, but that method gives me absolutely no freedom to the printing... Could it be something from the Computer -> Machintosh HD -> Library -> Printers? Because a friend of mine was recently trying to save me some disk space, and therefore erasing part of the HP printer (to remove the previous printer I owned)...
    If anyone has any idea, that would be much appreciated
    Thank you in advance

    Do the sensible thing, as you say neither Preview nor Pages print, try other programs eg TextEdit. If none of them print then it is a System problem and very likely the printer drivers are AWOL or were never installed.
    Go to Samsung's website and download their software for the Mac:
    http://www.samsung.com/uk/consumer/print-solutions/print-solutions/mono-printers /ML-2160/XEU-support
    http://www.samsung.com/uk/support/model/ML-2160/XEU-downloads
    Peter

  • Since I got my new fixed disk my scan function doesn't work (HP Photosmart Premium All-in-One-Drucker - C309g), what should I do

    since I got my new fixed disk my scan function doesn't work (HP Photosmart Premium All-in-One-Drucker - C309g), what should I do

    Check whether you have the latest driver:
    Printer and Scanner software available for download:
    http://support.apple.com/kb/HT3669?viewlocale=en_US

  • I upgraded my 3 yr old iMac to Snow Leopard and now my HP C4150 Scanning function doesn't work (not recognized).  I downloaded updated Drivers from the HP site, but still no joy.  Any suggestions?

    I upgraded my 3 yr old iMac to Snow Leopard (OS X 10.6) and now my HP C4150 Scanning function doesn't work (not recognized).  I downloaded updated Drivers from the HP site and installed them, but still no joy.  Any suggestions?

    aspaceman,
    Perhaps I owe you an apology.   Having re-read that downloading from HP was unsuccessful I feel uncomfortable.  Can I suggest you update your 10.6 system (as noted in your profile) to 10.6.8 (if it is not already there) by using the
    Mac OS X 10.6.8 Update Combo v1.1 combo update plus any software updates that then apply.  

  • Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr. Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and theref

    Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr.
    Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and therefore unable to import to catalogue. Anyone has any idea how to make it work. Thanks a lot.

    Hi Elba,
    Thank you very much for your reply. Not sure, however, that we are talking about the same problem.
    I am trying to perform the same function in Lr that I have been doing for many years in the past and has only been a problem in the last few days (possibly coinciding with upgrading to Yosemite, trying to find out whether that is the problem)
    I am not intending to sync any files with Creative Cloud but only trying to use 'Synchronize Folder' function in Lr. Normally, I would right click on a particular folder in Lr catalogue and click on that function to check that the Lr Catalogue is perfectly matching my drives where the original photos are actually stored.
    The problem that I only started to encounter is that I can see the files on the actual drives but they do not appear in my Lr Catalogue and they are completely invisible to Lr. I simply can not get Lr to recognise them and then import them to catalogue.
    If for example, I export images to Ps and then save and close them, they do appear on my drive but are invisible to Lr and I can't get them imported into the catalogue. Import to folder also not producing any results as they are still invisible to Lr.
    Completely baffled by it. Any idea what could be the reason?
    Kind regards,
    Nik

  • Sort function doesn't work E12

    the sort function doesn't work half the time on Elements 12 organizer.

    What about FUNCTION CLOCK_INFormula
    RETURN NUMBER
    IS
        l_hours_worked  NUMBER;
        l_to_return     NUMBER;
    BEGIN
        l_hours_worked := TO_NUMBER(NVL(:ATX_CLOCK_IN,'0'));
        IF (MOD((l_hours_worked - 0.02),0.25) = 0) THEN
            l_to_return := TRUNC((l_hours_worked - 0.02) * 4) / 4;
        ELSE
            l_to_return := TRUNC((l_hours_worked + 0.23) * 4) / 4;
        END IF;
        RETURN (l_to_return);
    EXCEPTION  
        WHEN VALUE_ERROR THEN
            RAISE_APPLICATION_ERROR ( -20100
            ,   'ERROR, Cannot represent '
            ||  :ATX_CLOCK_IN
            ||  ' as a number.');
    END CLOCK_INFormula;?
    This function assumes :ATX_CLOCK_IN is always positive.
    T.

  • Preview function doesn't work in Cap2

    I just installed Captivate2. In the project I'm working on,
    the Preview function doesn't work. Or rather, it works
    sporadically... sometimes it does, and --- much more often -- it
    does not. What happens instead is, the "generating slides" message
    appears, and the progress-bar begins, but then suddenly the
    message/progress window disappears, WITHOUT generating the swf file
    and without doing any kind of preview. It happens on all the
    various options of the Preview function.
    It does work about one time in every ten attempts.
    This surely isn't acceptable... Anyone else encountering
    this???

    Hi UncleErnie
    By chance have you fiddled with the slide properties of any
    of the slides? One of the new options available in version 2 is to
    apply navigation options that cause slides to behave certain ways.
    So it stands to reason that if a slide was configured to jump to
    the end of the movie and the end of the movie option was to close
    the movie... Well, hopefully you see what I mean.
    Another question I would have is where are you editing your
    project? Are you possibly saving it to the company LAN and editing
    it using Captivate to make edits while in that location? If so,
    this is normally bad practice. Try moving the project locally and
    see if the issue resolves.
    Cheers... Rick

  • Ipad screen turns grey powering on and no apple logo appears! Help!  Reboot doesn't work.

    Help!  Reboot doesn't work.  Tried holding in the Sleep and Home buttons together for 10-15 secs to no avail!  I'm stuck in grey zone!

    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset   >  http://support.apple.com/kb/ht1430
    Restoring  >  http://support.apple.com/kb/HT1414
    If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • Why the italic function doesn't works in my Pages? I have already installed the actualization and it keeps not working...

    Why the italic function doesn't works in my Pages? I have already installed the actualization and it keeps not working...

    drag the other clip 'over' the main clip
    the 2nd clip has to be selected/yellow border...
    then you're prompted in the Inspector with the several options...

  • The inbox for Mac Mail lists every incoming message twice. When I delete a message it deleted both entries. I have tried the solution in "help" and it doesn't work. Any suggestions?

    The inbox for Mac Mail lists every incoming message twice. When I delete a message it deleted both entries. I have tried the solution in "help" and it doesn't work. Any suggestions?

    I am wondering if anyone is seeing my question? This is my first time and I am not sure if I am communicating correctly. If you are seeing the question above regading deleted messages reappearing please reply so I will at least know I am getting the message out.
    Thank you.

  • Snapshot function doesn't works in APEX 9.3.2, if the Aero Design is turned on

    Hello,
    the Snapshot function doesn't works in APEX 9.3.2, if the Aero Design is turned on. Once you click on tools > Snapshot > raster, the window where the displayed 3D model will be white.
    The same happens when  you click on the taskbar.
    There one other option than to turn off the Aero Design?
    System:
    OS: Windows 7 32bit
    APEX 9.3.2
    nvidia Quattro NVS160
    4GB RAM
    Dell Latitude E6400
    Thanks,
    Olli

    Hello,
    the Snapshot function doesn't works in APEX 9.3.2, if the Aero Design is turned on. Once you click on tools > Snapshot > raster, the window where the displayed 3D model will be white.
    The same happens when  you click on the taskbar.
    There one other option than to turn off the Aero Design?
    System:
    OS: Windows 7 32bit
    APEX 9.3.2
    nvidia Quattro NVS160
    4GB RAM
    Dell Latitude E6400
    Thanks,
    Olli

  • Scroll up function doesn't work at all.

    My Blackberry Bold9930 is having some issues and it is my second one this one is about two months old. First of all it has a dead pixel and I know you can not do anything about that. The other issue is with the track pad in some windows scroll up/down function doesn't work at all but left to right works. In some windows the scroll up/down function it will but others will not WHY? Windows that the function will not work that I know of are any pop up winds and the tap page in the browser some options pages etc. Why is this? Yes I have done restarts latest software I have done everything.

    Can you scroll using the touchscreen?
    Whenever my trackpad scroll "sticks" or seems to not work, it's because I have too many browser windows open, or too many apps open.  Which browser are you using?
    Try closing apps, closing windows, and leaving open only those you are actually using at the time.  A battery pull (quick pull in my case) usually cures a sluggish phone every time for me.

  • I just upgraded my iPhone to IOS 7.1 and not the speech to text function and the Siri function doesn't work. I tried rebooting but that didn't help

    I just upgraded my IPhone to IOS 7.1 and now the speech to text function and Siri doesn't work
    The microphone icon is white not grey
    And when I hit it it only stays on for a split second
    Not long enough to dictate a message
    It worked fine before upgrade
    And works on IPad which I also just upgraded
    Help??

    There are many, many threads on this forum about this issue. Do a forum search for "wi-fi greyed out" and see if any of the solutions therein will work for you. Best of luck.

Maybe you are looking for