How to change a text field value based on a drop down menu?

Hello experts.

I have a simple form with a very long drop-down list, and two text boxes.  I use a table to fill textbox1 based on the value selected in the drop-down list, and it works as expected.  Some of the values in the drop-down list, but not all, should cause textbox2 become unalterable.

Does anyone have an example script for this?  Any help would be greatly appreciated.

I use LiveCycle Designer ES 8.2 on Windows Vista 32 bit.

Thank you

Jerald

You can do the TextField2 as readonly using the Script based on the value in the drop-down list.

If (dropdoqn1.rawValue == "") {}

TextField2.access = "readOnly";

}

You can modify the script above that you need...

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • The floating field value based on the drop-down list selection (sex)

    Hi, I have created a form that will have different fields, dropdowns etc where the answers will fill a range of fields floating in a letter. I would like to have a list drop-down for sex (m/f) and if selected, either fill in the letter as 'he' or 'she. ' Is this possible?

    Hello

    Here are some ways to do it in this sample https://sites.google.com/site/livecycledesignercookbooks/home/HeShe.pdf?attredirects=0&d=1

    Unrolling of male/female can have a bound value from it, which means we can do refers to the value directly, without however going any calculation.  Is there are a lot of places where it needs to be replaced, then you can simplify things by making reference to the field to form directly, although this requires to change the XML, but if you won't find yourself with a hidden for each instance field.  Or you could edit the XML Source and change the reference for the same id of a floating field.  There are examples of both in the sample linked above.

    Concerning

    Bruce

  • Need help to make the field required, based on the drop-down menu ' YES/NO' other please field

    field 'A' - drop down, YES/No.  Field 'B' must be entered if 'A' = 'YES '.  If 'A' = 'NO', then 'B' as a default of 0. If "A" = "-", then "B" is "-".

    Really, I hope someone can help, Ive tried java, etc. action buttons.

    Thank you

    To set the property of the EmployeeID field B use the following that the validation of your menu script drop-down:

    this.getField("B").required = (event.value == "YES");

    As noticed TSN, the required field only comes into play when the record is submitted (and only when it is done using the built-in command to submit, do not use a script).

    However, it is possible to use a script to inform him that the use that the file is not correctly filled in when the file is printed/saved and even to reset the form entirely in this case.

  • Text of field force based on list drop-down choice

    I adapted this from an example provided by pguerett call 'health mental-check' (in another thread that I can't find right now) who performed a similar function based on a checkbox control.

    I have a dropdown list with a change event to set the menu text focus IF the drop-down list item is replaced by 'others '.

    In the text field, that I have an output event which 'should' give a popup message and then set the focus on the field from the drop-down list, IF the drop-down list item is "other", AND the field is null output.

    However, this does not go as planned.

    Any help would be greatly appreciated.

    Thank you.

    Part of it is to get your '=' and '==' mixed up. A = to assign the value, two == to compare a value.

    I think the gasket you need.

    I changed your script:

    var newValue = this.boundItem(xfa.event.newText);
    if (newValue == "Other")
    {
        xfa.host.setFocus(form1.IncidentReport.OtherNature);
    }
    

    I think the way it works is that you'll need to capture specific value selected in the drop-down list, because it is has been selected the value does not exist in the field again... or something like that - someone else here can probably explain it properly!

  • How to remove the names of the characters in the drop down menu

    I wrote off the coast of dialogue from the screen. Normally, I'd write FRED (O.S.), but when I did this, history treats as a new character - points in the general plan.  To try to remedy this, I have now four different instances of the character FRED that appear in the drop-down list of character. How can I do those I want to go?  How to indicate that a character is off the screen without creating a new character?

    Hello

    There are two ways to get rid of the extra entry-

    (1) use the lists of characters as then the drop-down list is populated in the list only. (Lists are available for paying customers only).

    (2) make sure that all occurrences of this additional entry in your script are removed, then save and reopen your document. Entries which are not used in your script are deleted in the drop down menu.

    Please try it and let me know if it works for you. Send in the stdoc (file-> save to disk) of your document to DL-AdobeStory-supportadobecom so that I can have a look.

    Thank you

    Rashi

  • Change the display of text field value based on the value (short sample code provided)

    I read around on it for a few days, but I still can't get it works well.

    I have a field of text called "W1SnC1". In fact, I have several domains to execute it. That's why I tried to make the generic script below. Basically, I want to change the properties > form field to "visible but does not print ' if the text field contains ' - '. (As a note side '-' is the default value). I put the script in the following properties > validate > run the custom validation script:

    var elemName = event.target.name;

    If (event.value == '-')

    {

    elemName.display = display.noPrint;

    } else

    {

    elemName.display = display.visible;

    }

    Its odd but once in a while it works :-) I think I must be clicking on something that the queues of validation in these moments. However, I need some general help. Did someone mind giving advice on what to change?

    Try something like this:

    Event.Target.Display = event.value = "-"? display.noPrint: display.visible;

  • How to drive the content of a text field or table from a drop-down list selection cell?

    Users will choose an option in a menu drop-down. I want their selection to control the contents of the cells in a table or text elsewhere on the form fields.

    For example, 'The coldest season of the year' by selecting 'winter' in the menu drop-down displays in a table cell.

    Thanks in advance for the help.

    Nick

    Hi Nick,

    Here are some examples:

    https://Acrobat.com/#d=pxtis4z3OxCqWxajZwDS2Q

    https://Acrobat.com/#d=20lQl9JfL19aBtbPC1WYbw

    https://Acrobat.com/#d=Hi0ZwVgVB1PWbxc6OJ0z4A

    If you open these in LC Designer, you can view the script by selecting the menu drop down and looking at the script at the top of the window Editor. If the script editor is a single line, you can drag the lower edge to make it bigger.

    Good luck

    Niall

  • How to fill out a field value based on the value of another field

    I developed a page. It has two fields 'Qualification' and ' Points' (these two values are stored in a table of rear end).»

    The requirement is, if I select "Qualification" "Points" should be auto Norway.

    This can be achieved using LOV. But I don't want to use LOV here.

    I tried this using the partial Action of fire, but I m not getting the details of "Qualification" in CO, instead getting the value zero.

    How to get there?

    Thank you
    Srinivas

    Hello

    Pls change the code this way

    OAMessageTextInputBean omtb = (OAMessageTextInputBean) webean.findIndexedChildRecursive ("the field id");

    String QName = (String) omtb.getValue (pageContext);

    If ("PopulatePoints".equals (pagecontext.getParameter (EVENT_PARAM)))
    {

    OAMessageTextInputBean otbpnts = (OAMessageTextInputBean) webean.findIndexedChildRecursive ("points field id");

    otbpnts.setValue (pagecontext, Points);
    }

    Thnax
    Pratap

  • Text field value based on the numeric value of a number field

    I'm trying to make a PDF form to be completed online for an assessment of the Performance.  I have three radio buttons that put a value in a total box.  For example, is not good = 15, good = 30, Excellent = 45.  So according to the radio button you select, the value of it will be 15, 30, or 45.  I have 6 different categories, while the score can be anywhere between 100-300.  Based on these findings, it ranking is determined, so what I'm trying to do, is make a text box to match their classification according to their total score.  That's what I tried without success.

    SalesPA.SalesPA.OverallScore::calculate - JavaScript, client)

    if TotalPoints > 234

    {

    ce = 'Exceeds expectations';

    }

    if TotalPoints > 179

    {

    ce = "Meets expectations";

    }

    if TotalPoints > 99

    {

    ce = 'No reply to the expectations';

    }

    Your JavaScript syntax was incorrect. Use the syntax validation tool in the future to avoid this. Here is a corrected version.

    If (TotalPoints > 234)

    {

    this.rawValue = "exceeding expectations."

    }

    If (TotalPoints > 179)

    {

    this.rawValue = "meets expectations."

    }

    If (TotalPoints > 99)

    {

    this.rawValue = "not meet the expectations."

    }

  • Returns a value based on the drop-down list

    I am a newbie making the PDF form and had recently started working with a Live cycle to create a form to fill out and succeeded in creating an a model for use with the good example of order (by trial and error) that came with the installation. Can someone help me please this form.  I have a drop-down list on the POINTS column and want to automatically display the unit price of the selected item in the drop-down list. Either way, I managed to make the fluid table.

    menu.JPG

    http://Forms.stefcameron.com/2009/02/25/expandable-table-with-totals/

  • Drop-down menu auto-remplit but will not be updated if you change the selection?

    Hi all

    I'm having a problem with the auto fill to a text field based on the selection in a drop-down list. While the script is running in the first case, if I go back and change my selection as result calculations be updated based on the new selection.

    I used the following script Auto Fill a field of text (called "stndwatt") based on the drop-down menu selection. The drop-down field is called "ProductLineOne":

    var v = this.getField("ProductLineOne").value;

    If (v == "3000K T10 (Tube) '") event.value = "21";

    else if (v == "4000K T10 (Tube) '") event.value = "21";

    else if (v == "5000K T10 (Tube) '") event.value = "21";

    else if (v == "6000K T10 (Tube) '") event.value = "21";

    else if (v == "HBZ (100W Bay)") event.value = "100";

    else if (v == "HBZ (150W Bay)") event.value = '150 ';

    else if (v == "HBZ (200W Bay)") event.value = "200";


    The text field ("stndwatt") is actually hidden and is only required to be part of other subsequent calculations - I don't know if this is a factor?


    If you can please advise what I can do to make the field to update when a new selection is made in the drop-down box, it would be much appreciated!

    I'm just a beginner so please keep this in mind

    Thank you!!!

    You must make sure that the field calculation order is correct. See

    as it is a calculated field that is used in other calculations, you should

    Make sure it is higher on the list compared to the fields that use its value

    for their own calculation, that is to say that its calculated before them.

    You can set this order in form editing mode, via the game of - other - jobs

    Field calculation order.

  • Adding (or divide, multiply, etc.) in the text field values

    Hello world

    I'm trying to calculate values in fields of text entered by the user (who didn't accept numbers) as well as the values selected by the user drop-down list boxes. I have a function to a button:

    reviewQ.calcBtn.addEventListener(MouseEvent.CLICK, calcAns);
    function calcAns(e:MouseEvent):void
    {
         reviewQ.calcAns_text.text = "Your calculated result is " + parseInt(Q1.Q1_text.text) + parseInt(Q2.Q2_cb.selectedItem.data) + parseInt(Q3.Q3_text.text) + parseInt(Q4.Q4_cb.selectedItem.data);
    }
    

    Now, all I get is the actual values entered into the text fields and selected in the drop-down list boxes. How can I get the sum of these values to display on my 'calcAns_text.text '?

    Thank you for your help,

    Rafa.

    You have to build your own filtering for values.  If you think that decimal values, then you will need to plan and test for the presence of a comma in a numeric string and then do not use parseInt(); (what creates an integer value), but use instead Number();  You will need to filter the commas in the numbers in the string before creating the value used for the calculation.

  • Change the value in the field based on the drop-down list

    Let me start by saying that I consider myself as a rookie full when it comes to this program, but I'm learning. I have a drop down menu containing two choice (white or bright white) based on the selection in the drop-down list, I would like to change a field value to reflect the appropriate part number (Alpha numeric if it matters). I'll have 10 fields that will be either / or a value based on the selection. I searched the forums, but without understanding the terminology still, it is difficult to find the answer.

    Thanks for any help.

    Wayne

    Oh, OK.  So add "select" to the list and then on the value tab, select the default value: drop-down list and choose the item you want to appear by default.  I think that's what you're looking for.

  • How to create a text field containing text/label which can be modified by the end user?

    Hello

    I'm trying to figure out how to create a text field containing text or a label that can be changed by the end user. Can do something like this in LiveCycle?

    Below, I have a text field that contains a question and another text field where the user will enter their answer. Is there a way to allow the end user to change the text of the question, as shown in the example?

    Capture.PNG

    Hello

    If you used a standard text for the 'legend' field you could set the value by default (in the value of the object palette tab) in the legend and the legend of the value None (in the page layout palette).

    Concerning

    Bruce

  • How to change the text in the paint once I clicked outside of the text box?

    How to change the text in the paint once I clicked outside of the text box?

    How to change the text in the paint once I clicked outside of the text box?

    ====================================
    I guess you could go to... Change / Cancel... then again...

    FWIW... the free Picasa software has tools to add text to photos.

    Picasa
    http://Picasa.Google.com/

    How to add text to your Photos using
    Google Picasa 3
    http://www.ehow.com/how_4599330_text-photos-using-Googles-Picasa.html John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

Maybe you are looking for

  • activation of mini 4 iPad does not accept the apple id password

    The ideas people? ipad mini 4 has an activation screen, which, for some reason usually recognize the correct user name and password for the apple ID. We have tried a reboot and tried to change the password, but I can't get to the activation screen. I

  • direct mail "receiver" a jammed

    When I try to receive my "live mail" I get the signal that there mail but just, it sticks and does not spread. Help, please. Bez2

  • Incorporate the VISA run in OSX application

    The example here: https://decibel.ni.com/content/docs/DOC-26878 , which incorporates the compulsory parts of the LabVIEW runtime in your application works very well: the end user no longer has to separately install the LabVIEW Runtime and remove unne

  • Need help with the administrator password

    I have a win xp pro and when I turn my desk top pc on it goes to the admin password page, but I got the pc from a customer who don't remember the password. u can help me get through this obstacle. I am not able to get 2 pass 2 get 2 departure to the

  • with regard to the 10 window

    can upgrade my vista window base to 10 as a free update window...