Value selected in the drop-down list, the value border and subform border color

OK, I'm busy to create a form that has a field drop-down list. There are five values inside the drop-down list. I have also four subforms which contain tables and fields for each option in the drop-down list except the first. Now, I want to put the border and the color of the border of the subform if you have selected the correct value.

As part of the output, I created the code as follows:

If (this.rawValue == '5') {}

this.resolveNode("TextfieldName").presence = "visible"; This affects a visible text... works like a charm

Optie1.UI.oneOfChild.border.color.value = "255,153,0"; After an example I found Niall

Optie1.UI.oneOfChild.border.color.thickness = "0,0200" in

}

I've changed this in Optie1, is the name of the subform. Somehow it is not applied in the subform. I know I'm wrong, but can't find what I want on the forums. Someone at - it an idea on that?

Well, managed to resolve myself to play around with the code.

It should be:

Optie1.border.edge.color.value and Optie1.border.edge.thickness.

Tags: Adobe LiveCycle

Similar Questions

  • Filling of a numeric field by selecting from a drop-down list

    Hello all;

    I went through the 38 pages on the form now to try to understand it myself. I must have missed something or this day becomes medium long.

    I am filling a numeric field that is based on what is selected in a drop-down list box.

    For the test, I use only 2 fields

    DropDownList1 and digital Field1

    I If (DropDownList1.rawValue == 1) { }

    NumericField1.rawValue = 25;

    }

    On the other;

    (DropDownList1.rawValue == 2) { }

    NumericField1.rawValue = 35;

    }

    That worked. I am now getting the error "missing; before the statement

    "6:xfa: form1 [0]: #subform [0]: DropDownList [0]: output"

    Specify the value of points is checked in the tab links for DropDownList1.

    I said this with a single selection, who worked

    if (DropDownList1.rawValue == 1) { }

    NumericField1.rawValue = 25;

    }

    Thank you all

    Chomp

    If it's a copy/paste of your script, you have a semicolon after the "else" and "else" should be lowercase.

    And for nested IFS, you need an "else if", so:

    If (DropDownList1.rawValue == 1) {}

    NumericField1.rawValue = 25;

    }

    Else if (DropDownList1.rawValue == 2) {}

    NumericField1.rawValue = 35;

    }

    ElseIf...

    If you have a lot of statements, you might want to look at using a statement that may be easier to read.

    {Switch (DropDownList1.RawValue)}

    case '1 ':

    NumericField1.rawValue = 25;

    break;

    case '2 ':

    NumericField1.rawValue = 35;

    break;

    etc.

    }

  • Populate a drop-down list based on selected in a drop-down list in a separate table

    Good day all.

    This may seem a simple question for most, but... He had me frustrated trying to figure out.

    I'm trying to fill in a drop-down list that is based on what is selected in another drop-down list.

    Let me explain what I've done so far.

    Life cycle of Designer 8.05.2

    When I got the two drop-down lists in the same table, I've not had a problem. The code I used is

    The table name is "table1".

    if (directorate.rawValue == '1')

    {

    division.clearItems ();

    division.addItem ("select" "")

    }

    I was asked to move things and now 'division' is located in 'Table2 '.

    I know that I need the "Table1" reference, but I'm running into a syntax error. I tried the following code;

    if (Table1 Row1 directorate.rawValue == '1')

    {

    division.clearItems ();

    division.addItem ("make a choice")

    }

    if (Table1.Row1.directorate.rawValue == '1')

    {

    division.clearItems ();

    division.addItem ("make a choice")

    }

    Any help would be appreciated

    Chomp

    You are missing a semicolon at the end of the line, addItem, and the second code example, you have no periods in the SOM (Table1 Row1 direction) reference.

    The best way to get the path to another field is to ctrl-click on the ground while you are in the script editor.

  • Select from a drop-down list and the specified element values are displayed in the textfield

    I need for one to be able to select from a list drop-down and specified the item values appear in textfield.

    For example, if I select Amy

    If I select Bob

    If I select Jane

    Amy

    Bob

    Jane (I want to appear as shown in the list)

    I associated a value to each item in the drop-down list so that the choice is easy to compare and determine what initial (default) value to the value in the text field. In my drop down list change event, I have the following:

    var sNewSel = this.boundItem (xfa.event.newText);

    Switch (sNewSel)

    {

    case '1': / / Amy

    TextField1.rawValue = "Amy \n";

    break;

    Switch (sNewSel)

    {

    case '2': / / Bob

    TextField1.rawValue = "Bob \n";

    break;

    Of course that's not work one name shows at a time. Help, please!

    Thank you

    Don't know what the code is supposed to do, but basically, you want to add the name of the drop-down list the addition on the current value of the TextField? Why not use the dropdownlist display value directly? For example on the change event:

    if ( TextField1.rawValue == null )
        TextField1.rawValue = xfa.event.newText;
    else
        TextField1.rawValue += ( "\n" + xfa.event.newText );
    
  • A drop-down list can do the calculation based on the value selected in a drop down list?

    Form Acrobat X Pro Adobe

    Can I have a drop down list create a calculation based on the value selected in the menu drop-down?

    We have a set lunch and want the user to choose to be "A lunch', 'Lunch B'"C Lunch"or"just the milk. "

    It is for each of the 5 days of the week. There are therefore 5 drop downs, which have all the same 4 above choice.

    If the user chooses among the 3 lunches and then put $2.00 in the total box at the end of the line. If 'Just the milk' may put 0.50 in the box.

    The total area at the end of the line must keep a record of all 5 days and give a total.

    So if someone chooses lunch A LUN, sea and Sun and just milk for Tuesday and Thursday and then the total for this week must be $7,00

    Is it possible by using code or something?

    I did it in Excel, but we need it is an Adobe pdf file.

    TIA

    OK the total box has a 10 all the time to make it look like $ 2.00 for

    everything.

    Before even that I chose something there are 10 in the box.

    I am a newbie to Adobe scripting Total used VB/A .NET etc ' 1980

    However.

    Can you do any debugging in code?

    Initialize the sum

    var sum = 0;

    Make a loop on the drop-down list boxes and add the cost of the invoice sum

    for (var i = 1; i)< 6;="" i="" +="1)">

    Sum += getField("Week1Day"_+_i).value == 'just milk? 0.50: 2,00;

    }

    Set this field to the amount

    Event.Value = sum;

  • Change the background color of a table cell, depending on the selection in a drop-down list

    I have a drop-down list wrapped in a subform in a table cell. Users can choose green, yellow or red, and I want the background color to change according to their choice.

    Can you tell me why this script does not work? I'm sure that some of you, dear friends can see in a second.


    If (this. ListItem == "green") {}

    Subform1.DropDownList1.fillColor = "000,128,000"; BackgroundFill = "solid";

    }

    If (this. ListItem == 'yellow') {}

    Subform1.DropDownList1.fillColor = "255,128,000";

    }

    If (this. ListItem == 'red') {}

    Subform1.DropDownList1.fillColor = "255,000,000;

    }


    Thank you

    Hello

    I think you should be able to use the following code in the event change of the dropdownlist control.

    Form1. #subform [0]. Table1.row2.DropDownList1::change - (JavaScript, client)

    If {(xfa.event.change=="green)"}

    this.fillColor = "000,128,000";

    }

    If {(xfa.event.change=="yellow)"}

    this.fillColor = "255,128,000";

    }

    If {(xfa.event.change=="red)"}

    this.fillColor = "255,000,000;

    }

    Concerning

    Bruce

  • Slide to pause until that value is selected from a drop down list?

    Hi there everyone.

    I try to create a cover page of sorts for a simulation of system where the user is asked to enter his name and choose where they work in for a combo box (using the drop-down list box widget)

    I have the name entry part work and the drop-down list box is displayed, but I'm having some problems with it.

    First of all, as soon as a value is selected in the box is jumps to the next slide. I would have rather navigation controlled by a button that the user can make sure that they have chosen the correct value before continuing. Is there a way to do this?

    Hello

    This is the craziest question, but think I found the reason: Although the widget looks a lot smaller in edit mode, when opening it (preview or published) it falls above the button. When I have it away, seems to work. Can you confirm?

    Lilybiri

  • Drop-down list: distinguish between programming and modification of the user

    I have a drop-down list with a few options, the selected displays current status.

    The State can change programmatically I have to update the drop-down list.

    I want to distinguish between this change programme and focused on the user.

    No idea how I could do this?

    The classic solution to this problem is to add a flag (Boolean property) that you control, and which inhibits the onThingChanged response when set. You set this just before you perform a change of programming and clear right after. When the change is made by the user, the flag will be clear and the onThingChanged would do its thing.

    There may be other ways to do this in specific cases, but this approach has worked in all situations in which I have tried so far.

  • How to set a repeating subform based on a value selected in a drop down list?

    Please forgive me if this is somewhere, but I spent a few hours searching and have not led to what.

    I have a drop-down list that allows the user to select the number of teams in you listing (1-5). Then I have a subform with all the necessary information for each team. I wish that the subform to repeat automatically based on the number selected in the drop-down list, because I need this information for each of the two teams by registering.

    Thank you!

    In the case of exit of the drop-down list, in formcalc, put something like:

    teams of var = $.rawValue

    var counter = 1

    While (counter< teams)="">

    Subform2.instanceManager.addInstance)

    Counter = counter + 1

    endwhile

    This assumes you have already 1 version of the subform. If you are a beginner with no condition (meter while doing<=>

  • In Firefox 3.6.8 is there a way to see "typed urls" in the drop-down list address without icons and website names? I want to see are "typed urls" and nothing else.

    I want to see are "typed urls" in the drop-down list address. This is the way it has been for a long time. Now, you get some icons and names/info of Web site with the url. It takes too much real estate on the screen and makes it necessary to scroll through the drop-down list. This is a feature that I don't need. Is there perhaps something about: config that I'm missing?

    You can also check:

  • How to use Javascript to populate a text field based on a selection in a drop-down list?

    Greetings,

    I have virtually no experience with JavaScript and I'm trying to find a way to add some functionality to basic Automation to a form of Adobe.  I have a drop down box called "Hospital_Name" which will contain about 7 possible selections.  When the user makes a selection, I would like to have the field of text (called "Hospital_Address") under the drop-down list fill with the corresponding address to the selection.  I have the "Hospital_Address" text field set up for multiple lines and want the address to have a line break between the address and the city/province/postal code.

    For example, if the user has selected "Hospital 1", the text field would display:

    123 main St

    Anytown, CA 12345

    Help or you can provide examples would be greatly appreciated.

    'Re missing you the document level script that sets the data object and setItems function.

    document level JavaScript; Could be placed in the action open to the page if you cannot access the document JavaScripts level;

    Place all the pre-population data into a single data structure
    var Location = {}
    ' - Hospital - ': {line1: "', line2:" "" "},
    'Bellevue Medical Center': {line1: "2500 BMC Drive", line2: "Bellevue, NOT 68123"},

    "CHI Bergan Mercy": {line1: "7500 mercy Road", line2: "Omaha, NOT 68124"},
    'CHI Emmanuel': {line1: "6901 N 72nd Street", line2: "Omaha, NOT 68122"},
    'CHI Lakeside': {line1: "16901 Lakeside Hills Court", line2: "Omaha, NOT 68130"},

    'CHI Midlands': {line1: "11111 s. 84th Street", line2: "Papillion, DON'T 68046"},
    'Creighton University Medical Center': {line1: ' 601 n. 30th Street ', line2: "Omaha, NO 68131"},
    'Nebraska Medical Center': {line1: "4400 Emile Drive", line2: "Omaha, NOT 68105"}
    };

    function SetFieldValues (Hospital_Name) {}
    location [Hospital_Name] .line1 = this.getField("AddLine1").value;
    this.getField("AddLine2").value = location [Hospital_Name] .line2;
    }

    end document level scripts;

    custom script hits;

    If {(event.willCommit)

    If (event.value == "") this.resetForm (["AddLine1", "AddLine2"]); of other SetFieldValues (event.value);

    }

    end of custom keystroke script;

    Note the formatting of the elements in a column as a line we can help revise the code. Also use a text editor for processing code.

  • Show drop-down list field hide selection in another drop-down list box

    Hello I need to create two drop-down fields on a dynamic PDF in LiveCycle. The first field contains three choices. When a user selects an item in the drop-down list first I would like to a new field of drop-down list has been shown. For each item in the first drop-down list appears a new field drop-down list with unique values. If the user chooses blue drop-down list of blue shades indicate in this menu drop-down will be various shades of blue to choose for. If the Red is chosen, Shades of Red dropdown with appearance and if yellow is displayed the same occurs. Also if the user must go back and change their selection in the first drop-down list, they can do the same. Any suggestions?

    Thank you in advance.

    There are 2 ways you could do this. The first is just to have the 3 drop-down lists for the second box to separate and do them all hidden. The output of the first dropdown event would then have the code that would make it the second box become visible, something like (in formcalc):

    If ($ == 1) then

    dropdownRed.presence = "visible".

    dropdownBlue.presence = "hidden".

    dropdownYellow.presence = "hidden".

    ElseIf ($ == 2) then

    dropdownRed.presence = "hidden".

    dropdownBlue.presence = "visible".

    dropdownYellow.presence = "hidden".

    ElseIf ($ == 3) then

    dropdownRed.presence = "hidden".

    dropdownBlue.presence = "hidden".

    dropdownYellow.presence = "visible".

    endif

    The other option is just to have a dropdown that dynamically changes its options based on the results of the first box. So in the second box preOpen event you might have something like (in formcalc):

    If (dropdown1 == 1) then

    $. clearItems()

    $.setItems ("light red, dark red")

    ElseIf (dropdown1 == 2) then

    $. clearItems()

    $.setItems ("sky blue, dark blue")

    ElseIf (dropdown1 == 3) then

    $. clearItems()

    $.setItems ("light yellow, dark yellow")

    endif

  • How to make a pdf that can send a form to e-mail selected in a drop-down list box?

    I'm trying to be able to create a user of a pdf file I created, select an e-mail from a drop-down list box and then hit send and have it send to this email address that has been selected.

    Thanks for the help!

    Hello

    I don't think (maybe wrong) you can do this in InDesign. At the very least, you could draw the shape in InDesign, but I guess that the interactivity between the selection of the list and the action of mail should be done with Scripting Acrobat or LiveCycle Designer if you have.

    FWIW,

    Loïc

  • Select E-Mail drop-down list to send e-mail button

    I saw similar posts and the responses came a couple of years ago. The answers all had them send an example which worked, but I do not see the solution published so I couldn't use it.

    My form has 5 people that it could be sent by e-mail to. I would like to use a drop-down list box to select which of the five will receive the e-mail message when the Send button is selected

    Any help would be appreciated

    And in case someone has an example to send me as previous discussions I have seen- [email protected]

    Thank you!

    Hi, I'm going to send you an example.

  • How can I add multi line selection in a drop-down list

    I just started with Acrobat DC. Everything is simple, until it isn't. I try to add items to my drop-down list. It's easy. I'm trying to make the choice of multi line. It is an inspection report and the choice will not fit on a single line. So after making the choice, can not read the answer. Thank you-Tim

    It is possible to do it, but only with a script and it's a kind of buggy. In other words, not really a good idea.

  • Help! Script to populate a field of text based on whats selected in a drop-down list to a page?

    Well I hope I can explain this well enough.

    I have a drop down list that has two different options to choose from.  For example:

    Dropdown1 has: Option has

    Option B

    On the other page, I have two text fields.  TextField1 shows just what is levied on the Dropdown1 (Option A or Option B).  TextField2 must do the following: If Option A is taken I just need the field to remain a Virgin.  If Option B is taken out I need to fill a specific text.

    I thought that I found a way to do it, but it seems that since it's on another page the script will not pull.

    Any help is very appreciated!

    Hello

    You can download Acrobat.com and then publish the form. Once you have published, you can copy the link and share it here.

    In my example, I used the name of the first object "TextField1" for example. If your first object is named differently, you will have to modify the script accordingly.

    There is an example on how to reference objects here: http://assure.ly/kUP02y.

    Niall

Maybe you are looking for

  • C:\Users\Rext\AppData\Local\Temp\nsmail.tmp

    Unable to find the temp dir, or if I do they are EMPTY! This was bugs me for some time, please help rex thompson

  • The Satellite screen a series becomes black

    I just bought my laptop and twice in the last two days, I was in the middle of something and then all of a sudden the screen is empty. The computer continues to operate, but the monitor just goes black. It could be overheating or is this something mo

  • Vista Sp2 update

    After that my update of windows computers started to install Sp2 to Vista computer has beeen to "Installation of the service pack 3 of 3-28%" for the last 3 hours! It is always the installation or it froze? What should I do? Wait? Manually restart? I

  • Why all my Web pages have white background

    When I open IE8 and go to Web pages all Web pages have white backgrounds. I don't know how much more clear, I can say that.

  • folder disappeared

    Hi guys I need help regarding windows 7, im using Dell Inspiron everything was fine... but I noticed today that one of my folders in my HD partition suddenly disappeared.i tried all the thing as hidden folders option and files protected windows (OS),