Password-protect and hide a form field

Hello

I was looking through old discussions in the forum looking for an answer to my question.  A code of George Johnson was really helpful, but there is a function more that I have to add to it and am struggling to figure out on my own.

I created a PDF with form fields.  Different departments within the Organization will review this PDF and pass it back.  The Admin dept needs a text field called 'internal comments' that they can protect the password.  They would like to add text, then password - protect only one field so it is hidden for other departments that examine this PDF file.  Admin must copy either visible to them when they enter their password.

The script that I found works really well (see below).  I created a button to hide the script, and when you click it, it locks and unlocks the "Internal comments" text field with the password.  However, I can't figure out how to HIDE the 'internal comments' field after someone in the Admin entered their information.   I tried setting up a field to show/hide action, but I can't make it work.  And I'm not enough common sense to know how to change the Javascript code.

How can I specify that the 'internal comments' field remains HIDDEN when a user enters his password to 'disable this field' and VISIBLE when they enter a password to "activate this field? '

Any help would be greatly appreciated!

---

(function () {}

Get one of the fields in the Group
var f = getField ("private.name");

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

var readonly_desc = readonly? 'disable': 'enable '.

Request user password
Var RESP = app.response({)
cQuestion: 'To' + readonly_desc + "" fields, enter the password: ","
CTitre: "password",
bPassword: true,
cLabel: 'password '.
});

switch (RESP) {}

case 'votre_mot_de_passe': / / your password goes here
getField("private").readonly = readonly;
App.Alert ("the fields are now" + readonly_desc + "d", 3);
break;

zero case: / / the user pressed the Cancel button
break;

default: / / wrong password
App.Alert ("bad password.", 1);
break;
}

})();

You need to change two lines separated as follows:

var readonly_desc = readonly? 'lock': "unlock";

App.Alert ("the fields are now" + readonly_desc + "Ed", 3);

Tags: Acrobat

Similar Questions

  • my stepson took an old pc to his new place in another city, it's password protected and we don't remember the password how we can solve this problem?

    my stepson took an old pc to his new place in another city, it's password protected and we don't remember the password how we can solve this problem?

    Keep passwords secure - Microsoft on passwords strategy
    http://support.Microsoft.com/kb/189126

  • Protect some of the form fields

    I implemented the auto of form fields in a form, Acrobat 9.0 Pro. A selection from a drop of (name of company) auto-remplit the address, phone number fields. How can I block or protect the fields address and phone number so that a person cannot change them manually? Thank you.

    Just make the read-only fields, assuming you want to never allow the user to enter their own values. You can do this by using the tab of the field properties dialog box that displays the domain name.

  • editing custom and calculations of form fields?

    On my excel spreadsheet report I follow the progress of the construction in linear feet of number from one station to the other.   Numbers station expressed exactly as with decimal places except the decimal point is replaced by the sign ' + '.  So if we type inOn my excellent spreadsheet report I follow the progress of the construction in linear feet of number from one station to the other.   Numbers station expressed exactly as with decimal places except the decimal point is replaced by the sign ' + '.  So, if we're typing in 200, it becomes 2 + 00 (which means station # 200... either 200 feet from the starting point of 0 + 00) it's really easy game this place in excel through shaped custom and isn't able to subtract effect station # else automatically calculates the daily footages.   How can I go to learn how to implement in the acrobat form fields?  Thank you

    OK, you can use the following script to custom size for a text field:

    Custom Format script for the text field

    If {(event.value)

    (Event.Value = util.printf("%.2f", event.value / 100) .replace (".", "+");

    }

    This can be expressed in plain language with: If the field is not empty, divide the value by 100, round off the result to the tenth closest and replace the comma with a sign more.

    A script format is used to change what is displayed in the field the value of the underlying field leaving unaltered, so the value of the field can be used in normal numeric calculations.

  • You can edit a document template in your library (pdf) and retrieve previous form fields, so you don't have to start from scratch?

    I've just uploaded a pdf template in my library and spent a lot of time to fill the form fields. However, after completing the achievement, I made a misspelling on the original pdf model uplaoded. Is there a quick way to upload the document again and copy the older form of the document field so that I don't have to start from scratch?  If someone is able to inform you that would be much appreciated.

    Only if you checked create layer for the form field option when you create the document in the library. (Available only in the accounts of end superiors so that you won't)

    If you have Adobe Acrobat you can add fields from the agreement to the PDF outside eSign services.

    Or if you are using word documents, it is possible to add fields of the agreement using text tags.

    With those you can change regardless of the document and download the new copy and that the fields are already there, no need to copy or redo them.

    Document help Cloud | Form creation | eSign services

  • Hide the form field based on the name that contains some characters

    I think it's easy.

    We're looking for help with a script that allows you to hide all instances of text fields that contain a certain value. We have a running feature that applies to the same text fields, however, each text field should be labeled with a number at the end also running with this is a custom save button that flattens the page and hides some elements before the record on. The hide feature works pretty simple with "this.getField... = display.hidden; The problem is we do not want to repeat this step for each unique instance of fields that share the same name.

    We must look to each text box that has a similar title, so for example if we had several fields like that...  "my-text-field-01", "my-text-field-02" and "my-text-field-03" we want the script to find the "my-text field" name and hide all instances of that. ' "."

    Hope this makes sense, I'm sorry, our programming skills are still amateur. Thanks in advance for any help.

    You can do if you use a hierarchical naming convention. For example, instead of using something like: my-text - field.1, my-text - field.2, etc..

    You can then hide as well as:

    // Hide all of the "my-text-field" fields
    getField("my-text-field").display = display.hidden;
    
  • Hide the form field by selecting a choice!

    Hi all...

    The scenario:

    There are four form fields: DeptId (inputText), EmpId (inputText), Nom_agent (inputText), rank (selectOneChoice).
    The field category (selectOneChoice) has the values of {A, B, C}.
    When I select the category as 'C', the Nom_agent field must be hidden immediately.

    Can someone tell me how to do it programmatically?

    Kind regards
    KR

    VERSION JDEV! ???
    What does not work?
    You still won't tell us why you want to do in a bean?

    Try

    public void onValueChange(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    String lovValue = getSoc1().getValue().toString();
    if(lovValue.equals("C")){
      getIt8().setVisible(false);
    }else{
      getIt8().setVisible(true);
    }
    AdfFacesContext.getCurrentInstance().addPartialTarget(getIt8());
    }
    

    Timo

  • Netgear router disabled the password protect and I can't put it back on!

    For some reason any my router is no longer protected by Word. I downloaded the app genius of netgear and it shows the password in it. However, even if I change it my other devices connect without requiring a password and the connection is not the small lock on what shows that it is a secure device.

    I can't find any way to activate power. Can someone help me please!

    I changed the name and the password several times this way and it still showed it as non-secure. Finally, it crashed and I couldn't even get it to connect to the internet at all.

    My solution was to order a new router NETEAR update, I received, installed and am looking forward to the updated version.

    Thanks for your help and advice. I guess that my router is just tired!

  • If the pc is password protected and the guest account is turned off, a foreign body will have access to the machine or your pc? Help, please

    I want to protect my children from my pc because I don't want to access the net. So I would like to ask if my pc is protected from pw and the guest account is disabled is there another way that my child will be able to access my pc without my supervision?

    Hello

    Here is a very good explanation by Malkeleah and others in the linked Thread that explains that it is virtually impossible to stop a person access to your computer, if they really want.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-security/need-to-know-how-to-block-Ophcrack-from-running-my/2fe39573-7683-4a1a-A9D2-96764fce1335

    "(N'importe quel ordinateur exécutant un système d'exploitation est accessible par une personne avec 1) access physical;" (2) time; (3) jurisdiction; (4) tools. There are a few things you can do to make it a little more difficult but:

    1. define a password in the BIOS that must be entered before starting the operating system. Also to set the supervisor password in the BIOS so the BIOS configuration cannot be entered without it.

    2. starting at the BIOS, change the order of boot to hard drive first.

    3. set strong passwords on all accounts, including the built-in XP administrator account (it is disabled by default in Vista).

    4. If you leave your own account connected, use Windows key + L to lock the computer (or set the screen/power economy saver) when you step away from the computer and require a password to use.

    5. do the other accounts of users limited in XP Home, regular user accounts in XP Pro. All users must be on a Standard account in Vista with an administrator account used only for purposes of elevation.

    Please understand that these are technical answers to what is essentially a technical problem and there are ways around these precautions. It is a problem of family / interpersonal which cannot be solved by technical means.

    MS - MVP - Elephant Boy computers - don't panic! "

    And read other responses it mention password "Cracking" programs (which it's comments) which are available on Internet and other suggestions.

    See you soon.

  • I have a problem when going into Firefox, it is password protected and I forgot the password I can't get anywhere.

    When I click on my Firefox I immediately get this message, (image). The problem is that I forgot my password and I can't even click on settings to disable this option, I can't get anywhere.

    You have never installed this extension:

    https://addons.Mozilla.org/firefox/addon/master-password-timeout/
    or is this one:
    https://addons.Mozilla.org/firefox/addon/master-password/
    or this one:
    https://addons.Mozilla.org/firefox/addon/master-password-timeout-UPD/

    In order to bypass the extensions, you can start Firefox in Safe Mode. First of all, make sure that Firefox is completely closed and does not appear in the Manager of tasks (Ctrl + Shift + Esc). In particular, make sure that firefox.exe is no longer running on the processes tab. Or you could do that after restarting Windows.

    Hold down the SHIFT key when you start Firefox.

    A small dialog box should appear. Click on 'Start mode safe' (not update).

    Then you can go to the Add-ons page and remove this extension. Either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. Find it on the right side, then click on remove. This should take effect when you exit Firefox then start it again normally.

    Success?

  • Show or hide form fields based on the selection of cfselect

    Hello

    I use ColdFusion 9 and

    I want to show/hide a form field type = checkbox if an assigned value is selected from a drop-down list, but it does not work.

    I use a javascript function.

    My question is: is there the best opportunities with ColdFusion for this or Javascript is the best solution?

    Here is my code:

    < script type = "text/javascript" >

    function show() {}

    Select var = document.getElementById('dropdownlist').selectedIndex;

    if(Select == 1) document.getElementById('area').style.display = 'block ';

    else document.getElementById('area').style.display = "none";

    }

    < /script >

    ....

    < cfquery name = "select_list" >

    Select * from table

    < / cfquery >

    < cfform name = 'form' >

    < name = 'dropdownlist' cfselect onChange = "show (); ">

    < option value = "0" > please select < / option >

    < cfloop query = "select_select_list" >

    < option value = "#select_select_list.id #" > #select_list.name # < / option >

    < / cfloop >

    < / cfselect >

    < div id = 'space' style = "display: none" >

    < cfloop query = "select_list" >

    < style tr = "display: none" >

    < td >

    < name cfinput = "SSG" type = "checkbox" value = "#select_list.id #" > #select_list.name #.

    < table >

    < /tr >

    < / cfloop >

    < / div >

    < / cfform >

    Thank you and best regards!

    Claudia

    Well, thank you for your response.

    I changed the javascript function and replaced the

    with thetag. Then it works.

    Here is a snippet of my code:

    Select * from table

  • Password and filling out forms

    I'm 99% sure the answer to my question will be 'you can't do that', but just in case I might have missed something, I'll ask him anyway.

    I configured my contracts of sale with password so the document basis (terms and conditions) can be changed and the VRP can only fill the fields of the form necessary for example the name of the customer, address, price, etc. In the past, officials have then printed the scanned documents them back and then sent them to the client (they had earlier versions of the player, so could not save completed forms). Now, they are all upgraded to 11 player so will be able to save the completed documents and direct email to the customer.

    I have now been asked, How do we stop a client to change information on the doc once he was sent to them, mainly the price. The sales representative should check that nothing has been changed once the form is returned, but is there something that can be done to stop one person to edit a document in a first time? It is not an option to give sales people unprotected documents and rely on their addition to the Security (which they would not be able to be in the drive anyway I think).

    Thank you

    Ask the sales reps to sign the document. Once they do that and save the form fields would automatically get flattened to prevent people on the road of the edition.

  • Acrobat XI Windows 7 - impossible (copy and) paste form fields in different PDF.

    In order to maintain a consistent look and function in the forms I create for various departments, I copy a few independent form (text, checkboxes) of a PDF Acrobat fields. Then I paste these fields in another PDF document that I am to fill.

    I do this because Acrobat does not define a default value for some attributes when creating form fields, i.e. an option deselected scroll, one font by default other than Helvetica (in Acrobat 8, 9 and X). Plus, it's save time to copy and paste fields that are the same in another PDF file, such as name, address, telephone. etc.

    We have just upgraded to Acrobat XI and Windows 7 and now I can't paste copied fields on a different PDF.

    To help 'replace the pages' is not applicable, as I am sticking to a totally different form and copy the form fields with the settings I use.

    Is this a bug or something new that wasn't in Acrobat 8, 9 and X is?

    In addition, question about this forum - http://forums.adobe.com/message/5638333#5638333 - article which is somewhat different from my current question.

    The PDF Creator cannot paste fields copied on other pages of the same PDF file. This was never resolved so that copy / paste worked like he did during the last 3 versions of Acrobat?

    Thank you!

    Joanie

    Yes, it should work with all fields (perhaps with the exception of the signature signature

    fields)...

  • Adobe DC / problem with password protected documents

    I downloaded Adobe DC on my Tablet for school work. When I try to open my book it is password protected and I can't enter my login details... Please help?

    Hello

    Do you have a user name and password field or just a password field to enter your login information? Is your PDF file, "ProtectedPDF" by Vitrium? Currently, Adobe Acrobat DC on mobile devices does not support third-party pdf files protected by DRM. You will need to open the same on the desktop.

    Thank you.

  • Test password protection site

    Hi I wanted to password protect a test site I've been shooting to show the people you selected. I found this tutorial using PHP, which seems simple enough.

    http://www.zubrag.com/scripts/password-protect.php

    The only problem is that he says he'll show you code protection to include in your pages. "Example of protection code would look like this (yours will be different): <? PHP include("/home/users/htdocs/security/password_protect.php");? >

    Add this line of code to each php page you want to protect from the beginning of the source of the page (it should be the first line). "Now the problem is that my page is html based, can I add a PHP page token to my index page that does little code in password protect and how could I add the PHP page?

    Thanks in advance

    Hello

    I don't want to deter the .htaccess thing to try to get you. I will show you only a useful addition: my provider offers the possibility to protect every page of unauthorized access. I put a password in the suppliers form, and "at the drop of a hat", the necessary files are generated.

    Please ask your provider or look at his site to get this service.

    Hans G.

Maybe you are looking for