Change image when form dropdown list value is selected

I really thought this would be simpler but I just can't get it working.
I have a submit from from paypal with a dropdown list. The list allows you to select color. I want to change an image on the page to display the appropriate color when the color is selected from the drop down list. So a black image shows up when black is selected, a red when red - etc...
I would be very grateful if someone can share some succinct, browser compatible code. Thank you so much for any help you can provide.
Bill

Thanks so much.  I used your info from above and am in the process of creating a product configurator for our products.  Do you see any problems/issues etc or ways to make this script better?  I don't have most of the images there yet, but if you choose big boy chair and then choose navy/powder/black fabric and most accent colors you should see it working (in FireFox anyway).  Not sure why it isn't working in IE.  Any ideas?
Here's the link:
http://logochairs.com/j25cms/index.php/customform/test-form
And here's my code:
<script type="text/javascript">
<!--
function logo_prodImgBySel(objId,theValue) {
var cobaseimages=["/j25cms/images/customimages/blank.jpg","/j25cms/images/customimages/11/base.jpg", "/j25cms/images/customimages/12/base.jpg", "/j25cms/images/customimages/13/base.jpg", "/j25cms/images/customimages/15/base.jpg", "/j25cms/images/customimages/20/base.jpg", "/j25cms/images/customimages/23/base.jpg", "/j25cms/images/customimages/24/base.jpg", "/j25cms/images/customimages/25/base.jpg", "/j25cms/images/customimages/27/base.jpg", "/j25cms/images/customimages/32/base.jpg", "/j25cms/images/customimages/35/base.jpg", "/j25cms/images/customimages/39/base.jpg", "/j25cms/images/customimages/41/base.jpg", "/j25cms/images/customimages/42/base.jpg", "/j25cms/images/customimages/48/base.jpg", "/j25cms/images/customimages/50/base.jpg", "/j25cms/images/customimages/51/base.jpg", "/j25cms/images/customimages/52/base.jpg", "/j25cms/images/customimages/54/base.jpg", "/j25cms/images/customimages/56/base.jpg", "/j25cms/images/customimages/57/base.jpg", "/j25cms/images/customimages/58/base.jpg", "/j25cms/images/customimages/60/base.jpg", "/j25cms/images/customimages/62/base.jpg", "/j25cms/images/customimages/64/base.jpg", "/j25cms/images/customimages/65/base.jpg", "/j25cms/images/customimages/68/base.jpg", "/j25cms/images/customimages/69/base.jpg", "/j25cms/images/customimages/71/base.jpg", "/j25cms/images/customimages/72/base.jpg", "/j25cms/images/customimages/74/base.jpg", "/j25cms/images/customimages/77/base.jpg", "/j25cms/images/customimages/78/base.jpg", "/j25cms/images/customimages/79/base.jpg", "/j25cms/images/customimages/80/base.jpg", "/j25cms/images/customimages/82/base.jpg", "/j25cms/images/customimages/83/base.jpg", "/j25cms/images/customimages/84/base.jpg", "/j25cms/images/customimages/90/base.jpg", "/j25cms/images/customimages/94/base.jpg"];
    var d=document;
    theValue=cobaseimages[theValue];
    if (!theValue || !d.getElementById ) return;
    var obj = d.getElementById(objId);
    if (obj) obj.src=theValue;  
<!--
function logo_prodImgPrim(objId,theValue) {
  var coimageprimary1='/j25cms/images/customimages/';
var coimageprimary25= document.getElementById('ff_elem368');
var coimageprimary2= coimageprimary25.options[coimageprimary25.selectedIndex].value; 
var coimageprimary3='/primary/';
var ttt='Powder.png';
var mypath=(coimageprimary1 + coimageprimary2 + coimageprimary3);
  var coPrimaryimages=['/j25cms/images/customimages/blank.png',(mypath + 'White.png'),
(mypath + 'Black.png'),
(mypath + 'Lemon.png'),
(mypath + 'Yellow.png'),
(mypath + 'Gold.png'),
(mypath + 'Tangerine.png'),
(mypath + 'Rust.png'),
(mypath + 'Orange.png'),
(mypath + 'Carrot.png'),
(mypath + 'Red.png'),
(mypath + 'Cardinal.png'),
(mypath + 'Garnet.png'),
(mypath + 'Maroon.png'),
(mypath + 'Purple.png'),
(mypath + 'Powder.png'),
(mypath + 'Navy.png'),
(mypath + 'Royal.png'),
(mypath + 'Hunter.png'),
(mypath + 'Gray.png'),
(mypath + 'Charcoal.png'),
(mypath + 'Khaki.png'),
(mypath + 'Vegas.png'),
(mypath + 'Kelly.png'),
(mypath + 'Pink.png'),
    var d=document;
    theValue=coPrimaryimages[theValue];
    if (!theValue || !d.getElementById ) return;
    var obj = d.getElementById(objId);
    if (obj) obj.src=theValue;  
  <!--
function logo_prodImgSec(objId,theValue) {
  var coimagesecondary1='/j25cms/images/customimages/';
var coimagesecondary25= document.getElementById('ff_elem368');
var coimagesecondary2= coimagesecondary25.options[coimagesecondary25.selectedIndex].value; 
var coimagesecondary3='/accent/';
var ttt='Powder.png';
var mypathz=(coimagesecondary1 + coimagesecondary2 + coimagesecondary3);
  var coSecondaryimages=['/j25cms/images/customimages/blank.png',(mypathz + 'White.png'),
(mypathz + 'Black.png'),
(mypathz + 'Lemon.png'),
(mypathz + 'Yellow.png'),
(mypathz + 'Gold.png'),
(mypathz + 'Tangerine.png'),
(mypathz + 'Rust.png'),
(mypathz + 'Orange.png'),
(mypathz + 'Carrot.png'),
(mypathz + 'Red.png'),
(mypathz + 'Cardinal.png'),
(mypathz + 'Garnet.png'),
(mypathz + 'Maroon.png'),
(mypathz + 'Purple.png'),
(mypathz + 'Powder.png'),
(mypathz + 'Navy.png'),
(mypathz + 'Royal.png'),
(mypathz + 'Hunter.png'),
(mypathz + 'Gray.png'),
(mypathz + 'Charcoal.png'),
(mypathz + 'Khaki.png'),
(mypathz + 'Vegas.png'),
(mypathz + 'Kelly.png'),
(mypathz + 'Pink.png'),
    var d=document;
    theValue=coSecondaryimages[theValue];
    if (!theValue || !d.getElementById ) return;
    var obj = d.getElementById(objId);
    if (obj) obj.src=theValue;  
function clear_OnChange()
var combo = document.getElementById('ff_elemPriColor');
combo.selectedIndex = "0";
var combo2 = document.getElementById('ff_elemSecColor');
combo2.selectedIndex = "0";
</script>
<div id="product1image_a" style="position: relative; float: right; top: -20px; right: 0px; width: 250px; height: 250px; border: 2px solid darkgray; box-shadow: 5px 5px 5px rgb(136, 136, 136);">
  <img width="250" height="250" style="position:absolute;bottom:0px;right:0px;" id="theImg" src="images/customimages/blank.jpg" alt="" />
  <img id="thePrimary" style="position:absolute; bottom:0px; right:0px; width:250px;" src="images/customimages/blank.png">
  <img id="theAccent" style="position:absolute; top:0px; left:0px; width:250px;" src="images/customimages/blank.png">
</div>
<span id="bfElemWrap368" class="bfElemWrap bfLabelLeft">
<label id="bfLabel368" for="ff_elem358">Product Line</label>
<select id="ff_elem368" name="ff_nm_prod1[]" onchange="logo_prodImgBySel('theImg',this.selectedIndex);clear_OnChange();logo_prodImgPrim('thePrim ary',this.selectedIndex);logo_prodImgSec('theAccent',this.selectedIndex);" class="ff_elem">
<option value="" selected="selected"></option>
<option value="11">Big Boy Chair</option>
<option value="12">Deluxe Chair</option>
<option value="13">Canvas Chair</option>
<option value="15">Sphere Chair</option>
<option value="20">Toddler Chair</option>
<option value="23">Classic Fleece</option>
<option value="24">Sherpa Throw</option>
<option value="25">Fleece Throw</option>
<option value="27">UltraSoft Blanket</option>
<option value="32">Tailgate Table</option>
<option value="35">Trashcan Cooler</option>
<option value="39">Economy Tent</option>
<option value="41">Color Tent</option>
<option value="42">Checkerboard Tent</option>
<option value="48">Side Panel</option>
<option value="50">12 Pack Cooler</option>
<option value="51">Luggage Set</option>
<option value="52">Rolling Duffel</option>
<option value="54">Sport Duffel</option>
<option value="56">Lunch Pail</option>
<option value="57">Rolling Cooler</option>
<option value="58">Party Bucket</option>
<option value="60">Picnic Cooler</option>
<option value="62">Backpack</option>
<option value="64">String Pack</option>
<option value="65">Reversible Tote</option>
<option value="68">Seat Blanket Combo</option>
<option value="69">Stadium Seat with Arms</option>
<option value="71">Stadium Cushion</option>
<option value="72">Gym Bag</option>
<option value="74">Sweatshirt Blanket</option>
<option value="77">Round Coozie</option>
<option value="78">Flat Coozie</option>
<option value="79">Bottle Coozie</option>
<option value="80">Stadium Seat</option>
<option value="82">8-Can Cooler Tote</option>
<option value="83">16-Can Cooler Tote</option>
<option value="84">30-Can Cooler Tote</option>
<option value="90">Camping Stool</option>
<option value="94">Hardback Seat</option>
  </span>
</select>
<span id="bfElemWrapPriColor" class="bfElemWrap bfLabelLeft">
<label id="bfLabelPriColor" for="ff_elemPriColor">Primary Fabric</label>
<select id="ff_elemPriColor" name="ff_nm_prodcolor[]" onchange="logo_prodImgPrim('thePrimary',this.selectedIndex)" class="ff_elem">
<option value="" selected="selected"></option>
<option value="White">White</option>
<option value="Black">Black</option>
<option value="Lemon">Lemon</option>
<option value="Yellow">Yellow</option>
<option value="Gold">Gold</option>
<option value="Tangerine">Tangerine</option>
<option value="Rust">Rust</option>
<option value="Orange">Orange</option>
<option value="Carrot">Carrot</option>
<option value="Red">Red</option>
<option value="Cardinal">Cardinal</option>
<option value="Garnet">Garnet</option>
<option value="Maroon">Maroon</option>
<option value="Purple">Purple</option>
<option value="Powder">Powder</option>
<option value="Navy">Navy</option>
<option value="Royal">Royal</option>
<option value="Hunter">Hunter</option>
<option value="Gray">Gray</option>
<option value="Charcoal">Charcoal</option>
<option value="Khaki">Khaki</option>
<option value="Vegas">Vegas</option>
<option value="Kelly">Kelly</option>
<option value=

Similar Messages

  • Me21n change line item dropdown list value

    hi experts,
    i have a requirement to automatically remove the aulty po line item when user click on CHECK or SAVE button, i done this by removing the record from ETT[] and POT[] at ENHANCEMENT-POINT mm06ef0p_pruefen_01 SPOTS es_mm06ef0p_pruefen INCLUDE BOUND.
    it is working fine except one scenario which is, if the faulty line item is 00020, and the line item dropdown list is selected line item 20, after i removed the record from POT[], it hits abap runtime error. when i check at debugger, it is caused by system will look for line item 00020 ( follow dropdown list value ) but the record is removed, so come to error... it is working fine if the dropdown list is selected line item 10.
    so i am looking for a way to change the dropdown list value.
    or you all have some other suggestion?
    please help... i need it urgently coz i have been solving the problem for 2 weeks....
    thanks a lot

    Hi,
    generally it's not a good idea to delete item without using standard method. You can see one example why it is usually complicated. Maybe I have a workaround for you. You can try to use BADI ME_PROCESS_PO_CUST. There is a method CHECK where you get reference to PO header. You can easily get references to your items by calling method GET_ITEMS. So you will perform your check for each item and for wrong items you will call method INVALIDATE. This item will be marked as invalid and it will not be posted. Here I do not know how it will be displayed to user. Maybe the user will have to delete this item manually.
    Cheers

  • Max length of Dropdown list value

    Hello,
    I wanted to know the maximum length that a dropdown list value can have in an offline Adobe form. Any help would be appreciated.
    Thanks,
    Rohini.

    Hi,
    Its always better to keep the no: of values in the drop down to hundreds.
    If you are running to 1000's, go for some other options like asking the user to enter the value and then do the check for that specific value. Also, usability of the drop down will be worse, if it has more values (just think of you selecting a value from a list of 10000 values - sorted or not).
    It may also result in the scroll bar growing so thin that it disappears, do try it out yourselves by increasing the values to about 130000 [:)].
    Thanks and Best Regards,
    Anto.

  • Dropdown list with multiple selections

    I need to create a dropdown list in a selection screen and allow the user to select more than one option. Can this be done. I know how to use VRM_SET_VALUES to create a dropdown but it restricts me to selecting only one value. The user should be able to select multiple values. Thank you.

    Hello,
    Try to use this Fm
    PARAMETERS :
    y_p_list TYPE char32  AS LISTBOX VISIBLE LENGTH 22
                                  MODIF ID rsg. .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR y_p_list.
      PERFORM y_f_dring_type_f4.
    FORM y_f_file_frmt_f4 .
      MOVE: text-212 TO y_wa_listbox1-field.
      APPEND y_wa_listbox1 TO y_i_listbox1.
      CLEAR y_wa_listbox1.
      MOVE  text-213 TO y_wa_listbox1-field.
      APPEND y_wa_listbox1 TO y_i_listbox1.
      CLEAR y_wa_listbox1.
      MOVE  text-214 TO y_wa_listbox1-field.
      APPEND y_wa_listbox1 TO y_i_listbox1.
      CLEAR y_wa_listbox1.
      MOVE  text-215 TO y_wa_listbox1-field.
      APPEND y_wa_listbox1 TO y_i_listbox1.
      CLEAR y_wa_listbox1.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'FIELD'
          dynpprog        = sy-repid
          stepl           = 1
          value           = ' '
          value_org       = 'S'
          display         = ' '
        TABLES
          value_tab       = y_i_listbox1[]
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
      REFRESH y_i_listbox1.
    ENDFORM.                    " y_f_file_frmt_f4
    Use this code you will get the List box in selection screen.

  • Problem in mapping dropdown list  values with the queries

    hi,
    I am building a simple applicaittion of currency conversion.
    The scenario :
    I have a input form with a dropdown list and a input field to enter the amount
    I have created the drop down list with the respective details
    Value   Desc
    1          dollarToeuro
    2          euroTodollar 
    when the user selects the first option in the drop down list and then enters the value and gives a submit -> the conversion takes place
    but evrytime i select the second option --> the application hangs..
    i have given a guard condition in the submit action for each if the query as LIKE(@option,"1") OR LIKE(@option,"2") for the respective queries.
    Please can someone tell me where i am going wrong???
    Regards,
    Vaishali

    Hi ,
    what is the need of ur gaurd condition there?
    and try to run the model without that guard condition.
    Regards,
    Govindu

  • Dropdown List Value Test For Null || " "

         I wrote a pre-sign script to test a for a value in a dropdown list before allowing signature of the document. However I want to test for a value of null in addtion to one space aka " ". I added a value in the dropdown list of " " along with the choices of names so users could erase an accidental selection in this list before they were ready. However when I place the or ( || ) operator in the if statement of the script the script doesn't work. If I remove the || " " statement the script works as it is supposed to. How do I test for this value of " " along with the null test so I don't have to write another if statement?
    if (form1.Page3.Author.Reviewed.Admin.rawValue == null || " ")
    xfa.event.cancelAction = 1
    xfa.host.messageBox("You did not select your name on the dropdown list before trying sign the document .");
    else

    Your if statement is incomplete. You need to put the test in again for the other value:
    if (form1.Page3.Author.Reviewed.Admin.rawValue == null || form1.Page3.Author.Reviewed.Admin.rawValue == " ")

  • UI not getting change update when working with LIST and INotifyPropertyChanged

    i was trying to know two way data binding. i have simple car class which extend INotifyPropertyChanged for notify the change to update UI. bind List object to few textboxes and notice when one textbox value change then other textbox value not updated. all
    textboxes bind to same property. so one's value change should propagate to other textboxes.
    this is my code
    public class Car : INotifyPropertyChanged
    private string _make;
    private string _model;
    private int _year;
    public event PropertyChangedEventHandler PropertyChanged;
    public Car(string make, string model, int year)
    _make = make;
    _model = model;
    _year = year;
    public string Make
    get { return _make; }
    set
    _make = value;
    this.NotifyPropertyChanged("Make");
    public string Model
    get { return _model; }
    set
    _model = value;
    this.NotifyPropertyChanged("Model");
    public int Year
    get { return _year; }
    set
    _year = value;
    this.NotifyPropertyChanged("Year");
    private void NotifyPropertyChanged(string name)
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(name));
    This way i bind
    Car carTest;
    private void Form1_Load(object sender, EventArgs e)
    carTest = new Car("Ford", "Mustang", 1967);
    List<Car> ol = new List<Car>();
    ol.Add(carTest);
    this.textBox1.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
    this.textBox2.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
    this.textBox3.DataBindings.Add("Text", ol, "Make");
    when run the code then Ford was showing as make name but when change value in any textbox then that change is not shown in other textboxes.
    the moment i change this line List<Car> ol = new List<Car>(); to
    BindingList<Car> ol = new BindingList<Car>(); then code started to work fine.
    My Question
    1) what is the difference between List and BindingList class ?
    2) can't we use List<> for my situation instead of BindingList
    3)
    this.textBox2.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
    this.textBox3.DataBindings.Add("Text", ol, "Make");
    see the above code and tell me what is the advantage of using DataSourceUpdateMode.OnPropertyChanged because i have seen if we do not use this code
    DataSourceUpdateMode.OnPropertyChanged then also data change is propagated to other textbox when cursor focus change.

    I would have thought that'd work with List<t>, in fact I think there must be something wrong in your code there.  I can't spot it though.
    I recommend use of ObservableCollection rather than BindingList.
    The default on bindings is that changes are propagated from the target ( view ) to source ( vm ) when the control loses focus.
    If you want to do the equivalent to a keydown event handler in a viewmodel then onpropertychanged is the way to go.
    You want to avoid creating bindings in code unless you really really have to, it's way easier to put them in xaml.
    Even if your ui is dynamic, you can build xaml and use that to create the ui objects:
    http://social.technet.microsoft.com/wiki/contents/articles/28797.aspx
    The difference between BindingList and List is, literally, iBindingList.
    See
    https://msdn.microsoft.com/en-us/library/system.componentmodel.ibindinglist%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    What probably isn't very obvious is that BindingList fires an event - iirc  itemchanged when properties on objects in it change.
    Maybe you did something wrong in your implementation of inotifypropertychanged.  I must admit, I can't see anything there though.
    You don't really need those magic strings since .net4.5 and you also don't need to explicitly implement inotifypropertychanged you could use:
    public event PropertyChangedEventHandler PropertyChanged;
    public void RaisePropertyChanged([CallerMemberName] String propertyName = "")
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    As used in this:
    https://gallery.technet.microsoft.com/WPF-Dynamic-Fonts-ad3741ca
    If you try that sample you can have:
    public class FontDetails : INotifyPropertyChanged
    or
    public class FontDetails
    And you can see it still notifies change successfully to both windows.
    Most wpf devs will use observablecollection rather than List or bindinglist.
    Observablecollection notifies addition or removal of entries.  It can be used to notify an entry has changed, but does not detect change of property.  You would have to raise the event in code if you want to tell it an item changed.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • Ajax tabs not working when asp dropdown list in the tab

    I am using asp.net 3.5 framework. My page has modelpopup in that ajax tab controls used. one of the tab has asp:dropdownlist, this dropdown list is binding data from dataset. the tab which has dropdown lists is not working. it is working fine in IE9.0.
    Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

    changed to enableEventValidation="false", then it is working fine.

  • Generate Comp based on dropdown list and checkbox selection?

    I currently have a dropdown list with three sizing options in it. Then I have two check mark boxes, one if checked ideally would create the template at its normal composition size and if the other checkbox is checked it would inverse the widthxheight of the composition size. Then below that I have a "generate" button that I want to be able to click and depending on my selections it creates the comp.
    It sounds like I need some sort of if then statement but I'm having a hard time putting the two together. See below what I have so far.
    There may be parts missing but I have it all working in a decibel pallate currently. I just don't have the functionality tied to a button yet.
    Any help would be much appreciated!!!
    (also I don't know how to format the extend script on here so apologies for that)
    // palette controls
    templateGen.VerticalCheckbox     = new Object();
    templateGen.HorizontalCheckbox    = new Object();
    // define values for the controls
    templateGen.comLookup            = new Object();
    templateGen.compLookup          = 'Template1';
    templateGen.compLookup          = 'Template2';
    templateGen.compLookup          = 'Template3';
    function templateGen_getHashValues(hash)
      var ary = new Array();
      for (k in hash) {
      ary.push(hash[k]);
      return ary;
    // "composition" menu
       var panelGrp1 = templateGen.palette.add('Panel', undefined, 'Comp Templates');
      compGrp1 = panelGrp1.add('group', undefined, 'Templates List');
      compGrp2 = panelGrp1.add('group', undefined, 'Orientation');
      compGrp3 = panelGrp1.add('group', undefined, 'Generate');
      templateGen.compList                                             = compGrp1.add('dropdownlist', LIST_DIMENSIONS, templateGen_getHashValues(bapple.compLookup));
      templateGen.compList.helpTip                                = "Choose the type device template you want here. All comps are 60fps.";
      templateGen.compList.selection                             = 'Template1';
      templateGen.compList.graphics.foregroundColor  = darkColorBrush;
      templateGen.VerticalCheckbox                           = compGrp2.add('checkbox', undefined, 'Vertical');
    templateGen.VerticalCheckbox .value = true;
      templateGen.HorizontalCheckbox                          = compGrp2.add('checkbox', undefined, 'Horizontal');
      templateGen.HorizontalCheckbox .value = false;
    templateGen.generateBtn1      = compGrp3.add('button', undefined, 'Generate');
      //applyBtn.onClick =????;

    When I work with dropdowns I always like to attach the data they represent (like width and height of the comp in this case) directly to the items.
    I didn't execute the code to really check it, but it should work like this:
    // add templates to your dropdown and store the items in an array
    var templates = [];
    templates[0] = templateGen.compList.add('item','template1');
    templates[1] = templateGen.compList.add('item','template2');
    templates[2] = templateGen.compList.add('item','template3');
    // attach a width and height to each item
    templates[0].width= 1280;
    templates[0].height= 720;
    templates[1].width= 1024;
    templates[1].height= 768;
    templates[2].width= 1920;
    templates[2].height= 1080;
    // choose the item that should be selected by default
    templates[0].selected = true;
    applyBtn.onClick = function(){
            // read the width and height from the selected item
            var width = templateGen.compList.selection.width;
            var height =templateGen.compList.selection.height;
            if(templateGen.VerticalCheckbox.value){
                  // swap width and height
                  var temp = width;
                  width = height;
                  height = temp;
            // now create your comp here with the given width and height

  • Prepopulate dropdown list based on selections made in other fields

    I wonder if anyone can help?
    A form with a radio button group containing two radio buttons "yes" and "no".
    Below the radio buttons is a dropdown list that has three items in the list "option A, option B, & option C.
    Below that, is another dropdown list, with three items, "10000", "15000" & "20000"
    How can I do the following?
    When radio button "yes" is selected, and dropdown list "option A is selected, it prepopulates "10000" in the bottom dropdown list
    When radio button "yes" is selected, and dropdown list "option B is  selected, it prepopulates "15000" in the bottom dropdown list
    When radio button "yes" is selected, and dropdown list "option C is  selected, it prepopulates "20000" in the bottom dropdown list
    Thanks in advance!

    Hi $Nith$
    Just sent you a PM

  • Headers in Dropdown lists? (Non-selectable items)

    Does any one know how to make headers in dropdown lists? I have 2 groups of items I want to add a header for each in the dropdown list. The headers just have to be non selectable.
    thanks,

    Hi Kris,
    In Designer 7.1, I created a DropDown List which includes Headers and sub categories under these headers, where the Headers are not selectable. When I built my DropDownList I then assigned Values to each item in the list, which I've put in brackets for you:
    HEADER ONE (10)
    Item A (1)
    Item B (2)
    Item C (3)
    HEADER TWO (11)
    Item X (4)
    Item Y (5)
    Item Z (6)
    This is the JavaScript I wrote on the Exit event:
    if (DropDownList.rawValue > 10) {
    DropDownList.rawValue = "";
    Hopes this works for you.

  • Populate cc field based on dropdown list values

    I know this question has been posted before, but I'm very new at this, and the answers I've found so far are over my head.
    I'm trying to create a submit button that will not only e-mail to a specific address, but also carbon copy someone when their name is selected in a drop-down list on the form.
    I don't know much about javascript - and that seems to be the way to get this done - but I don't know the syntax or where to enter the JS to get this functionality. The field I am using is called 'Supervisor1', and I've assigned values (e-mail addresses) to each of the names in the drop-down.
    Can someone help me get this done?
    Thanks in advance!

    Hi,
    this scenario is not covered by the macro, but it's not that complicated to handle.
    1. Select the button with the script you generated with the macro.
    2. Now wrap the mail function into an if-expression.
    This sample checks if var0 or var1 is null.
    var var0 = xfa.resolveNode("Formular1.#subform.Dropdown1").rawValue;
    var var1 = xfa.resolveNode("Formular1.#subform.Textfield1").rawValue;
    if (var0 === null || var1 === null) {
              xfa.host.messageBox("Please select an item from the drop down box first!");
    } else {
              event.target.mailDoc({
                        bUI: false,
                        cTo: var1,
                        cCc: var0,
                        cBcc: '',
                        cSubject: 'Testmail',
                        cMsg: 'Hello,\n\nhere is the final form data. \n\nKind regards\nMe'

  • Change image size (but only one value)

    Is there a way to resize an image using Automator but only change one of the values? Example, I have images (.jpg) that are 1440x1080 but I want to change them to be1920x1080.
    Dual 2.7 G5/ Dual 2.0 G5   Mac OS X (10.4.6)   30" Apple Monitors, Final Cut Studio

    I am exporting a still image from a HDV timeline in Final Cut Pro. The problem is that the video originally is 1920 x 1080 but when you bring it into FCP it makes it 1440 x 1080. While editing, FCP makes the video look like the original resolution, but when a still is exported it looks smashed in from the sides. Bringing it in to Photoshop I just change the resolution from 1440 x 1080 to 1920 x 1080 the picture looks like the original video resolution. I offen times have several stills and I was looking for a quick way to change them quickly. I work with our police department and get various videos to make still images, then they email the pictures to other police agencies. Our countywide drug enforcement agency is going to get a new video camera and I think they should get a HDV camera, the stills from HDV is much better that from regular DV video.
    Dual 2.7 G5/ Dual 2.0 G5   Mac OS X (10.4.6)   30" Apple Monitors, Final Cut Studio

  • If / then calculation based on dropdown list value in repeating row

    Hello
    I am new to Livecycle. I have created a repeating row in a form. The last field in the repeating row is a numeric field that = the product of two previous fields in the row (NumericField1 *  Numeric Field2). I also have a DropDownList1 near the beginning of the row (third column) that contains variable categories for that calculation row, e.g. Advertising, Office Supplies, Entertainment. I would like to create numeric fields in the form (perhaps in a footer row?) that contain sums of the subtotals of each row, depending on the category selected in DropDownList1. In other words I need to create a subtotal field for all calculations beginning with the category of Advertising, another for Office Supplies, another for Entertainment.
    From what I understand I need to list the variables first, then create an if/then calculation but I am not sure about the steps involved in creating the script.
    df

    NumericField3 is the name of the field containing the product of NumericField1 * NumericField2. I have created a NumericField8 in the form with the following calculation in FormCalc:
    if(Table1.Row.DropDownList1.rawValue == "ADVERTISING") then
    sum(Table1.Row[*].NumericField3)
    end if
    That's not helping. I think I need to designate variables before the if/then script, yes? Would I need to use a resolve command, a getfield command, or . . .? Can anyone help?
    Thanks, in advance,
    df

  • Change image  when reload

    What is the best way to have a specific image change, or rotate through a series of images so there will be something different show up each time the page loads? Back in my GoLive days their was an easy behavior (maybe they were called actions then) that could be applied. I assume Dreamweaver also has a behavior for this but I cannot find it.
    I am using Dreamweaver CS5 on  Windows7.

    Hi,
    I remember this thread: http://forums.adobe.com/thread/766566?tstart=0
    Hans-G.

Maybe you are looking for

  • Fusion drive lack of response and system freeze

    I have a 2013 iMAC with fusion drive. I find that I get very slow response when I open a folder in finder - it takes anything up to 10 seconds for the contents of that folder to be displayed.  I also get the system just hang when I do simple photosho

  • Payment being taken despite cancellation?

    Payment is still being taken (2 extra months) since I deleted Photoshop. I went onto "manage account" but it is not listed as an app, yet the money keeps coming out my account each month for Photoshop. Can anyone tell me how this can be cancelled and

  • Music player in 5800 XpressMusic

    music player update 15.2 is not working. There is no lyrics option at all! Solved! Go to Solution.

  • Territories Related Information Section

    Hi All In the Automotive edition, on the Dealer detail page, there is a Territories related information section that does not appear to be linked to the Territories that I have set up in my Territory Management. Are these not the same? Am not sure if

  • Verizon DSL and Airport Extreme

    I'm going to add aniBook (oe whatever Apple will call it by then) this spring, as I want to enjoy the wi fi fun like evryone else. My ISP is Verizon DSL, and I was wondering if anyone else here in the discussion board is currently using an Ibook with