Change the background color on a menu drop down based on the value

Hello

I am new to LiveCycle Designer and I need a little help.

I try to make a ComboBox with 3 options (lets say in January, February and March). When I selected one of these options, I want the bottom to automatically change (say January in yellow, for February in red and blue March).

Your help will be much appreciated,

Adrian

Hi Adrien,.

I suspect that the form is not set to automatically save changes to script. If you go to file > form properties > default tab and select Auto in the option buttons:

That seems to work here.

Niall

Tags: Adobe LiveCycle

Similar Questions

  • Try to change the menu drop-down

    I created a form that uses a lot of drop-down menus and trying to get the menu drop-down see the descriptions and have actually filled area with a number of coin instead of the description. I am not against XML encoding if necessary I am new to it but played around a little bit. Ideas or direction would be greatly appreciated thanks.

    Yes. To descriptions in the menu drop down and then specify values in the binding tab. In the event for the menu output drop-down put the code (in formcalc):

    If ($.rawValue == 1) then

    $.formattedValue = "109323" / / put all part number is here

    ElseIf ($.rawValue == 2) then

    $.formattedValue = "109324" / / etc

    endif

    the rawValue is the value of the option, the person has chosen in the menu and the formattedValue is what the box displays the exit event has run.

  • Cascades: How to set the background image for the menu drop down and etc...

    Hello

    Is there an easy way to set the background image for the menu drop down and etc, current support only black as a background?

    Thank you

    Tom.

    Welcome to the forums!

    This is currently not supported unfortunately.

    I encourage you to save a feature for this request:

    https://www.BlackBerry.com/JIRA/secure/dashboard.jspa

    See you soon!

    Martin

  • Change of image in the selection of the menu drop-down

    I am very new to LiveCycle ES 8, trying to get what I think can be called a dynamic image. When you select a value in the menu drop down, the image changes on the other page, to adapt to the value selected in the previous page. I'm not a programmer, I'm ready to do what I can to make this work. Any help would be greatly appreciated. Thank you.

    Hello

    It is possible to achieve what you want. You will need a few items:

    • drop-down list object script;
    • objects 'image', one for each image you want. It would be set to hidden.
    • object 'imageField. You should only one of them. The initial value is null. The script in the menu dropdown will fill the imageField with the object of the appropriate image.

    When you configure the drop-down list, it may be convenient to specify values in the binding tab (for example, 1, 2, 3,...). Then, in the script, you can view the numbers rather than the strings that the user sees in the drop-down list.

    The imageField1 must be set to access read only in the initialize event:

    This.Access = "readOnly";

    This will prevent the user of the substitution of the image.

    When you configure the image1, image2, image3 objects make sure you check the "embed image data', users can not have images available to them.

    You can put similar Javascript in the event of release from the drop-down list:

    If (this.rawValue == 1) {}

    imageField1.rawValue = image1.value.image.value;

    } ElseIf (this.rawValue == 2) {}

    imageField1.rawValue = image2.value.image.value;

    } ElseIf (this.rawValue == 3) {}

    imageField1.rawValue = image3.value.image.value;

    }

    Good luck

    Niall

    PS because the drop-down list object and image objects are on different pages, you will need full references. If the drop-down list is located on page 1 and the pictures on page 2, the reference should look like:

    Page2.imageField1.RawValue = page2.image1.value.image.value;

  • How can I change the icon of left/right in the menu drop-down?

    Is it possible to add a custom icon to the left icon that appears on the menu drop-down?

    Thank you.

    Disable the icons to the right for now, and select the left icon (right click and select same icon) and apply a new image by using the populate options. And then select the icon on the right and link ArrowMenuDown.gif to a new image of the active panel.

    Thank you

    Vinayak

  • CSS Drop down menu; How to align the edge right of the menu drop down and the parent menu?

    Hi all

    I have a drop down menu that works well.

    The only change that I need to do is to have the right edge of the drop-down menu below to align with the right edge of the parent menu. When you hover over the menu, it currently "injects" down and to the right, with the left edges aligned.

    I want the menu to 'drop' down and to the left, so the straight edges are aligned.

    I tried fiddling with floats and absolute/relative positioning. I don't know what needs to be changed.

    You can provide any assistance is greatly appreciated! I learn through 'cut and paste', please go easy on any terminology you can use.

    Thank you!

    Here is my code:

    .chromestyle{
         width: 100%;
         font-weight: bold;
         float: left;
         height: 29px;
    }

    .chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    }

    .chromestyle ul{
    border: 0px solid #BBB;
    width: 100%;
    background: url(chromebg.gif) center center repeat-x; /*THEME CHANGE HERE*/
    padding: 4px 0;
    margin: 0;
    text-align: right; /*set value to "left", "center", or "right"*/
    }

    .chromestyle ul li{
    display: inline;
    }

    .chromestyle ul li a{
    color: #000000;
    padding: 4px 7px;
    margin: 0;
    text-decoration: none;
    border-left: 1px solid #DADADA;
    }

    .chromestyle ul li a:hover, .chromestyle ul li a.selected{ /*script dynamically adds a class of "selected" to the current active menu item*/
    background: url(chromebg-over.gif) center center repeat-x; /*THEME CHANGE HERE*/
    }

    /* ######### Style for Drop Down Menu ######### */

    .dropmenudiv{
    position:absolute;
    top: 0;
    border: 1px solid #BBB; /*THEME CHANGE HERE*/
    border-bottom-width: 0;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:100;
    background-color: white;
    width: 200px;
    visibility: hidden;
    }


    .dropmenudiv a{
    width: auto;
    display: block;
    text-indent: 3px;
    border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
    padding: 2px 5px;
    text-decoration: none;
    font-weight: bold;
    color: black;
    }

    * html .dropmenudiv a{ /*IE only hack*/
    width: 100%;
    }

    .dropmenudiv a:hover{ /*THEME CHANGE HERE*/
    background-color: #0000ff;
    color: #fff200;
    }

    How about this?

    http://ALT-Web.com/demos/right-aligned-CSS2-Horiz-drop-menu.shtml

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • NavBar menu drop down behind the sidebar

    I sent this yesterday but didn't have not heard of anyone. Anyone want to take a stab at it for me please.


    Would be someonoe take a look at the navigation bar on this site I'm redesign please.

    Fall of IE7 under ministries and stewardship fall behind the top area of the sidebar. IE6 and FF looks good.

    There are still a few errors that I work, but do not believe they have something to do with the navigation bar Act in this way in IE7.

    Also in IE6 my head sometimes has very long. Thoughts?

    I hope someone can help. Thank you.

    Lynne

    Search for this rule:

    {#navbar}
    Background: url (.. / images/bg_topbar.jpg);
    background-color: #13214 c;
    height: 2.25em;
    margin: 0;
    }

    Change to this:

    {#navbar}
    Background: url (.. / images/bg_topbar.jpg);
    background-color: #13214 c;
    height: 2.25em;
    margin: 0;
    position: relative;
    z index: 999999;
    }

    --
    Al Sparber - PVII
    http://www.Projectseven.com
    The finest Menus Dreamweaver | Galleries | Widgets
    http://www.Projectseven.com/go/pop
    The ultimate DW menu system

    "lynnegeek" wrote in message
    News:gonj2e$5RP$1@forums. Macromedia.com...
    > Thanks for checking out Mark. I tried your suggestions and it does not
    > work. I have
    > currently have mistakes, but they are caused by the video and
    > marquee.
    > When I take those out, the page validates well. I replace the
    > marquee
    > as soon as I find some js to do the same.
    >
    > Unfortunately my nav menu drop-down under the stewardship and departments always
    > mask
    > behind the top in the sidebar box.
    >
    > I'm starting to have pain in the chest over this. Don't know what I don't see.
    > I
    > guess that has to do with the top box.
    >
    > Is there anyone out there (I want to sing Pink Floyd!) that
    > would be
    > Take a look at this for me. Here is the
    > http://www.webassistantsllc.com/clients/QOP
    >
    > I appreciate any help. Lynne:
    >

  • old printer still appears in the menu drop-down

    I use a brother printer now but had a kodak which is completely uninstalled but many times, when I download a document and you want to print in the kodak printer is shown menu drop down and it does not change, so I can't print how can I get rid of the kodak list, which is the only place wherever it manifests

    Please do not let your Windows version a secret.

    What menu do you mean?  Have you looked into "Devices and printers" or "printers and faxes" (depending on your version of Windows) to see if the device has been deleted?

  • Save the choice by the user in the menu drop-down

    Hey guys

    How is everyone today? I hope you are all okay

    I am facing a problem, I made a menu drop-down with 2 options, each option changes something in the way of the application of notification showing, once the application is closed, it returns by default (no selected value... which makes sense, because I do not know how to record yet)... so is there anyway to save the user's selection in the menu?

    Here is the code

         DropDown {
                id: drop
                enabled: false
                Option {
                    text: "Every 15 minutes"
                    value: 1
                }
    
                Option {
                    text: "Every 30 minutes"
                    value: 2
                }
                onSelectedValueChanged: {
                    if(selectedValue == 1){
                        //because it's milliseconds
                        timer.interval = 900000
                        timer.start();
                    }
                    if(selectedValue == 2){
                        //because it's milliseconds
                        timer.interval = 1800000
                        timer.start();
                    }
                }
            }
    

    Thanks a lot guys

    Hi Alem... from your code snippet:

    if (theOptions[count].value == settings.getUserSelectDrop)
    {
        drop.selectedIndex = count;
    }
    

    The problem I see here is that getUserSelectDrop is a function, not a variable, and so he needs parenthesis after it else Qt will stop execution of JavaScript as soon as he's trying to run it.

    Try this:

    if ( theOptions[count].value == settings.getUserSelectDrop() )
    {
        drop.selectedIndex = count;
    }
    

    The other thing I would say is that getUserSelectDrop() reads the value of the settings file every time through the loop, who has a bit of a drop in performance. I recommend to save the value of a local variable only once before the loop, then use for comparisons instead:

    var userSelectDrop = settings.getUserSelectDrop();
    for(var count = 0; count < theOptions.length; count++)
    {
        if (theOptions[count].value == userSelectDrop)
        {
            drop.selectedIndex = count;
            break;
        }
    }
    

    Note also in this last code that I added a break statement, if the value matches to avoid the loop to test all the values more unneccesarily.

  • How do I change destination on right click menu drop-down ' send to ' command in Windows 7?

    I run 1 PC to 2 laptops with Windows 7.   How can I change the destinations on right click menu drop-down command "send to."

    Add to send it to, the menu list.

    http://www.howtogeek.com/HOWTO/Windows-Vista/customize-the-Windows-Vista-send-to-menu/

    http://www.howtogeek.com/HOWTO/Windows-Vista/add-any-application-to-the-desktop-right-click-menu-in-Vista

    New context menu,

    http://www.SevenForums.com/customization/249733-add-items-new-option-right-click-menu.html

  • Is there a way to delay the full screen menu drop-down?

    I did an immersive test to win 10 in a VM from VMware, and I want to keep my Windows taskbar at the top of the screen.

    Unfortunately, the delay to open the VMware dropdown is just a little longer than that to pull down on the Windows task bar, and if I see often superimposed two like this:

    Overlaid.png

    Y at - it no adjustment to delay the menu drop down VMware some?  I would probably put in 5 seconds or more.

    -Christmas

    Hi Noel,

    Fusion has this feature and it works like this:'

    Change /Users/$ USER/Library/Preferences/VMware Fusion/preferences and add the line:

    fusion.fullScreenMenuDelay = "2"
    

    Delaying the fall to the bottom of the menu full screen for 2 seconds.

    But you're not on the merger, so I used the above to search the Internet and try to find an alternative desktop.

    My research has provided the following, can you try and see if it works?

    Disable the toolbar of the automatic pop-up mode full screen in VMWare Workstation 8: FeradZ Blog

    hope this helps,

    --

    Wil

  • Y at - it an option to activate the menu drop-down overview of the policies?

    Until about a week ago, I could type in the menu and the box of selection taking place and I could select fonts. (as in the image below) Now, it only goes to the exact police that I type, and there is no drop down with it. It's really make things more difficult for me. I can get the menu drop-down appears, but only if I click on the arrow and use the mouse. The second, that I start typing it disappears.

    Does anyone know how to recover my preview? I'm worried that I hit a weird keyboard shortcut.

    Untitled.jpg

    There are two search modes. Maybe you changed it. Read about it in this article.

    New features of Illustrator CC Type | Design of Type and layout in Adobe Illustrator | Peachpit

  • Show alert window when the selection is made in menu drop-down (or when the text field is filled)

    I'm a JavaScript novice writer and need help a warning window that meets the programming user selection form a menu drop-down.

    If the user selects any option except the default choice (which is just an empty space), I want an alert is displayed.  If the user is moving through this area without changing the default value, nothing should happen.

    I have a script attached to the "blur" event for the dropdown menu, but it appears each time you tab in this area, of course.  I don't know how to tell him to display the alert if and only if the user has changed the selection.

    Similarly, I have another field which is a simple text field.  If the user types anything in this area, I would like another alert window pops up.  The thing from the drop-down list seems a little more difficult, so if anyone can help me get that squared away, I can probably understand how to program the alert text field.

    In fact, it's the same code for both types of fields:

    If (event.target.value! = event.target.defaultValue) app.alert ("your message");

  • By clicking on tools on the toolbar brings up the menu drop-down instead of switching tools

    CS3 (real licensed copies), OS X 10.5, Cintiq 12WX - using keyboard shortcuts changes the active tool, but clicking on a tool in the tool bar with the mouse or stylus does not; Instead it shows the menu drop-down with associated tools - Polygonal Lasso, magnetic Lasso, etc. - and clicking with the mouse or stylus in an active window has no effect until a second click. It is absolutely infuriating bug, and I have better to do that swearing screaming at my computer when I have deadlines to meet. Can someone please tell me how CS3 accept 'by clicking on a tool' as ' switch so that the tool "rather than" drop-down menu view other versions of this tool? It took half a day of Googling to figure out how to fix these trash the last time it happened, and stupidly, I did not write the process.

    Your understanding of the "obsolete" is as poor as your understanding of 'help '. CS has done everything I need Photoshop CS2 and do still works very well on my Windows machine, CS3 is just what was common back when I had access to student discounts making it actually worth buying a new version of the program.

    I had already tried to reset everything that was possible to reset in Photoshop itself - and reinstall the drivers using another mouse and the Cintiq, and restart the computer - several times without success before finally discovering the source of the problem... which is that whenever the System for the mouse settings have been changed, CS3 distorts apparently any setting double-click outside the default as a Ctrl-click the equivalent of a right click Mac in Windows. Because the double-click speed has been changed, each time I left-button/single-clicked on anything in Photoshop, it had misinterpreted as a right-/ Ctrl-click the button instead, which is the normal command to put in place the drop-down menu with all the other partners of the tools.

    Reset the speed of the default double click in system settings solved the problem, so I'm CE marking as "assumed answered" in the hope that someone else running into the same problem on an old system might find with Google at least.

  • Cannot use my address bar. Press enter, nothing happens. Click on menu drop down and it will not go to the address

    Address bar does not work. Will not open search or site Web open, even when I click on addresses in the menu drop-down. I tried to start in safe mode and I tried Firefox refreshing. I even tried to reinstall Firefox. Any suggestions?

    I did a system restore, after seeing some other problems with my computer. Now, it seems to work correctly. I think that refreshing Firefox may not have worked until I did the restore, because he tried to open my previous session, even after rebooting. When I started after restoring the system, is no longer a bookmarked or saved passwords. So I'm not sure what I did than the fixed, but it seems to work now. Thanks for all the help

Maybe you are looking for

  • "This connection is Untrusted" - my PC clock is correct, but...

    Earlier today, my PC clock set far in the future. I fixed it, don't think anything of it. Currently, he is correct. Now, I'm getting the "this connection is untrusted" on each site. If I change the clock from the PC to the INCORRECT date of tomorrow,

  • HP 8610: printer erroer

    Printer is stuck on error B8931C7C I restarted the printer, removed source power unplugged from the wall and the unit. also changed power. having checked that there is no paper jam in tray & back door. I also checked the ink cartridges. What is the n

  • 8 to 7 64-bit, I need all drivers for windows 7 64 bit on an HP 2000

    I have a laptop HP 2000 with AMD radeon hd graphicis 1.30 and realtek HD audio. I removed windows 8 is it came with, formatted the hard drive, installed windows 7 pro 64-bit.  I need all the drivers for it. Is not connected to the internet. It say ne

  • You can use a win 7 Home premium... to activate win 7 starter?

    I bought two copies of Win 7 Home Premium.  I have replaced the hd in my acer netbook and want to install win 7 starter instead of xp.  You can use a win 7 Home premium... to activate win 7 starter? Thank you.

  • BlackBerry Smartphones BB Curve 8520 - Hourglassing intermittently

    My phone appears only at random the hourglass for 30 seconds to a minute or more. I removed the battery and it still happens. I think I must restore settings... that's the recommendation? And if yes, could someone point me in the direction of the cor