Show/hide region when the drop-down list is changed

Hello

I need show/hide a region when dropdow (selection list) is changed.

I used dynamic action:

Event : change
Selection Type : Item(s)
Item(s):P50_my_list
condition : JS expression
$v('P50_my_list') == 1

True Action :
Action : Execute JS Code
Code : $('#region_name').show();

// OR use Action ==> Show

False Action :
Action : Execute JS Code
Code : $('#region_name').hide();

// OR use Action ==> hide

But the region has still shown!

Also, I used a JS function (in the dynamic action of the place) but I met the same result.


function showHideRegion(pValue)
{     var show_or_hide = $x(pValue).value;
    if (show_or_hide == 1)
      {$('#ALTERNATIVEN_LIST').hide();}
    else
      {$('#ALTERNATIVEN_LIST').show();}
}


Hello

I solved the problem with the js function:

function showHideRegion (pThis, pValue)

{var show_or_hide = $x (pValue) .value;}

If (show_or_hide == 1)

{

var element = $x_UpTill (pThis, 'DIV');

Element.style.display = 'none ';

} else {}

var element = $x_UpTill (pThis, 'DIV');

Element.style.Display = "block" ;}

}

Tags: Database

Similar Questions

  • 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
    
    --
    
  • Hide text in the field when the drop-down list is selected

    Hello, I am looking for a way to hide text in a text field when a number is from a drop-down list. For example, I have a table with text field that have a line pre-populated text in them. I would like the text to be deleted if 'Yes' is selected in a data entry drop-down list in the text box empty now.   Here's what I have so far:

    If (this.rawValue == 'Yes') {SubStandard_A.StandardPkgTbl.Row1.TextField2.rawValue == ' ' ;}}

    I tried .rawValue == "", .rawValue == null, .clearItems

    Any help is greatly appreciated!

    Hello

    Just spotted your original script had a double == when assigning the value to the rawValue. You must use the double == equality test.

    Here is a sample.

    We hope that make you it work.

    Niall

  • Downloaded files disappear in 5 seconds. Show all downloads in the drop-down list is empty.

    It is a new problem. Unless I immediately open downloaded files - even a PDF - they left of Firefox in about 5 seconds and I have to go to download the windows folder to retrieve. I tried to change the settings for windows defender, I searched browser.download.scanwhendone in the config, but it wasn't there.
    I have my story never save settings, but still for many years.

    You need to keep the history if you want to keep visible downloads Manager downloads and on topic: downloads page.

    Firefox handles downloads in the downloads folder in the library (history > show history)

    • Downloads are treated as elements of history: history of compensation removes items from included download and vice versa.
    • When the downloads are in progress you see a download button animation on the toolbar for Navigation showing an estimate of the remaining time
    • The download button gets a blue highlight all completed once download to make you aware that there are new downloads.
    • Suspend and resume are in the context menu of an item.
    • You can open the connection: downloads page in a tab or a window for easy access.
  • Hide/Show Pages based on the drop-down list selection

    Hello

    It drives me crazy. I have 3 boxes in this form (attached) and based on what is checked, I want to hide the first page and navigate to the 1st box checked. It works for the Web Chat feature, but others do not. In addition, the button following Web Chat page, when I click Next, I have a pop alert that should show only if Web Chat is the only selection, but it shows little matter how many selections are made from the boxes.

    As always, any help is appreciated!

    Hi, check if it works properly now.

    Dallas

  • ROSS XPression Video Codec doesn't show is not in the drop-down list Adobe Media Encoder Video Codec

    I installed the ROSS XPression video Codec 5.7 on my computer, but Adobe Media Encoder does not see this codec in its list of video Codec available. Any suggestions on how to get this to appear in my video Codec codec pull down?

    Dave,

    Send me an email ([email protected]) with your version of XPression and I'll send you a link to the XPression Video Codec... In addition, you are on the Ross Video forums (community video Ross|) Homepage) for XPression? This is a place to share info and questions about all things Ross Video and XPression. Combined with this forum for Adobe, and I think you'll have a powerful set of user communities to look on...

    Patrick

  • ADF: How to hide a table with drop-down list value change listener

    Hello

    IM using Jdev 11 G.
    I have a 2 tables (table1 and table2) and a list of choices. (select a choice with id soc1).
    on the evolution of the values pickist, I have to run query for table1 and table2 to hide.
    For this, I gave the partial relaxation of the tables to soc1 (id select only one option) but its not working.
    How to solve this problem?

    Clues?

    Thank you.

    After you have set the wrong table 2 visible

    this.getTable2 () .setVisible (false);

    You programatically raise the PPR on the table 2?

    Something like:

    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getTable2());
    

    Arun-

  • Show/hide fields based on the drop-down list

    Hello

    I'm trying to show/hide subforms with a drop-down list selection. I found a lot of information on the subject and ended up with what my script:

     form1.Page1.Division::exit - (JavaScript, client)
    
    switch (Page1.Division.rawValue)
    {
       case "1":
       SubformZZI.presence = "visible";
       SubformZZR.presence = "hidden";   
          break;
     
       case "2":
       SubformZZI.presence = "hidden";
       SubformZZR.presence = "visible";       
          break;
    }
    
    

    However, it does nothing when a selection is made in the drop-down list. I have the "SubformZZI" initially defined as 'Visible' and the 'SubformZZR', originally defined as "hidden".

    Any suggestions?

    Kind regards

    ZeroZone

    Check if the form is saved in dynamic form. File-> save as and choose dynamic for the type of shape...

    Other that that, you should check if you have given the values for the selection of the drop-down list as '1' and '2' in the tab of the control's binding.

    Thank you

    Srini

  • 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

  • Change the content of the drop-down list

    Hello

    Is it possible to change the content of a drop-down list after its done?

    I have a dialog box, and based on user input, the drop-down list should change

    I saw the opportunity to add to a drop-down list, but I did see the possibility of changing the entire list

    Is this possible?

    Thank you

    Davey

    #targetengine test
    var w = new Window ('palette'),
        d1 = w.add('dropdownlist', undefined, [1,2,3,4,5]),
        b1 = w.add('button', undefined, "Slow Refresh"),
        b2 = w.add('button', undefined, "Fast Refresh"),
        myNewItems = [6,7,8,9,10];
    
    b2.onClick = function () {refreshList (myNewItems)};
    b2.onClick = function () {refreshList2 (myNewItems)};
    d1.onChange = function () {alert(d1.selection)};
    function refreshList (newItems) {
        var l = d1.items.length,
            c;
        while (l--) d1.remove(d1.children[l]);
        l = newItems.length, c;
        for (c = 0; c < l; c++) d1.add('item', newItems[c]);
    }
    
    function refreshList2 (newItems) {
        tempDropdownlist = w.add('dropdownlist', d1.bounds, newItems);
        tempDropdownlist.onChange = d1.onChange; // etc.
        w.remove (d1);
        d1 = tempDropdownlist;
    }
    w.show();
    

    Trevor

  • limit the max char for the drop-down list

    How is it possible to limit editing of a drop-down list, if the combo is configured as editable. Thank you.

    Cannot be done in the script... events that fire when the drop-down list is typed in don't work the same way.

    The only way I can get that uses the exit event add this javascript code:

    var

    strTemp = this.rawValue;

    If

    (strTemp.length > 5) {

    this.rawValue

    strTemp.substr = (0.5);

    App.Alert ("you have exceeded the limit of the tank.");

    }

    Where 5 corresponds to the length of the string that you will allow. The user can type in a long string, then it will warn and truncated to length.

    Paul

  • show/hide fields based on the drop-down list of choices

    I have a field from the drop-down list with three choices. Based on the selection, I need a specific text form field to appear and the others to stay hidden. (Or if it makes the code cleaner, the resulting field could be a drop-down list, too, with the selected choice.) I don't know Java well enough to extrapolate the code from the examples online and it fit my forms. I can provide an example of form. Thanks in advance for your help.

    There are ways to run this.  the easiest for you would be to add this script to the event (calculation of the Properties tab) to calculate the field that must be hidden.  Take notes, all "/ /" is some tips for you to understand the code.  You will need to put this script in all the areas you want to replicate the behavior, change the value depending on what you want to accomplish.  the word 'event' means myself to make you understand.

    If (this.getField("dropdown").value == 'put value here') {//replace "drop down" with the name of the drops}

    Event.Target.Display = display.visible;

    }

    else {}

    Event.Target.Display = display.hidden;

    }

    This works if you have a small amount of fields.  If you manage to have a large number of similar fields, let me know because there are other, faster ways.

  • Acrobat Pro XI - import Pdf when you use the drop-down list

    Hello Adobe community,

    WARNING: Newbie here

    I am trying to import an existing pdf, after that the user has selected an item in the drop-down list. For example; I have a form with a menu drop-down and three points on the list (caustic diesel, heavy and hydrocarbons). Each item in the list has its own PDF which must to be imported into the document if selected. Once the user has selected in the list, I need to import a pdf file into the existing document. I did some basic research, but can find no chance.

    Any tips or tutorials that I can search will be appreciated.

    Thank you

    Again, it is delicate. You can show/hide entire pages to convert them into models and by changing the value of their hidden property, but this only works in Acrobat. In Reader, you will need to convert the model pages, hide them and then use a script to spawn them when you want to show them and then delete them when you want to hide once more. Possible, but not easy to implement.

  • When we choose the radiobutton control should display the drop-down list of choices...

    Hello

    Can u help me pls how to get the drop-down list option when we choose control radiobutton in the same screen.

    When deselect us it, he must hide the drop on the with on screen no matter what accent...

    Thanks in advance...

    u r Correct.

    Acutally we work on popupscreen with transparency.

    I use the 4.3 sound support for setmargin(4.5 doesn't).

    I went through the doc 4.5 Finally I got the result.

    I need to set the drop down just below the dropdown list how can I without no hardcode... pls let me know...

    now iam using setmargin (encode);

    If you have any advice that can help me in pls reffer me programming skills.

    I wil get u was pushing for the next...

    Thank you for your way of orientation...

  • Downloaded brushes do not showing on right click in the drop-down list

    I recently reinstalled Photoshop cs5.1 and ran into a problem. My brushes installed is not appear on my right click in the drop-down list. I took old brooms and copied the folder to the new location. When I use these brushes there was once a large drop-down list when I right click anywhere on the canvas. It shows now that the brushes from base, but here's the thing that I can load and see them through the screening Manager, but they are not on my drop-down list, like they were before I reinstalled it.

    I noticed something weird, so this can help the solution I've noticed that some Photoshop files are saved on my second hard drive, but I don't know if this is the cause.

    The reason why I have reinstalled my acceleration is GPU did not work and had to reinstall to fix this. If any other information is needed, I'd be happy to share. It's just a hack my workflow time as I have to load my own brush singlely and if I load them all that I have to go through every single brush to find what I need.

    Thank you!

    I found a solution to my problem, it can help others! I run Windows 7 64-bit has two separate applications files when it is installed. I did a search of windows to one of the names of the available brushes on my right click list. The research showed me where were the brushes. (Example: I searched in windows: DP brushes) Aparently photoshop normally installs like a "32-bit" program at this location, C:\Program Files\Adobe\Adobe PhotoShop CS5.1\Adobe Photoshop CS5.1 (64 Bit) \Presets\Brushes that's where I copied my new brushes to and it showed again. Hope this helps someone who was in my situation!

Maybe you are looking for