I want a submit button which first clicked once lock fields and if the button is clicked again then it ask password unlock all fields

Sir / Madam,.

I want to do a mailing that affects when you click on would lock all fields so that no change is possible... and if user clicks on the button submit then again he should ask password to unlock all the fields for editing... and again user can edit the required fields.

Hope you got what I'm trying to say.

I guess you don't know what an anonymous JavaScript function, and this is why you set one inside the "if" statement Such an anonymous function allows you to create a private field of the variables, which would otherwise eventually be global. If you want to use this mechanism, you can shoot on the definition of function to the next level. In addition, your code defined the fields of writing, regardless of the entered password. I moved a few small things around, and it works for me:

(function() {
    var isReadOnly = this.getField("Text4").readonly;
    if (isReadOnly) {
        // Get one of the fields in the group
        var f = getField("Text4");

        // Determine new readonly state, which
        // is the opposite of the current state
        var readonly = !f.readonly;

        var readonly_desc = readonly ? "deactivate" : "activate";

        // Ask user for password
        var resp = app.response({
            cQuestion: "To " + readonly_desc + " the fields, enter the password:",
            cTitle: "Enter password",
            bPassword: true,
            cLabel: "Password"
        });

        switch (resp) {
            case "123": // Your password goes here
                for (var i = 0; i < this.numFields; i++) {
                    var fieldName = this.getNthFieldName(i);
                    if (fieldName != event.target.name) {
                        this.getField(fieldName).readonly = false;
                    }
                }
                app.alert("The fields are now " + readonly_desc + "d.", 3);
                break;

            case null: // User pressed Cancel button
                break;

            default: // Incorrect password
                app.alert("Incorrect password.", 1);
                break;
        }
    } else {
        for (var i = 0; i < this.numFields; i++) {
            var fieldName = this.getNthFieldName(i);
            if (fieldName != event.target.name) {
                this.getField(fieldName).readonly = true;
            }
        }
    }

})();

Tags: Acrobat

Similar Questions

  • I want to allocate more disk space for my c drive and remove the drive d

    I want to allocate more disk space for my c drive and remove the drive d. I 26 gig on the d drive and only using less than 1% of it, and I have the same amount on c, but only 39% c left. How to do this.

    LEM explained the problems that you tried to resize partitions on the same drive.

    You can create more free space in C in carrying one of the measures suggested below.

    The default allocation for the restoration of the system is 12% on your C partition is more generous. I have them would be reduced by 700 MB. Make my computer right click on your icon, and select System Restore. Place the cursor on your C drive select settings but this time find the slider and drag it to the left until it shows 700 MB and output. When you get to the settings screen, click on apply and OK and leave.

    A flaw that might be useless which is for temporary internet files, especially if you keep no copies on the disk offline. Setting the default value is 3% of the walk. Depending on your attitude to copies offline, you could bring it to 1% or 2%. In Internet Explorer, select Tools, Internet Options, general, temporary Internet files, settings to make the change. At the same time, look at the number of days, the story stands.

    The default allocation for the basket is 10% of the disk. Change to 5%, which should be enough. In Windows Explorer hover over your Recycle Bin, right click and select Properties, Global and move the slider from 10% to 5%. However, try to let you become so complete that if it is complete and you delete a file by mistake it will bypass the Recycle Bin and have gone forever.

    You can generate more space in the system (usually C) the folder move partition.

    For temporary Internet files, select Start, Control Panel, Internet Options, temporary Internet files. Settings and move back.

    To move the storage folder Outlook Express select from Outlook Express Tools, Options, maintenance, store folder and change.  http://www.tomsterdam.com/insideoe/files/store.htm.

    How to change the default location of the My Documents folder: http://support.microsoft.com/?id=310147

    You may also change the default locations of the files in Microsoft Office programs when you choose to move the My Documents folder. For Word, go to tools, Options, file locations, highlight the Documents, click on edit and change the path. For Excel, go to tools, Options, general, and change the default path.

    My Documents is one of the many the created system of special folders, which include my pictures, and my music. It can be more easily modified using TweakUi. Download TweakUI, one of MS powertoys, here: http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp.

    In TweakUi, select workstation, special folders. You can scroll down to see the full list of special folders to the left of the button to change the location.

    You can move programs, but to do this, you must uninstall and reinstall the program. With Word and Excel, the existing data files are not affected by reinstalling. Most of the work in question is going to be reinstall all updates issued after those that are included with the original Microsoft CD / DVD.

    If your drive is formatted as NTFS another potential gain arises with your operating system on your C drive. In the Windows directory of your C partition you will some uninstall files in your Windows folder in general: $NtServicePackUninstall$ and $NtUninstallKB282010$ etc. These files can be compressed or not compressed. If compressed text the name of the folder appears in blue. If these files are not compressed you can compress. Right-click on each folder and select Properties, general, advanced, and check the box before you compress contents to save disk space. On the general tab, you can see the winning amount by deducting the size on disk size. File compression is only an option on an NTFS formatted disk partition / partition.

    I'd be interested to see a report of Disk Defragmenter. Open Disk Defragmenter and click analysis. Select view report, and then click Save as and save. Now find VolumeC.txt in your My Documents folder. Open the file, place the cursor anywhere in the file, select Edition, select all to select all the text and copy and paste into the body of your message. To do this, before you run Disk Defragmenter because it is more informative.

    Select Start, all programs, accessories, System Tools, cleaning disk to emptying your trash, delete temporary Internet files and other selected options. I recommend also you click Other Options, System Restore and delete all but the last system restore point. Run Disk Defragmenter

    Using the system restore option is most appropriate when your system is slow and you need to increase the free disk space on your C partition. If you have errors that could be solved by using the system restore to your system settings back to before that the error occurred initially, do not use this option.

    Select Start, Control Panel, Folder Options, view, advanced settings and check the box in front of "show files and folders" and 'Hide protected operating system files' are unchecked. You may need to scroll down to see the second element. You should also make sure that the box before "Hide extensions of known file types" is not checked. Notwithstanding, there are some files that are hidden. Again, you will not see the System Volume Information folder.

  • 64 bit sytem with vista home premium which has been randomly locking up and freezing. The error is event 6008.

    I have an ACER aspire x 3200 64 bit sytem with vista home premium which has been randomly locking up and freezing. The only mistakes were event 6008 with a description of the stop system prior to (time) on (date) was not planned.
    When these errors originally occurred, I returned the system to acer and they installed a new hard drive. After updating the vista system blockages continue 30 times over a period of 3 months. Acer sent me a new disk image on 3 disks that I have installed and updated on 11 October. There is no blocking until the 10/27, 10/28, and for the 3rd time today.
    The closed unexpected gives a blue screen if I use the locking system to the top. I have to hold the power to restart when the system crashes.
    Can someone help me solve this problem?

    Do you know when this problem started?  Try a system restore to a point in time BEFORE the problem started.  Here is the procedure: http://www.howtogeek.com/howto/windows-vista/using-windows-vista-system-restore/.  Don't forget to check the box to show more than 5 days of restore points.  If the first attempt fails, then try an earlier point or two.  NOTE: You will need to re - install any software and updates that you have installed between now and the restore point, but you can use Windows Update for updates.  But I guess it's too late for this for so long that there are probably no so old restore points.

    If the system restore does not work, do a startup repair, boot from the disk Installation of Windows Vista genuine (or one that you can borrow from someone) or a recovery disc.  Here is the procedure: http://www.bleepingcomputer.com/tutorials/tutorial148.html.  You may need to change the BIOS to do first the CD drive in the boot sequence to boot from the CD.  To do this, hold the screen that tells you the key F to push to enter the menu start or start of installation.  Push it quickly. Make the changes, save your work and exit.  Put the CD in the drive and reboot.  When you are prompted, press any key to boot from the CD.

    If you do not have a floppy disk, you can make a bootable recovery disk by using http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/ with burning software like: http://www.snapfiles.com/get/active-isoburner.html and, of course, a blank CD.

    If this does not work, try to start in safe mode (repeatedly hit F8 key so that the start and go in safe mode with networking).  Then we will check some of your system files:

    Go to start / all programs / accessories / command prompt and right click on command prompt, and then click Run as administrator.

    Type sfc/scannow, go and let it run.  It will scan and try to correct some of your system files.  If all goes well he comes complete with no corruption, it could not repair (if it has these post of corruption here or try to analyze it to find the problem or files using http://support.microsoft.com/kb/928228.

    While in the command prompt, type chkdsk /f /r and enter and let it run.  It will scan and try to solve any corruption or bad sectors on your hard drive and remove especially as a cause.

    If this does not work, then please post repetitive errors in Event Viewer on the stop (Start / Control Panel / administrative tools / Event Viewer).  Here's how to use Event Viewer: http://www.bleepingcomputer.com/forums/topic40108.html.  From what I understand, there is none of the events (which surprises me because a freeze should certainly generate an error event).

    If this does not work, you will need to do a repair/system upgrade using the Windows Vista Installation disc authentic (you own or that you can borrow from someone).  Here is the procedure: http://www.vistax64.com/tutorials/88236-repair-install-vista.html as well as the upgrade from an earlier version of the Windows section of the following: http://support.microsoft.com/kb/918884.  Although this will not affect your data, settings or programs, you should always back up your data before you start just be on the safe side. If other procedures do not work, it is almost certain to work (but you NEED a disc).  You can have a lot of updates to re - install (including all you need to remove service packs).  If the version on system with SP1 or SP2 preinstalled cane and the disc is an earlier version, then you will need to do a slipstream drive as follows: http://www.vistax64.com/tutorials/151606-vista-sp1-slipstream-installation-dvd.html.

    I hope one of these procedures can solve your problem.  If this isn't the case, after return and we will try something else.  Return message anyway so we know how it turns out.

    Good luck!

    Lorien - a - MCSE/MCSA/network + / A +.

  • I want to exchange a larger HDD (Mac Pro early 2009) and at the same time improve Cougar to El Capitan.

    I want to exchange a larger HDD (Mac Pro early 2009) and at the same time improve Cougar to El Capitan. What is the best way to do it?

    I think the best would be a new installation of El Capitan on the new HD and reinstall the applications on the new HD, and then migrate the data and setting for the previous version of OSX. In this way the least unused stuff enters the new OSX version

  • Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    3177349 wrote:

    Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    It depends only on the BONE of the application server.

    If your OS development and OS is different, you have to compile the fmb in the server again.

    Hamid

  • First Max value to find and add the previous channel values

    Hello, I would like to be able to parse a string to find the first maxima (inflection point) and then add channel so that all the values are equal to the maximum

    the index where the maximum was found.

    To explain better, in the attachment, the original channel's Ych and the channel in the annex is Ych_appended.

    Any help would be appreciated.

    Thank you

    The feature you're looking for better using the SCRIPT of DIAdem.

    First of all, you can find the first maximum in a channel by using the ChnPeakFind function. The document below explains how to use this:

    http://digital.NI.com/public.nsf/allkb/DD069B95FB938C4286256FC8006A09CD?OpenDocument

    The channels that you specify in the function call will contain the value x and y of the first maxima. Then, you will just need to:

    1. Copy the original using ChnCopy channel.

    2. Find the index of the value to your channel original x axis at which the peak occurs.

    3. Browse the newly copied channels, replacing the inside with peak values until you reach the index of the value found in step 2.

    I hope this helps.

  • First 12 recognize Canon ZR960 and allow the capture

    First 12 items does not recognize my Canon ZR 960 camcorder so I can capture video from mini tape on my Mac computer

    GIR

    Can you make your firewire DV capture with success using iMovie?

    Which should, among other things, examine the integrity of the firewire cable.

    RTA

  • How can I determine which is selected in a report and form the appication

    I have the need to choose what is selected, for example the primary key that is selected in the first form.
    Thank you
    Doug

    Hello

    I think this can be done using a "sweater in the region." Take a look on: [http://apex.oracle.com/pls/otn/f?p=48982:1] sorting on the second page won't work, but otherwise you get a copy of the report from page 1 exactly as the user he had before clicking on the link for an article.

    Andy

  • which means a script runtime error and how to stop it happening again?

    Almost every page I have put on, games for most sites, an error message asking me if I want to continue running scripts on this page. How can I prevent this happening constantly?

    What web browser do you use?

    Make sure that the following extensions like JAVA and Flash are updated and ensure that updates for your web browser have been installed.

  • Impossible to activate and deactivate the button "submit" all keeping the condition on the output parameter

    Hello

    I try to enable and disable the submit button based on the status of output parameter that I call in lov.

    Concerning

    Asia.


    Hi AJ,.

    Thanks for the reply

    I tried the method above, but it does not work.

    I am trying to enable and disable the submit button based on two input parameters and an output parameter.

    Based on two input parameters, I'm able to get the output parameter, and if the output parameter is "S" then iam allowing the submit button.

    on the other

    disable the submit button.

    Here is my code:

    IAM calling this co

    OASubmitButtonBean submitbean = (OASubmitButtonBean) webBean.findChildRecursive ("Submit");

    String crreason = pageContext.getParameter ("Reason")';

    Invnum string = pageContext.getParameter ("InvoiceNumber");

    String status = "";

    String ValidationDesc ="";

    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl) getTransaction ();

    Try

    {

    String sql_qry = "BEGIN WEPIS_CM_DM_PKG. WEPIS_CM_RAISE_VALIDATION (P_CM_REASON =>: 1, P_INVOICE =>: 2, P_VALDIDATION_S "+)

    "(TS =>: 3, P_VALDIDATION_DESC =>: 4); END; « ;

    OracleCallableStatement sqlstmt = (OracleCallableStatement) oadbtransactionimpl.createCallableStatement (sql_qry,-1);

    sqlstmt.setString(1,crreason);

    sqlstmt.setString(2,invnum);

    sqlstmt.registerOutParameter(3,Types.CHAR);

    sqlstmt.registerOutParameter(4,Types.VARCHAR);

    sqlstmt. Execute();

    status = sqlstmt.getString (3);

    ValidationDesc = sqlstmt.getString (4);

    If ("S".equals (status))

    {

    submitbean.setRendered (true);

    }

    on the other

    {

    submitbean.setRendered (false);

    }

    }

    catch (SQLException sqlexception)

    {

    throw OAException.wrapperException (sqlexception);

    }

    catch (System.Exception Exception)

    {

    throw OAException.wrapperException (exception);

    }

    Concerning

    S.Asia

  • my windows xp msus keeps wanting to install the same four (4) updates all the time.it said the updates were installed, but when I check the updates will appear again the same 4 updates.

    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP x 86 (KB2729450)

    Download size: 0 KB 0 minutes (downloaded; ready to install)
    A security issue has been identified that could allow an unauthenticated remote attacker to compromise your system and take control. You can protect your system by installing this update from Microsoft. After you install this update, you may have to restart your system.  Details...

    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP x 86 (KB2656369)

    Download size: 0 KB 0 minutes (downloaded; ready to install)
    A security issue has been identified that could allow an authenticated remote attacker to compromise your system and take control. You can protect your system by installing this update from Microsoft. After you install this update, you may have to restart your system.  Details...

    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP x 86 (KB2686828)

    Download size: 0 KB 0 minutes (downloaded; ready to install)
    A security issue has been identified that could allow an unauthenticated remote attacker to compromise your system and take control. You can protect your system by installing this update from Microsoft. After you install this update, you may have to restart your system.  Details...

    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP x 86 (KB2604092)

    Download size: 0 KB 0 minutes (downloaded; ready to install)
    A security issue has been identified that could allow an unauthenticated remote attacker to compromise your system and take control. You can protect your system by installing this update from Microsoft. After you install this update, you may have to restart your system.  Details...

    Hi Martin house,.

    Welcome to the community Microsoft and thanks for posting the question.

    According to the description provided, looks like you have a problem with Windows update.

    I suggest you to see the steps in the following Microsoft article and check if it helps.

    Windows Update or Microsoft Update repeatedly offers the same update: http://support.microsoft.com/kb/910339

    How to troubleshoot common Windows Update, Microsoft Update and Windows Server Update Services installation: http://support.microsoft.com/kb/906602

    Notes:

    The measures also applies to Windows XP.

    Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://support.microsoft.com/kb/322756

    The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again. The data files that are infected can be cleaned by removing the file completely, which means that there is a risk of data loss.

    If you have any other questions or you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • I have first items 13, recently installed on a new laptop of Dell Inspiron 17 5000 Series. The program works very well. However, when I have access to the program, I get a message that there is an update available, 13.1. I let you go ahead and do the upda

    I have first items 13, recently installed on a new laptop of Dell Inspiron 17 5000 Series. The program works very well. However, when I have access to the program, I get a message that there is an update available, 13.1. I let him go ahead and do the update before using the program. It only updated, then restarts first elements 13. As soon as the program loads, I again get the message that 13.1 update is available. How to stop the happy ground?

    RTA,

    Thank you very much for your answers. As you suggest, I went to the help/updates and found that 3 points were scored update, Manager, 13 Photoshop and first elements 13 elements. On a hunch, instead uncheck one of them, I thought I'd see what would happen to let update all 3. It took a while, but, long story short, stopped the happy Vangogh and everything seems fine. Thank you for your messages, much appreciated.    Walt Maken

  • Form the "submit" button similar to the first Page

    I'm trying to understand how the Send button.

    I'm moving on from my days of Frontpage.  There, I created a form with a button send at the bottom. I could right click on the button submit, where I've isolated a .txt file to a folder on the server called "_private".  The Send button would only add the info from the completed form at the bottom of the text file, which, being in the _private folder, could not access by password.

    All tutorials Dreamweaver I can find show how to make the shape (which seems simple enough), but none explain how to set up the submit button (which I do not want sent by e-mail) or where the info is presented or stored or accessible.

    Any help would be greatly appreciated!

    Kevin Gerow

    How forms work in a few words:

    (1) html forms collect data.

    (2) sometimes the client script (JavaScript/jQuery) are used to validate the form fields & make sure that all required fields are filled correctly.   It is not 100% reliable, however, that spammers robots do not use JavaScript.

    (3) PHP or another script server-side more guarantees the required fields are filled in (in the case of that JavaScript is disabled) and data are sanitized to prevent the pirates & spam bots to exploit your forms.  Then, data are processed by your server and sent to a destination specified in the script - that is to say, your e-mail address or folder / database on your server.   Finally, the user receives a success message telling them that the form was sent.

    For the end user, this seems very simple - as well it should.  But there are a lot of things behind the scenes.  If your server supports PHP & the function mail (), I wrote a tutorial part 3 contact form below.

    ALT-Web Design & Publishing: sensitive Contact form with 3.2 Bootstrap and PHP (part 1)

    Nancy O.

  • Double click with Submit button

    A submitButton on the page automatically manage / block the action of double-tap of the user?

    I have an application when a button "submit" cause transformation & agrees to occur.
    I want to assure you that when the user "double-click on ' button, it does not cause problems.

    Thank you

    Hello

    A submitButton on the page automatically manage / block the action of double-tap of the user?

    No, it does so...

    You can write the code below in the processRequest method of your controller to disable the button until the treatment of the moment happens after complete transformation you can still click "submit" button.

    OAWebBean body = pageContext.getRootWebBean();
    if(body instanceof OABodyBean)
    {
    ((OABodyBean)body).setBlockOnEverySubmit(true);
    }
    

    Please refer to this article for more details
    http://mukx.blogspot.com/2009/12/blocking-user-on-submit-action-in-OAF.html

    In addition, if you want to disable the button after the first click, then click on get a redirect to the event he same page and make this option off or to do use partial-page rendering.

    Thank you
    AJ

  • How to determine, which is click on the command button

    Hello

    I have the following code, which adds 3 buttons on the form. I wanted to perform actions when you click on these buttons. NavigationClick method below is fired when button is clicked. Impossible to determine exactly what IAM button that is clicked as I want to run different action for the different button click?

    last class MainMenu extends form {}
    ButtonField B1;
    ButtonField B2;
    ButtonField B3;

    MainMenu()
    {
           
    setTitle (new LabelField ("UI Testing", LabelField.ELLIPSIS |)) LabelField.USE_ALL_WIDTH));
    Add (new LabelField ("Welcome!"));
    B1 = new ButtonField ("Screen 1");
    B2 = new ButtonField ("Screen 2");
    B3 = new ButtonField ("form 3");
           
    VFM VerticalFieldManager = new VerticalFieldManager (Manager.VERTICAL_SCROLL);
    VFM. Add (B1);
    VFM. Add (B2);
    VFM. Add (B3);
           
    Add (VFM);
           
    }

    public boolean navigationClick (int status, int time)
    {
    If ((status & KeypadListener.STATUS_TRACKWHEEL) == KeypadListener.STATUS_TRACKWHEEL)
    {
    Dialog.Alert("1!");
    Entry came on the wheel.
    } else if ((status & KeypadListener.STATUS_FOUR_WAY) == KeypadListener.STATUS_FOUR_WAY) {}
    Entry came from a four-way navigation entry-level camera
           
    Dialog.Alert("2!");
    }
    Return super.navigationClick (status, time);
    }
       
    }
    Thank you

    Use this option.

    B1.setChangeListener (new FieldChangeListener () {}

    ' Public Sub fieldChanged (field field, int context) {}

    }

    }

    field.getIndex () will give you the field index.

Maybe you are looking for

  • Magnetic detector

    My locking/unlocking of my ipad air sensor 2 no longer works so I was wondering if there's a failure or the screen in tempered glass protector can cause this. (it covers the camera picture and everything)

  • A weird sign in question

    Greetings! I started to experience something really stupid in Skype 7.8.0.102. For a week or more now, whenever I sign in Skype, I connected with my status set to 'away' (the yellow circular clock near my icon of Skype). I can't understand how to cha

  • Pavilion 14 b-130sa: upgrade Windows 10: Touchpad freeze

    Hello Recently installed windows 10 on my laptop, everything seems to work fine, although I noticed that whenever I press a key on the keyboard, my trackpad will be disabled / gel for between 5 to 10 seconds. Sound ' of course very annoying. I looked

  • My IPhone has a virus?

    Since I have updated to Ios 9.2.1. my phone was glitching, reset and or deleting my contacts and saved data. I have restored and saved my phone I'll see all my contacts and others but then it will suddenly disappear in less than 2 minutes. I'll also

  • Impossible to rip the CD using WMP 11 in WAV format. Ripping starts but the CD eject and no error message.

    I use Vista and Windows Media Player 11.  I'm trying to rip a CD in WAV format.  I set the extraction options to create the WAV file and write the wav file in the c:\temp\wav folder.  I want to compare the file size and sound quality.  When I insert