Checkbox puts other text read-only fields

I'm new to creating forms in Adobe, so bear with me.

I have created a form where if the user selects a certain checkbox, it would have to be empty on a section of the form.

If someone could help with this it would be greatly appreciated.

Side note: I suck at Java... my bad.

This is JavaScript, you must use, not Java (sound similar, but very different).

For do you you can use something like this code as action box MouseUp:

if (event.target.value=="Off")  { // If the box is not ticked, enable the other field
    this.getField("Text1").readonly = false;
} else {
    this.getField("Text1").readonly = true;
    this.getField("Text1").value = "";
}

This is just an example, of course. You will need to adjust the name of the field and maybe add more lines if you want to do the same for other fields.

If you have a long list of fields to add then it may be using a loop, so you won't need to copy & paste the code several times.

Tags: Acrobat

Similar Questions

  • 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;

  • Read only fields become unlocked when PDF is open again

    I created a quote that is has several buttons on it.  The buttons perform many actions such as the Add/Remove lines, add or remove columns, etc.  There is a "Finalize" button at the bottom of the form that locks all the text fields and hides all buttons so that they cannot be changed by the customer when the quote is sent to them.

    The problem occurs when the form is completed, saved, and then reopened.  All the buttons become visible again and the text field becomes editable when the PDF file is reopened.  Is there a way to keep the hidden buttons and text read-only fields?

    Thank you.

    The "State" of the form is not saved automatically. Under the form of file/properties/Defaults make the checkbox 'Keep changes to the scripts to form when registering' is set on automatically.

    Paul

  • Registration number read only fields of alignment

    APEX 4.0.2 / RDBMS 11G R2

    I would like, in a form of the APEX, aligned to the right a read only numeric value which is calculated by my application.  According to the doc of the APEX, this feature is not available under number of alignment "does not apply to read only fields and the fields where the element HTML Form attributes are specified.

    Does anyone know of a workaround for this problem?  Ideas, suggestions and/or recommendations are welcomed and appreciated.

    Thanks in advance,

    John S

    Hi John,.

    You can try adding some css yourself:

    Add a class to your form field in the Form Element Classes fields HTML CSS attribute and add a property text - align for this class in your css file, or in the header html region.

    For example, put 'rightAlignField' in the attribute of the form element to HTML CSS Classes and add

    to the header html form regions.

    Kind regards

    Vincent

  • API import block and read only fields

    I want to create a custom field for a Contact that will be read only in the interface user of E10, but for that I can import values via import bulk API.  I created my domain via the REST API as a text type and marked read-only; It appears as such in the user interface.  I then create an import via the API definition in bulk and run an import.  The status of the synchronization ends as "warning", and my read only field is not filled.

    I tried the same import API code block using custom fields not unalterable and he succeeds, then I'm sure it has to do with the read-only field.  Is there a way to accomplish what I'm trying to do?

    UPDATE: I received confirmation from someone of Eloqua fields read-only cannot be set via the import bulk API.

  • Advanced table read only fields

    Hello

    I have a table advanced based on VO.

    I want to do some column read-only fields.

    I did like that.

    OAApplicationModule am = oapagecontext.getRootApplicationModule ();

    OAViewObject vo = (OAViewObject) am.findViewObject ("SearchHeaderVO1");

    Line SearchHeaderVORowImpl = null;

    int fetchedRowCount = vo.getFetchedRowCount ();

    Rank [] rows = vo.getAllRowsInRange ();

    for (int i = 0; i < fetchedRowCount; i ++) {}

    If (rows [i]! = null) {}

    System.out.println ("In makeReadOnly");

    Rows [i] .setAttribute ("EntityCode", Boolean.true);

    }

    }

    What is the right way to go?
    Thanks again
    Varun

    Varun,

    1. create an additional attribute in your VO of Boolean type. ex:-name: customReadOnlyAttr

    2. set this attribute value as the property readonly for each field in the page. as a ${oa. SearchHeaderVO1.customReadOnlyAttr}

    Now in your code, set the value of this attribute programmatically, based on any desired conditions.

    What is the State you want to make these fields readonly?

    See you soon

    AJ

  • PDF form javascript to read only field using the button

    Please let me know the PDF form JavaScript to make the selected fields (text field, dropdown list, etc.) read-only button.

    Do you want your button to read-only?

    Let's start with Acrobat JS Reference.

    do all the fields in a form read-only;

    var oField; variable field processing;

    Browse the form fields;

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

    treat each domain name;

    oField = this.getField (this.getNthFieldName (i)) .readonly = true;

    }

  • 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

  • Read only field select set to true but content can remove?

    Hi experts,

    I have a problem when I check-in then I select read-only, but after successfully check-in I can remove this content please tell me why it is possible, I want that he can't delete if I chose True in field read-only?

    Thanks for the intention,

    I think that you have not to my question, Question that is 'defeated shaped when I chose the field read-only as true' content must not removed by any one. But I can remove it. Then things is - so it is possible at the University Complutense of MADRID does not allow as described on the page

    Using folders and WebDAV - 11g Release 1 (11.1.1)

  • How can I jump tab stops to read only fields?

    Hello

    I have created a form using Livecycle ES2 and have a Q.

    I have a Yes and no box that, once Yes is clicked does another check box and the date field read-only. When I click No., they are open for data entry. It works fine, but I found when I click on Yes and then press tab, it always stops on the deposits of only reading.

    Logic and well... very well anything else I did know the fields.

    Is there a way to blow up the field if it is read-only? I guess it would be in the sense of when the field is entered and is read-only, it will automatically go to the next tab stop.

    Any suggestions?

    Try, yourField.access = "protected" instead of "readOnly"

    Kyle

  • How to disable the warning of validation on the calculation (read-only) field in the table

    Is it possible to add a line in a calculation script (JavaScript) that prevents a dialog box of a calculation field validation?

    Scenario:

    • Working with fields in a table inserted.
    • In each line, I have a couple of fields that the user has entered. These fields have a Validation model has allowed that the user must enter the data correctly.
    • There is a calculated field based on the data entered by the users. It is this field that throws a warning dialog box "the value entered for Total_Row1 is not valid. "To ignore the validations for Total_Row1, click on ignore.

    Even if I turn off the Model Validation on fields used for the calculation of the warning dialog box always appears. So, it seems to be isolated in the field of computing.

    The calculation area displays the time and I got it originally set as a Date/time field, but also tried to use a text field (as the calculation should appear as 0:45 for 45 minutes in this area).

    I have a suspicion that the warning appears only because I used an array for formatting fields, as I used similar validation profiles and other calculation fields and see not the message when the fields do not appear inside the table.

    I think of easier workaround would be to disable validation for this particular calculation field, but I have no idea how the script that. Any help appreciated lot.

    CARI

    I discovered the problem.  In a word: it was a mistake by naming the fields.

    • I have fields named with line numbers in the field name (for example FieldName_Row1).
    • and fields calls with FieldName_Row1.formattedVallue must have triggered some confusion.

    As soon as I removed the word 'Row' of file names, the question of the warning dialog validation mystery Adobe Acrobat for the calculation field have disappeared.

    Ago about 3-4 hours of my life that I won't be back... ha - ha but if someone else has the problem, I thought I better share my discoveries

  • Checkbox option to change read only values

    Basically, I'm trying to implement javascript or formcalc to exercise the following functions...

    When you check the highcost_Yes field value is changed gracieux1 to 10, with no control in the field of the highcost_Yes , the chargement1 value must be 8.

    I have the default value for the field chargement1 the value 8, so if me can cause problems.

    check the highcost_Yes box (values 1 or 0)

    It's the snippit of javascript I've tried:

    If (highcost_Yes.rawValue == 1)

    {

    gracieux1 is 10

    } else {}

    gracieux1 is 8

    }

    After some research, I tried this code in formcalc:

    if(highcost_Yes.RawValue == 1) then
    (gracieux1 is 10)

    ElseIf (chargement1 == 8)
    endif

    I learned javascript this term at school so I understand the concept I'm far from practice effectively.


    Can someone tell me where I was wrong?  Thank you!

    Sorry - no double == when you set the value:

    If (highcost_Yes.rawValue == 1)

    {

    managed1. RawValue = 10;

    }

    on the other

    {

    managed1. RawValue = 8;

    }

  • 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

  • How to do a bunch of fields read only value-based

    IM using jdev 12.1.2.

    I have a fragment with a few dozen jsff fields. I need to make these read-only or editable fields based on a value. I know how to do this for each field, but I was hoping there was a way to do this for each of them with a single property. For instance, all the fields are in a panelgrouplayout or a panelformlayout can I set a property on this provision which will set then all areas reporting to him read-only. I was just trying not to put the property read-only on each field of monkey.

    There is none of these goods or componentwhich allows you to do. All you can do is to set the readonly property of each field to the same property (bean or pagedef) and ppr the container so that the components are updated.

    Or you use a bean method that sets all the fields editiable readonly properties in a contianer orf true false. It would save that you set the property for each field.

    Timo

  • 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' = .

Maybe you are looking for

  • Apple ID hacked over a month

    My apple ID has been hacked by a person out of China more than a month. Apple notified immediately when the e-mails started coming. I was told it would take about a week, but always when I call support they tell me that the engineering team haven't s

  • GPS works do not correctly after updating iOS 9.3

    Hi all. After the update to iOS 9.3 my GPS can't find my exact position. He always tells me that I am in a large area, (Triangulating) looks like it does not activate the GPS. Sometimes very little it works and give me the right position, but 97% of

  • Different backup devices 2

    Can I save my IMac & IPad at the same airport Time Capsule?

  • How to get rid of scrollbars in panels void when you view a VI that is part of a class?

    I am writing an application that applies to various analyses to a set of data. The program must be flexible configurable. To not clutter the GUI with too many items, I'm done with the idea of charging the necessary interfaces for each specific analys

  • System crash when you run Mcafee

    McAfee Scan freezes at C:\Program Files\...\Mpeg_Engine\ASH264Enc.dll Screen of the blackout, blue, general drama. Computer says 'one of your disks should be checked for consistency. Dell said they find no hardware problem in their analysis. McAfee s