The drop-down list changes color with background option selected

Hello!

I m stuck with this drop-down menu that I need to have a red background, if the TBD option is active (which is the default) and have no backgrond if no other option is selected.

drop01.png

drop02.png

drop03.png

The red background is a red rectangle that is visible or hidden, I have all code in the event of modification of the drop-down list:

if (this.rawValue == "TBD"){
    RectangleRed2.presence = "visible";
}else{
    RectangleRed2.presence = "hidden";
}

But the thing is that the event checks the value when is changed, so if I'm in the value of TBD and I selected point 1, the recntagle is still visible, because at the moment, I have chosen point 1 value was to be determined, so does not in the way I need to.

Anys ideas?

Thank you!

You must use

if (xfa.event.newText == "TBD"){
...

Then it works fine.

"xfa.event.newText" evaluates to dropdown in the runtime.

Hope it is useful,

Mandy

Tags: Adobe LiveCycle

Similar Questions

  • When exporting my image in LR I select my brand of water in the drop-down list. Then I need to select 'Edit watermark' since the same drop-down menu in order to replace it. When I do that and click 'done' the watermark disappears in the export me

    When exporting my image in LR I select my brand of water in the drop-down list. Then I need to select 'Edit watermark' since the same drop-down menu in order to replace it. When I do that and click 'done' the watermark disappears in the box menu to export. When I click on "Export" the image exports WITHOUT my watermark. Help, please. As I did about everything that has been suggested in this forum and I still have this problem.

    I saw that too. For now, the workaround is that if you select 'Edit watermark,' when you are done editing be sure to reselect the same watermark. If you do not, the watermark menu will be empty.

    It seems to be a known bug that occurs only in the current version. If all goes well, it can be fixed in the next update. There is a page for her on the Photoshop/Lightroom Feedback site. I've added my vote to the page:

    LIGHTROOM CC - watermark on the question of export

  • How to disable the field in the drop-down list to enter a value

    I got a box dropdownlist field and previously a few numerical values on her list:

    say a list of page numbers,

    11

    22

    33

    41

    42

    43

    52

    ..

    I put codes on the change event so that once the user clicks on an element, it is directed to the specific page immediately.

    But the case is that some users would like to enter the field and type a number rather than clicking.

    If he tries to type 42, change event will get him on page 41 instead (as the 1 '4' tank is put in correspondence),

    and then accidentally edit a field then put the tank rest '2' on it.

    so, how can I disable tapping on a drop down field?

    Rgds.

    Hello

    If you select the drop-down list and go to object > field palette. Here you can uncheck "allow customized entry. This will prevent the user to type in the drop-down list.

    With the drop-down menus, I prefer script to the exit event.

    Good luck

    Niall

    Ensure the dynamics

  • Export the value of the drop-down list of failure

    Hello colleagues!

    I created a simple form using LiveCycle Designer, which consist of two elements of text and drop-down list box:

    The drop-down list is filled with XML data:

    <MyData>
    <country/>
    <countries>
    <item uiname="United States" token="US"/>
    <item uiname="Vietnam" token="SRV"/>
    </countries>
    <state/>
    <US>
    <item>California</item>
    <item>New York</item>
    <item>Texas</item>
    </US>
    <SRV>
    <item>An Giang</item>
    <item>Bac Giang</item>
    <item>Bac Kan</item>
    </SRV>
    </MyData>
    

    Then, I handed the form, received a response and he added in the base file of responses:

    Later, I tried to export the responses, but it freezes. I think that the loop is executed, because I can move the progreess window, I can close the wndow to Adobe Acrobat, but when I try to cancel the export process nothing happens:

    So I discovered that the problem is in the drop-down list populated from XML data and list which is binding against XSD or XML elements.

    I don't know what I should do next.

    Links:

    Simple form. XML data.

    Adobe support confirmed that the problem with dropdown lists bug. Will be fixed in future version.

  • Why acrobat pro XI is not displayed in the drop-down list to install?

    IM installing acrobat XI pro on a mac and it does not appear as a product option in the drop-down list to match with the serial number? It says serial number is valid but cannot see the product on computer. Yet, it is installed and has been saved.

    I went to http://www.adobe.com/au/products/catalog/software._sl_id-contentfilter_sl_catalog_sl_softw are_sl_mostpopular_au.html

    Only upgrades cost a $ 282. To get the upgrade price, you need to select the product you already own.

    Full fare is $ 637.

    You will probably need to contact Adobe to pay off first purchase and convert it to full fare - but don't wait, there may be a time limit.

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

  • Change the image when the drop-down list value form is selected

    I really thought that it would be easier but I can't function.

    I have a consignment of Paypal with a drop-down list. The list to select the color. I want to change an image on the page to display the correct color when the color is selected in the drop-down list. So a black image occurs when black is selected, a red when red - etc...

    I would be very grateful if anyone can share some brief, the browser compatible code. Thank you for any assistance you can provide.

    Bill

    You are right that this is not as simple as you might think at first.  You asked for succinct, but there are several steps involved in mode Code (horror!)

    1) first add this script just before the closing tag () on your page head and then insert all your path/imagenames where see you mine.  Notice of the ORDER OF THE IMAGES must match the order of your choice to be called with the list of drop-down selection in your form! :

    2) in second place, in your form, add the below onchange event for thetag.  Note that in this example, the ID on the we will work with the tag is "theImg", change that, as needed.  If youdo not already own one identifying the tag (see further below), just use "theImg".

    So here's a form with a select field.  Use whatever values you need to do this, just add my onchange event as shown:


      <>name = "productColors" id = "productColors" onchange = "diva_imgBySel ('theImg', this.selectedIndex)"> "
       

    3) Finally, you can click on thetag, then click on the Tag/behavior window, click sound + plus sign and select "Preload Images" and adds all imagenames so they will appear more quickly when the selection list is used.

    Hope that all of the senses.

    -- 
    
    E. Michael Brandt
    
    www.divahtml.comwww.divahtml.com/products/scripts_dreamweaver_extensions.phpStandards-compliant scripts and Dreamweaver Extensions
    
    www.valleywebdesigns.com/vwd_Vdw.aspJustSo PictureWindowJustSo PhotoAlbum, et alia
    
    --
    
  • How can we change the visibility of the drop-down list after its creation?

    I create a QML document with three drop-down lists.  Depending on how "trans_type" is selected, only to drop Extra should be displayed.  If the option "account" is selected, the drop-down list is visible and the DD category is hidden.  The reverse is true if the 'category' option is selected.

    Here's how I build my QML document:

    void Testing::updateFields()
    {
        if (m_form.isNull())
            return;
    
        // Clear all fields from the form
        m_form->removeAll();
    
        // Clear the internal mapping
        m_fields.clear();
    
        //get the transaction page ready
        QmlDocument *qml = QmlDocument::create("asset:///transaction.qml").parent(this);
    
        DropDown* trans_type = qml->createRootObject();
        trans_type = DropDown::create().title("Transaction Type");
        trans_type->add(Option::create().text("Accounts").value("0"));
        trans_type->add(Option::create().text("Categories").value("1"));
        trans_type->setSelectedIndex(0);
        connect(trans_type, SIGNAL(selectedIndexChanged (int)), this, SLOT(onDDChange(int)));
        m_form->add(trans_type);
    
        DropDown* account_dd = qml->createRootObject();
        account_dd = DropDown::create().title("Account");
        account_dd->add(Option::create().text("No Account").value("0"));
        //... code to populate account drop down here...
        account_dd->setSelectedIndex(0);
        m_form->add(account_dd);
    
        DropDown* category_dd = qml->createRootObject();
        category_dd = DropDown::create().title("Category").visible(false);
        category_dd->add(Option::create().text("No Category").value("0"));
        //... code to populate category drop down here...
        category_dd->setSelectedIndex(0);
        m_form->add(category_dd);
    
    }
    

    Everything is displayed properly on the page.  onDDChange is called and it shows a Toast that the option has been selected.  Here is what I currently have in onDDChange:

    void Testing::onDDChange(const int &info)
    {
        QString msg = "Switched To: ";
        if(info == 0) {
            msg = msg + "Account";
        } else if(info==1) {
            msg = msg + "Category";
        } else {
            msg = msg + "Unrecognized";
        }
        showToast(msg);
    }
    

    I can't figure out how to get the drop down lists to be visible/hidden depending on the needs.  There is a function "setVisible()" for the drop, but I can not understand how to operate without the app crashing.  http://developer.BlackBerry.com/Cascades/reference/bb__cascades__dropdown.html#function-setVisible-v...

    My questions are:

    1. How can I change the visibility of the appropriate dropdown lists in a different function when the status of the main drop-down list is changed?

    2. is there a way to define an id for drop-down lists?  If not, how am I supposed to go into the drop-down lists in a variable later so I can receive their value or change the visibility?

    Any help would be great.  I've been struggling with this for a while.

    There are a number of methods you could use signals and slots between your code and the QML or something simple is assign "objectName" as a property, then this search in C++.

    http://developer.BlackBerry.com/Cascades/documentation/dev/integrating_cpp_qml/

    Something like

    DropBox db = mRootContainer->findChild("dropboxname");
    db->setVisible(true);
    
  • How can I change the automatic country setting that is displayed in the payment gateway billing address? There is only one country in the drop-down list, not my current country

    How can I change the automatic country setting that is displayed in the payment gateway billing address? There is only one country in the drop-down list, not my current country

    A few changes/Verify account https://forums.adobe.com/thread/1465499 links that can help

    -html http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id.

  • Is this possible? Subforms appeal based on the drop-down list associated with the database

    I'm hoping to make a dynamic shape and I wonder if it's possible.

    I have a database with about 300 entries - pieces of agricultural goods and a few little bits of info on each of these properties. I want to create a form where users can choose the piece there rather than the property in a drop-down list. Based on the property they select, another menu drop down to fill with the cultures associated with this property. Then based on the selection made in this drop-down list, a specific form will be brought upward.

    For example, a person selects property #102 in the drop-down list. In the database, property #102 is associated with wheat, barley and corn, so the next drop would be complete with these three cultures. The user selects the wheat in the drop-down list and the form of wheat would be called. 

    I hope I explained that well enough.

    Is this possible? And if it's possible, how complicated to do? Assuming that I already have the database and subforms, it would be a long process from weeks to the script, or it would be simple enough?

    Yes, this could be done, here is an example that should help: Drop dependent dropdown (specimen attached)

    On the basis of selection (change event of the second menu drop-down), you can show or hide a subform.

    -Wasil

  • Problem with the drop-down list related calculations

    Hi all

    I worked on a leave form using Adobe LiveCycle ES2 Design for more than three weeks. I am new to my work computer applications programming, and I've not had many world real experience with Javascript. My problem is that I have two drop-down lists in two separate subforms. I have a separate box for users to insert the number of hours of leave, they want to take next to each drop-down list. At the bottom of the form, I have a subform that I want to track the total number of hours for the type of leave, the users selected in the drop-down list.

    I tried several methods of JavaScript to FormCalc, but I succumbed to find a way to indicate each of my category of leave amounts to fields to reflect the value in field hours (this is... if the leave type list specifies the type of leave). I'm tired of scouring the Internet and books to see if I can find a viable solution to this subject. I have another issue to discuss with this same form regarding my case to add calculations, but he will have to wait until I am able to get this rectified issue. Can someone help me?

    Leave_Slip rough.png

    The script necessary to each calculation of total field.

    The only thing different between them, it's the '6' is changed for each category (i.e. personal leave is '0'). FormCalc select in the script editor. It really works in your form - guaranteed!

    Older var = _IndvSubForm.count

    var totHrs = 0

    for i = 1 to older don't

    If (IndvSubForm [i-1]. DataDropDownList2 == "6") then

    totHrs is totHrs + IndvSubForm [i-1]. TotalHours2

    continue

    on the other

    continue

    endif

    ENDFOR

    $ = totHrs

    Good luck

    Stephen

  • Fill a textfield with the drop-down list selection

    Day of goo,

    I have a menu drop down and a textfield in a table with one line and an Add button.

    The line is repeatable, now, when I select a value in the drop-down list, say "23" and it fills the textfield say with "Jordan".

    Then I click the addButton to add a new line, now I select '7' in the new drop-down list and its supposed to fill the new textfield with "David Villa,"

    Instead, he replaces what was on the original textfield("Jordan") with David Villa, leaving the new empty textfield.

    Can someone help me please.

    Another thing, I have to select two times for the drop-down list to the fire, why is this?

    Hello

    First thing: I suspect that you have the script to the change event, but use .rawValue for the test. With the drop-down menus, I tend to use the exit and .rawValue event.

    With respect to the textfield, you probably use a too full reference, like "Row1.usersName". If you just use "usersName, for example the name of your textfield, then Acrobat/Reader uses the particular instance of the textfield in the same line as the drop-down list.

    Hope that helps,

    Niall

  • How do I change site in the drop-down list

    This seems like it should be the best thing to do in firefox, but I can't figure out how to change the sites that appear in the drop-down list of my browser. Who/what determines which sites are in this drop-down list. It is certainly not the most frequently used. I have sites here I've been only once.
    Please notify.
    Thank you

    You are welcome.

    Could you please click on solved it next to the post that solved the problem for you? This will help others looking for a solution to the issue.

    Thank you.

  • Change the number of items in the drop-down list box when running

    I'm trying to change the number of items in one of my boxes of comobo.

    I have been through the help and this forum and have the values to within the drop-down list box change very well, but in a scenario, I want to go to three options for 2. And according to other choices to 3.

    I guess I have to use a property node but I can't understand that one.

    You can use the method to reset to zero (using an invoke node) before setting the [Strings] (after setting the value by default an empty array) or create an Xcontrol (you can see examples of LabVIEW for xcontrol).

    Ben64

  • Dynamic region on the change from the drop-down list of values

    Hi Experts,

    Using the concept of dynamic region, I tried to use buttons as I have 4 buttons and clicking on each button, I am loading the particular taskflow. I used setPropertyListener and type = action to achieve this.

    I have a similar requirement, but I need to use the drop down list here...

    < af:selectOneChoice value = "#{mybean.value}" >

    < f: selectItem itemLabel = "First" Valeurelement = "FirstValue" / > "

    < f: selectItem itemLabel = "Second" Valeurelement = "SecondValue" / > "

    < f: selectItem itemLabel = "Third" Valeurelement = "ThirdValue" / > "

    < f: selectItem itemLabel = "fourth" Valeurelement = "FourthValue" / > "

    < / af:selectOneChoice >

    How can I dynamically load a region on the value selected by the user on top of the data. On the change of the value in the drop-down list, I need to load this particular dynamic region

    JDeveloper version 12.1.3

    Thanks in advance.

    You use a listener to change value of the duo down and detect the region according to the new value of the duo down.

    Timo

Maybe you are looking for