Perform actions on read only text fields

I work on an inventory for a renovation of the building to come and hope to make an "interactive stop' of sorts on the PDF of the floorplan showing the hardware inventory for the rooms.

My goal is that each room on the floor plan to have an invisible field that covers (I am currently using text fields), so that when the user's mouse is in this room on the floor plan, a 'Mouse enter' action is executed to display a second text box VISIBLE read-only containing notes and inventory relevant in this specific room. Conversely, when the user's mouse leaves this place on the floor plan, a 'Mouse exit' action is executed to hide this second text box.

I have this feature works for the most part, with the exception that the text fields that I use to describe the rooms are still visible in an opaque blue tint when the PDF file is displayed. I would have preferred them to be completely invisible and cannot be changed by users.

If I change the property of form field to 'Hidden', or tick the box 'Read only' property, entry and exit mouse mouse actions will not run.

Anyone have any suggestions on the best way to achieve this?

Thanks in advance!

Instead of a text field, use a button for mouse input/output actions. They can be parameters to have no visible border or background, so will be invisible.

Tags: Acrobat

Similar Questions

  • Open a read-only text field using the button and javascript

    Hello

    I have a form with text fields that I préremplira data. The text fields will be in read-only by default. I want to ensure that when a user wants to make changes, he will need to click on a button and in turn, background of the text field will become gray and he can make changes to the text field. I can already do gray running in background, but I can't make the text box open.

    This is the code that will run after the button is clicked:

    color.ltGray = new Array ("G", 0.75);

    this.getField('TestField').fillColor = color.ltGray;

    this.getField('TestField').access = "open";

    Background of the text box becomes gray, but it is always read-only. Any ideas?

    Thanks in advance!

    If you have created the form in Acrobat (as opposed to LiveCycle Designer), change the last line to:

    this.getField('TestField').readonly = false;

  • Read-only text box.

    I'm on the APEX 4.1.1.00.23. I'm doing a read-only text box. It works but the to-go box and put it on a single line. It doesn't look very good. I changed the screen for the item to display only and it does the same thing. Are there

    in any case, we can change the read-only text box and not take the box or formatting?

    Thank you

    PAM

    PAM wrote:

    I'm on the APEX 4.1.1.00.23. I'm doing a read-only text box. It works but the to-go box and put it on a single line. It doesn't look very good. I changed the screen for the item to display only and it does the same thing. Are there

    in any case, we can change the read-only text box and not take the box or formatting?

    Make read-only conditionally temporarily or permanently?

    In the first case, use a textarea element with the readonly attribute of the element instead of the built-in read-only properties. Set the HTML attributes of the element form item to the text box to:

    readonly="readonly"

    If it must be made conditional or temporary, explain the requirement in detail.

  • How can I read only text files in a directory.

    I wrote a program to play the files in a directory, but I want to let him read the text files from the directory.

    import java. IO;

    public class {data}

    Public Shared Sub main (String [] args) throws IOException {}

    String target_dir = "C:\\files";

    File dir = new File (target_dir);

    File files [] = dir.listFiles ();

    for (file textfiles: files) {}

    If (textfiles.isFile ()) {}

    InputStream BufferedReader = null;

    try {}

    inputStream = new BufferedReader (new FileReader (textfiles));

    String line;

    While ((line = inputStream.readLine ())! = null) {}

    System.out.println (Line);

    }

    } {Finally

    If (inputStream! = null) {}

    inputStream.close ();

    }

    }

    }

    }

    }

    }

    You mentioned you want to only read text files.

    If you are referring to a specific set of extensions, you can filter on this basis.

    ex: you want to only read .txt files, you can add an if condition as below:

              if(textfiles.getName().endsWith(".txt")) {
                  // Add your code here
              }
    

    See you soon

    AJ

  • How do I format box for format read-only form fields.

    I am working on a form that has a check box N/A. I want that the checkbox is automatically selected when the form is opened and make the form read-only fields, then make the editable fields when the user disables the check box. The script that I use now is back. It makes editable forms when the n/d is checked and I would do the opposite of this. This is the script that I use now in the section mouse to the top of the box. Any help would be greatly appreciated.

    Script mouse to the top of the box

    getField("Name_2").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Address_4").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("City/State/Zip_4").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("License_2").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Issued_2").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Exp_5").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("DOB_2").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Phone_3").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Email_2").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Payment_2").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Deposit_2").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Exp_6").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Exp_7").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Gift_2").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Cash_2").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Carrier_2").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Policy_2").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Phone_4").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Exp_8").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Signature153").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Print").display = event.target.value = "Off"? Display.Hidden: display.visible;

    getField("Date").display = event.target.value = "Off"? Display.Hidden: display.visible;

    Change all instances of = 'Off' to ! 'Off' = .

  • Adobe is creating - JavaScript - read-only / gray fields according to the user's response

    I hope someone here can help me!

    I need to create an Adobe form where the answer to the first question greys out and makes some fields read-only.

    I am aware that I need to write a Java Script for that, but how do I do this? I did research for the days, and I can't function.

    Here is the example:

    The question is "is - this project fall under standard terms? ' and if the answer is Yes - so many questions should be ignored, as if the answer is no, the questions must be answered.

    I tried to have the first question as a checkbox, radio button and a drop-down with the 'yes' and 'no' option, but none of this seems to help.

    Can someone help me understand what I need to do? PLEASE, I BEG YOU!

    Thank you

    It is quite simple and can be made much simpler if give you all the names of optional field of a common prefix using a hierarchical naming scheme. For example, if you use a prefix of 'optional' so that you have domain names like "optional.name", "optional.address", "optional.email", etc. (note that the period character is critical here), you can set fields in the group to read-only with a single statement. Similarly, you can set the background color or reset the group, which is a good idea when the fields turn off/on. For example:

    var f_prefix = "optional";
    
    // Get a reference to all of the "optional" fields
    var f = getField(f_prefix);
    
    // Set them all to readonly
    f.readonly = true;
    
    // Set the background color to gray
    f.fillColor = color.gray;
    
    // Reset all of the fields
    resetForm([f_prefix]);
    

    You can place this type of code in the mouse event to the top of a box, something like:

    // Mouse Up script for check box
    // If checked, certain fields should be disabled
    
    var f_prefix = "optional";
    
    // Get a reference to all of the "optional" fields
    var f = getField(f_prefix);
    
    // Reset the optional fields
    resetForm([f_prefix]);
    
    if (event.target.value === "Off") {
        // Enable the optional fields
        f.readonly = false;
        f.fillColor = color.white;
    } else {
        // Disable the optional fields
        f.readonly = true;
        f.fillColor = color.gray;
    }
    
  • How can I count only text fields that have been used?

    Hello

    I use Livecycle Designer to a dynamic form.  I have a section of the form that contains the field for the user to enter the goals, and then note the purpose.  I want to count only the text fields with entries and have the total number of rates, divided by the number of entries in text field.

    Line 1, column 1 - goal is to collect 5 apples.   Line 1, column 2 - the given rate is 5

    Row 2, column 1 - goal is to collect 5 pears.  Line 1, column 2 - the given rate is 5

    Two goals for a total power of 10-10 divided by 2 = 5

    Is it possible to count only the fields that are populated?

    Also, is it possible to create an error message if the user scored 5 goals but rated only 4 of them?

    Please send me the form to

    [email protected]. I'll get it repaired for you and send it back and then you'll have the code in the form of sample for later reference.

  • Dynamic action in Apex - automatic text field display based on the definition of value

    Hello

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.


    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Thanks in advance!

    Hi 2932464,

    2932464 wrote:

    Please change your login username of "2932464" to something meaningful. Reference: Video tutorial how to change username available

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.

    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Hereby you mean something like this: https://apex.oracle.com/pls/apex/f?p=52380:11:129938442406997:

    If Yes, then create dynamic action as follows:

    • Create a dynamic action on the Order_number change event say. P11_ORDER_NUMBER.
    • Event-> change, Type of selection-> item (s), article (s)--> P11_ORDER_NUMBER Condition-> is not null
    • Real Action-> to run the JavaScript Code
    • JavaScript code:
      var ordernum = $('#P11_ORDER_NUMBER').val();
      var startdigit = ordernum.substr(0,1);
      if (parseInt(startdigit) === 1) {
        $('#P11_ORDER_TYPE').val('CONSUMER');
      } else if (parseInt(startdigit) === 2) {
        $('#P11_ORDER_TYPE').val('BUSINESS');
      }
    

    I hope this helps!

    Kind regards

    Kiran

  • When you insert a text field of the form, I get a javascript error. Removed hide victory, re-installed extensions and other things but nothing works, even on all my sites. Only text fields, all the other fields in the form works fine. Please help, I can't

    The java script error I get is: "when executing objectTag in field.htm text a javascript error has occurred."

    You can also try delete preferences, just to be safe.

    Be sure to keep a backup of it somewhere.

  • How to make text read-only once it is recorded and distributed on the ground?

    How to make a read-only text field after it is registered adistributed d?

    LiveCycle Designer ARE 8.2

    Exit this JavaScript code on the event:

    textField1.access = "readOnly";

    This works after the user loses the focus on the field, but after it is saved and distributed, this field is no longer "read only".

    I need to have staff insert information into a text field and try it then distribute to clients, and these fields must be protected.

    How do you do that?

    No... .it has to be there to be a schema valid... but it is not used by the product offline.

    Paul

  • Save event - make text read-only field if not empty

    I have a document which must have read only 1 field if it is not empty when the form is saved. I have the Document Actions 'spared' configured to run a script that contains only:

    getField("DepositDue").readonly = true;

    The problem is, if I save the document so that it can be filled and saved by adobe reader, this field is changed to read-only. What I need is an if statement to check if this field is empty first, but do not know how to do in this regard. The extered text is a date in the format of date as well.

    The following works for me in paper will save the event, but not the Document spared:

    var f = getField ("DepositDue");

    f.ReadOnly = f.valueAsString;

  • How to fill a field read-only based on selections from 2 DDlists?

    Follow-up question:

    http://forums.Adobe.com/message/2417876#2417876

    I have 2 drop-down lists.  'Department' and 'unit '.

    The selection in DDlist 'Department' creates a single list in DDlist 'unit '.

    I select the appropriate of these two DDlists elements.

    When I do this, I want the text read-only 'NameOnIDBadge' field is filled with a predefined entry.

    Example:

    In DDlist "Department", select the item «Finance & Administration»

    In DDlist 'Unit', select the 'Food Service' item in the list that appears

    THEN:

    In the text field read-only 'NameOnIDBadge' of the following built-in read-only text appears: "contract food serv.»

    (Thanks to Paul, I already know how to do selection in DDlist 'Department' affect the selection list in DDlist 'Unit')

    "but I don't know how to make the choice of these two DDlists to create a new entry in a text field).

    I have attached a mock-up of the file that I work with...

    If ((firstDDList.rawValue="Whatever") & (secondDDList.rawValue = 'Whatever'))

    yourTextBox.rawValue = "the text on the right"

    This code would go under the second output of DDList event, replace the code I put in there to add the control to the first DDList

  • Lock text fields only if they are filled at

    Hello all and thanks in advance for your help!

    My Question:

    When I click on a button (btnLockFields), I would block only text fields that have the actual text in their filled. The same text fields are met every time, so it must be flexible. Before blocking text fields, I need to be prompted to enter a password. I will send this form to others so I need the password button to keep other users fixed.

    I'll put form security so that others with Adobe Acrobat does not mess with the form.

    Is this possible to do? Thanks again!

    I've seen this post but it works for specific areas, unless there is a way to fix the code works with what I need:

    http://forums.Adobe.com/message/4695376

    OK, you can try something like the following, but I have not tested. It is intended to be used in a bookmark and don't try to unlock after that that they have been locked:

    Lock all the non-empty fields

    (function () {}

    Your chosen password goes here

    var pw = "1234";

    Ask the user the password

    Var RESP = app.response({)

    cQuestion: "to lock the non-empty fields, enter the password:",

    CTitre: "password",

    bPassword: true,

    cLabel: 'password '.

    });

    switch (RESP) {}

    case pw:

    Scour the fields and lock boxes and non-empty text fields

    for (var i = 0; i)< numfields;="" i++)="">

    var fName = getNthFieldName (i);

    var f = getField (fName);

    If (f.type = "checkbox" & f.value! == 'Off') {}

    f.ReadOnly = true;

    }

    If (f.type = 'text' & f.valueAsString) {}

    f.ReadOnly = true;

    }

    }

    App.Alert ("the fields are now locked.", 3);

    break;

    zero case: / / the user pressed the Cancel button

    break;

    default: / / wrong password

    App.Alert ("bad password.", 1);

    break;

    }

    })();

  • Question of FACT while hiding the text field

    Hello

    Code written in the way: trying to hide the text field by ticking a box (box is to have fire action)... when the user activates the box to check, capturing fire action and hide the text field...

    Question: but when the action of fire box is drawn, no code executes methods processformdata and processformrequest of my custom controllers but throwing error saying forces de FACTO fields are required and my box is checked, but field text is not hidden.

    If required: here, if DFF fields mandatory error throws then box must be unchecked.


    Note: required fields in FACT have not yet entered. If entered and then clicking on the check box text box will be hidden. the problem is only when de FACTO mandatory fields are not entered and trying to hide the text on the checkbox fields.


    Required resolution: have to skip the mandatory FDF check GOLD fields when a FDF survey error then the box should not be checked (automatically unchecked)


    Thanks in advance...


    Kind regards

    RAM

    Hi AJ,.

    implemented in the other direction...

    Fact FDF mandatory configuration option and run the mandatory audit of de FACTO on the presentation page.

    now it's completely works well...

    Thanks AJ.

    Kind regards

    RAM

  • How can I activate a check box if the data have been entered in a different text field?

    Hello. I would use four check boxes on a form, each of which will enable (check) if the data have been entered in four text fields of form on a different page in the same form.

    Example:

    Page 1 will have a question like... How many apples did you eat last month? "Text1" = 3

    So, given that the user has responded to 3 in the field 'text1', "checkbox1" must now be verified on page 2.

    ... and so on for the other three.

    Note: The answers to the questions will be like a number. If the user enters 0 (zero), then I don't want the boxes to activate it. So, any greater than zero response will check the checkbox.

    Follow-up to question...

    Is it possible for a text field quite different form whether visible or not visible (default read-only text) based on the status of each check box mentioned above?

    Example:

    "checkbox1" will have a field of text next to it named "date1" with a date hidden. If "checkbox1" is checked (because of the above), then the date will be visible.

    ... and so on for the other three.

    Thank you very much!

    -You can use something like this as the custom of your text field validation script:

    if (event.value=="3") this.getField("checkbox1").checkThisBox(0, true);
    

    -Yes, but you shouldn't make it dependent on the box to check, but integrate it in the script above, like this:

    if (event.value=="3") {
        this.getField("checkbox1").checkThisBox(0, true);
        this.getField("date1").display = display.visible;
    } else {
        this.getField("date1").display = display.hidden;
    }
    

    If you also want to uncheck the checkbox where the value of the text field is not 3 then double online #2 but with the false instead of true value in the else block.

Maybe you are looking for