Why not make a text box read only based on drop-down of work?

Hello experts.

I received help on this a few hours ago, and it has worked very well so I closed the discussion and form.  However, now it no longer works and I don't know what I did.

I have a form with a dropdown list and two text boxes.  The first text box is populated according to the value selected in the drop-down list, I used a simple table of the to do and it works as expected.  I had to bring textbox2 read only based on some selections in the drop-down field.  It worked very well at the beginning, but now it no longer works.  I did not any changes to the form except that I closed and since.

I try to get the following to work:

If (this.rawValue is "Junk" again)

{textbox2.access = "readOnly" ;}

If (this.rawValue is "More Junk")

{textbox2.access = "readOnly" ;}

I put this in the change event using javascript.  I use ARE 8.2 on Windows Vista 32 bit.

Any help would be greatly appreciated.

Thank you

Jerald

In the case of change you can't get the rawValue... So, use xfa.event.newText to get the modified text...

Also, you have a space at the end of the value while comparing. In the code below I removed it.

If (xfa.event.newText is "Junk Again")

{textbox2.access = "readOnly" ;}

If (xfa.event.newText == more "junk")

{textbox2.access = "readOnly" ;}

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • make a text box show only after a branch of the page

    Hello

    I have a form on apex 3.0 page. This form has a 2 textarea element and configuration of width for 110 and the maximum width is 500. After a user to enter data on all points, when he clicks on support I branch to another page that has been copied from the page of the form, but this time I want to make the textarea elements and other elements appearing on this page read-only, I have no success with making the textarea a readonly. I changed the readonly condition point to say always, it worked bu it shows the data on a long line it does'nt keep the same width as the text box has.

    I hope that I can get an answer soon. Thank you.

    Kind regards
    Sofia.

    In the attributes of your text box HTML form elements put disabled = "yes" or readonly = "readonly".

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Trial has just started... There is no button text only a text on a path tool... How to make a text box?

    Trial has just started... There is no button text only a text on a path tool... How to make a text box?

    The text button is under the text on a path button. Click and hold and it should reveal the buttons.

  • You can change the font size using the form in the preview (not with the text box). Having also arrow drawing trouble in preview.

    You can change the font size using the form in the preview (not with the text box). Having also arrow drawing trouble in preview.

    What problems are you having with the arrow? You go to Tools-> annotate-> arrow and an arrow appears. Then you can drag around the head and tail to make it to the desired location.

  • "parameter f warning not specified running chkdsk in read-only mode" is this normal?

    When you run chkdsk I get the warning "Beware f parameter not specified running chkdsk in read-only mode" is this normal and if not what do I do to rectify.

    If you want that the errors you fixed must run chkdsk /f

    Make sure that you have a backup in case where.

  • Hi, PDF form of the guru. How to make a text box become a required field IF a drop-down list is selected as the "Yes"?

    Hi, PDF form of the guru.

    How to make a text box becomes a "required field", IF a drop-down list is selected as the "Yes"?

    and 'not required' if the drop down menu selected as 'No' or left blank.

    Any help would be greatly appreciated

    see you soon

    Use this code in the custom drop-down list field validation script:

    this.getField("Text1").required = (event.value == "Yes");

    (Change "Text1" to the actual name of your text field, of course)

  • Make a text box that refers to a channel?

    I would like to make my text boxes to make reference to a channel file or something similar.

    It is because I have a lot of text boxes in my project that contain the same string.

    If I need to change the content, I want to be able to update changing a string file,

    rather than many areas of text.

    Is this possible? How?

    SImple: convert a text box to a symbol and use the library documents to instantiate throughout your project.

    Change the contents of the coast, and update all instances.

  • 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

  • Field read only based on the authorization form

    Hello

    I have a field in a tabular presentation read only based on a permission scheme, as you can for a field in the region with the help of a condition of PL/SQL. Is it possible to do this?

    See you soon,.
    Andrew.

    Hi André,.

    Caught this idea,

    Please create a plus column within the report using as "alaisecolumnname" then

    column with editable text for authorization schema [ISADMIN] box
    draw sheet column with displayonlytext for authorization shcema [NOTISadmin]

    I hope that it will match your expected results, I tested it in my workspace works very well for me

    Thank you
    Select this option.

  • How could put editable report column as read only based on the other domain

    Hello world

    I'm new to APEX. I have a modifiable tabular report (SQL query). When I choose the column (which is a selection list) of a certain value, I want column B to be read-only (depending on the result of an another SQL described below). It doesn't seem to be a READ ONLY section in the type of tabular report where I could put my SQL condition.

    In other words, "column B" must be read only based on SQL returning following true or Exists:
    Thus, to determine if column B is ready only, I need the following logic:

    SELECT 'x '.
    of tab1
    where key = (value of column A)
    and the flag = "Y".

    Any help would be greatly appreciated!
    Thank you
    François

    You can only do so if your tabular presentation is a manually created. In this example, it shows how to set this property:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:170

    You can use a case statement to set this property for specific lines.

    SELECT empno,
           CASE
              WHEN ename LIKE 'A%'
                 THEN apex_item.text
                                  (34,
                                   job,
                                   80,
                                   100,
                                   'style="width:170px" readonly="readonly"',
                                   'f34_' || '#ROWNUM#'
                                  )
              ELSE apex_item.text (34,
                                   job,
                                   80,
                                   100,
                                   'style="width:170px"',
                                   'f34_' || '#ROWNUM#'
                                  )
           END job
      FROM emp
    

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • How to display the box around a text field read-only - Jdev 11.1.2

    Hello:

    In an ADF Web application:

    I have an af:inputText field, but I want to say read-only. So I put the readonly = true property, but when I did I lost the video box around the field. How can I make the text read field only but keep the box around the text display? I also tried setting to off but then it displays in gray. Is it possible to have the look of text just like a field of regular text input field but make unmodifiable?

    Thanks for the help.

    Hello

    I think that you should use the disabled property and with skinning, change the color of what you want.

    For example:

    af|inputText:disabled::content {
    background-color: White;
    font-size: 10px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #000000;
    }
    

    Kind regards

  • How to make a text box in Acrobat 9 Pro, which does not print?

    I have a pdf file I created with text fields. My sales representative wants a text box that was inserted on the top of each of the 2 pages with instructions you can view, but will not be displayed after you fill out the form and print it. This has been done before by a colleague who works here and I don't know how she did it. Can someone help me?

    I use Acrobat 9.3.2 on a Mac. Thank you.

    Yes, it must be a form field.

  • Captivate 9 - text entry area - cannot navigate through the input of text boxes on the same slide using enter key (works only tab)

    I designed a slide that has 3 areas of text entry.

    I need the user to be able to type in their response to the first box and then press the ENTER key, it will pass them in the next text box. After typing in their response to the second box, press ENTER, and then have developed pass to the third area.

    I don't want to use tab, I want to go to work as a shortcut key, so this works well on all devices. It feels like a trip to the logic of the user.

    I removed the button SUBMIT and check the validate user input.

    I put the shortcut key to ENTER in propriety / Actions area

    However, after that type in an answer and pressing on enter, the focus is not moved in the input text box available at the following address on the same blade.

    This happens regardless of browser (tested Firefox, Chrome, Safari, and IE9/10) and also OS - Windows 7, Mac OSX 10.9, 10.10 and latest version of iOS

    Only the tab key works (Ive even tried with other keyboard shortcuts and it always comes back to TAB).

    I know that this feature is possible in Captivate 9. I have read and watched many tutorials online, it seems a very basic feature. I could be wrong.

    This is a feature of wholesale/known or I'm doing something wrong.

    If a bug, is there a plan to fix it soon?

    Indeed, your problem is related to the Enter key as a shortcut key, not to have multiple TEB and one absolutely validation button. Take a look at this article very old (you are not the first to ask about this):

    A submit button for multiple text entry boxes? -Captivate Blog

    But here I explained to indicate to the user click in a next TEB, do not use input.

  • Make clickable text boxes allowing successive text boxes

    all - tHi

    In the creation of a project, I want to fade at the start in one of the four text boxes in a project at the spearhead of the slide. Once the participant has read the first text box they will be asked to click on one another while the second appears and so on. When the last of them appears a button continue will also be presented with the text box.

    What would be the steps needed to accomplish such an action? I MIME it is just that, an action, but I don't know which. Any help would be greatly appreciated!

    Image of the rough concept with all aspects of the text showing four.

    Why not just use form buttons as text boxes and hear each point break just before the next form button enters the timeline.  With all the buttons on form staggered along the timeline all what you need to do is create a user click on each of them to reactivate the chronology and to allow the following form appears.

  • Text field & & read-only attribute

    Hello everyone,

    I have a text field with the read only attribute is on, I need to activate only the Back Space key.

    If someone has an idea to do, please tell me.

    Thank you and best regards,
    OLA

    If you require a read-only column, only to be read-only other characters than the BACKSPACE key (deletion)? Don't you see that this would NOT be a field read-only? You need a piece of JavaScript to reject all keys but this key when you are in this text box.

    
    

    Thank you

    Tony Miller
    Webster, TX

    If vegetable oil is made from vegetables, then what is baby oil?

    If you answer this question, please mark the thread as closed and give points where won...

Maybe you are looking for

  • IPhone broken 6

    Just about 3 months ago I broke my iPhone 6, while I was getting the money together, I discovered that I had to find my I phone off. When I went to do it I realized that I had my very old apple account I remember that nothing is nail until the cload,

  • Locked drawer

    I have a DVP-SR210P and the disc tray is locked closed. Is there a way to open/unlock?

  • [Lenovo Y530 & Arch Linux] A lot of mistakes because of the optical drive

    Hello. I have installed Arch Linux on my laptop for a while, and I've always had a very weird error during my Boot... Here: http://moe.mabul.org/up/moe/2010/04/14/img-1229424imjv.jpg I don't know what I've got this errors, my boot time due to it's ab

  • Upgrade the processors HP G62-228NR

    Hi, I have a HP G62-228NR , and I am wanting to upgrade the Phenom II processor here. I want to just make sure that this IS compatible, im sure it is, but I'd like a second opinion, thanks for any help!

  • HP Pavilion Notebook Pc g6: driver missing

    I have a unknown hit-and-run driver and the pc can not find the driver software. Code 28. ACPI\HPQ0004\3 & 2411E6FE & 0 Located on the PCI Express root complex. Comes up saying camera ACPI\HPQ0004\3 & 2411e6fe & 0 requires additional installation. He