Is it possible to have a combo box change an image on a form?  How do you do it?

I would like to have an area in one of my PDF forms where a combo box with 8 items changes an image near the combo box.  8 items 8 images.  if you select item 3 in the list then image 3 is displayed in the image area or field. 
Is this possible?  Might someone guide me as to what steps are necessary.  I can make this happen with web, asp, c++ etc.  I just don't know how to do it in adobe if it's possible.
example below.
Any help or guidence is appreciated.

Here's a sample that demonstrates what you want: https://acrobat.com/#d=It35dD4zaX5QM--Pv36F-Q
The buttons on the right hand side would normally be hidden and you can use anything you want for their icon, even though in this case it's just text. You'll have to study the JavaScript to see how it works. There are two functions in a document-level JavaScript, one of which is called from the combo box's Keystroke event. Also, note the export values of the items in the list and how the script uses them.

Similar Messages

  • I have to combo box content change based on the selection on the other

    I have huge unsolve problem where by I have to combo box change content of the combo box based on the selection in the first combo box . The problem is The value changes do not have effect on the second combo box. Below is the content of the coding used for both the combo box.
    function setReasonCode(obj){
                         <%String sql_query3 = "SELECT DISTINCT (ir_tran_typ) "+
                                              "  FROM intrcd ";
                               System.out.println("trans type"+sql_query3 );           
                                try{
                                    rset = db.execSQL(sql_query3);
                                catch(SQLException e) {
                                    System.err.println("Error in query - intrcd - transaction_main.jsp " +e +" sql " +sql_query3);
                                while(rset.next()){
                                    tran_cde = rset.getString("ir_tran_typ");
                                            tran_typ.addElement(rset.getString("ir_tran_typ"));
                                            System.out.println("trans type 34 "+tran_typ );%>
                                            <% }%>
                                          alert(obj.value);
                                  <%for(int i=0 ;i<tran_typ.size();i++){
                                     System.out.println("trans type 222  "+ tran_typ.size());
                                       tran_cde =tran_typ.elementAt(index).toString();%>
                                       <%System.out.println("trans type before "+ tran_cde);%> 
                                        eval(document.all.tran_cde.option
                                      if(D == <%=tran_cde%> ){
                                       <%System.out.println("trans type D"+ tran_cde);%>     
                                       <%String sql_query2 = "SELECT ir_rea_cde,ir_rea_desc"+
                                              "  FROM intrcd"+
                                              " WHERE ir_tran_typ = 'D' " +
                                                        " ORDER BY ir_rea_cde ";
                               System.out.println("query"+ sql_query2);           
                                try{
                                    rset = db.execSQL(sql_query2);
                                catch(SQLException e) {
                                    System.err.println("Error in query - emmast2 - transaction_main.jsp " +e +" sql " +sql_query2);
                                        index = 1;
                                while(rset.next()){
                                        rea_cde = rset.getString("ir_rea_cde");
                                        rea_desc =  rset.getString("ir_rea_desc");
                                       tran_typ.removeAllElements();
                                       }%>
                                  if( R == obj.value){
                                       alert(R)
                                      if(R== <%=tran_cde%> ){
                                       <%System.out.println("trans type R"+ tran_cde);%>     
                                       <% sql_query2 = "SELECT ir_rea_cde,ir_rea_desc"+
                                              "  FROM intrcd"+
                                              " WHERE ir_tran_typ = 'R' " +
                                                        " ORDER BY ir_rea_cde ";
                               System.out.println("query 2"+ sql_query2 );           
                                try{
                                    rset = db.execSQL(sql_query2);
                                catch(SQLException e) {
                                    System.err.println("Error in query - intrcd - transaction_main.jsp " +e +" sql " +sql_query2);
                                        index = 1;
                                while(rset.next()){
                                        rea_cde = rset.getString("ir_rea_cde");
                                        rea_desc =  rset.getString("ir_rea_desc");
                                       }%>
              <%}%>
                }

    Not unless you know which file in the app sets the choices. I've been through it pretty thoroughly and can't find the one.

  • How to populate data in the data table on combo box change event

    hi
    i am deepak .
    i am very new to JSF.
    my problem is i want to populate data in the datatable on the combo box change event.
    for example ---
    combo box has name of the city. when i will select a city
    the details of the city should populate in the datatable. and if i will select another city then the datatable should change accordingly..
    its urgent
    reply as soon as possible
    thanks in advance

    i am using Rational Application Developer to develop my application.
    i am using a combo box and i am assigning cityName from the SDO.
    and i am declaring a variable in the pageCode eg.
    private String cityName;
    public void setCityName(String cityName){
    this.cityName = cityName;
    public String getCityName(){
    return cityName;
    <h:selectOneMenu id="menu1" styleClass="selectOneMenu" value="#{pc_Test1.loginID}" valueChangeListener="#{pc_Test1.handleMenu1ValueChange}">
                        <f:selectItems
                             value="#{selectitems.pc_Test1.usercombo.LOGINID.LOGINID.toArray}" />
                   </h:selectOneMenu>
                   <hx:behavior event="onchange" target="menu1" behaviorAction="get"
                        targetAction="box1"></hx:behavior>
    and also i am declaring a requestParam type variable named city;
    and at the onChangeEvent i am writing the code
    public void handleMenu1ValueChange(ValueChangeEvent valueChangedEvent) {
    FacesContext context = FacesContext.getCurrentInstance();
    Map requestScope = ext.getApplication().createValueBinding("#{requestScope}").getValue(context);
    requestScope.put("login",(String)valueChangedEvent.getNewValue());
    and also i am creating another SDO which is used to populate data in datatable and in this SDO in the where clause i am using that requestParam .
    it is assigning value in the pageCode variable and in the requestParam but it is not populating the dataTable. i don't no why??
    it is possible that i may not clear at this point.
    please send me the way how my problem can be solved.
    thanks in advance

  • Is it possible to have a 'file upload' option on an Adobe Muse Form. Is there a widget for this?

    Is it possible to have a 'file upload' option on an Adobe Muse Form. Is there a widget for this?

    Hi
    Please refer to this thread, Upload file button

  • Has anyone experienced problems with Mackeeper? I did not complete downloading this software. Yet, occasionally when on the internet, I will have the MacKeeper multi-colored circle replace my pointer. How do you deal with this?

    Has anyone experienced problems with Mackeeper? I did not complete downloading this software. Yet, occasionally when on the internet, I will have the MacKeeper multi-colored circle replace my pointer. How do you deal with this?

    Welcome to Apple Support Communities
    Don't download MacKeeper. Users complain about this app and it damages OS X. Also, Mac OS X knows how to take care of itself, so you don't need any other cleaning application that may damage OS X. See > https://discussions.apple.com/docs/DOC-3691

  • Can you have two seperate acounts on one MAC and if so how do you do it?

    Can you have two seperate acounts on one MAC and if so how do you do it?

    Look at Method One in this document:  How to use multiple iPods, iPads, or iPhones with one computer, http://support.apple.com/kb/HT1495

  • Is it possible to have one search box search many fields? ( and "autocomplete" the results)?

    I'm really new to the whole area of JSON, autocomplete and javascript. My first project in this area is personal: making it easier to search for wines in my wine cellar.
    I have all my wines in a sqlite database (driven by CF 9 of course) and have a nice UI to report on, add, modify, delete, etc.  What I want to add is a search capability that works like this:  a user types text in a search box in any order they want and automagically, the wine is found. 
    To be specific, a user could start with "2005 Caymus" and the area below the text search box would be populated with all of the varietals of Caymus for 2005 that are in the cellar.   Similarly the user might start the search by typing "2005 Cabernet" in which case anything in the cellar that is from 2005 and a Cabernet Sauvignon or a Cabernet Franc from all wineries would appear below the text box. Or maybe they just want to see what French wines are in the cellar, so they'd start their search with "France" or "French". (BTW,  winery, vintage, wine type (varietal), country, appellation, etc. are all separate fields in the database/table.)
    Is my imagined search capability possible, or does each aspect of the search (year, winery, wine type/varietal) have to be user-entered into a separate text box?
    Any guidance/answers greatly appreciated!  If you're local, might even be worth sharing a vintage bottle of wine!

    Sorry I was unclear.
    Google is a single text box.  If you type "coldfusion 9 new features"
    you get a good listing of your results without having one box for
    software one for version one for descriptor and
    one for topic .  Similarly with Google it's likely you'll get
    somewhat similar results typing in "new features coldfusion 9" or
    "coldfusion 9 features".  So for my wine app I just want to present the
    user with one box so they can type in "Caymus 2005 Cabernet Sauvignon"
    (a "specific" search) or "2005" (a search for all wines from that year),
    etc.  It's the cleanness of the user experience I'm trying to
    accommodate here.    Make sense?

  • Trying to trigger a servlet from .jsp page on combo box change

    I have a jsp page with two combo boxes ( single select ).
    Here's a snippet from the jsp page containing the code for the two combo boxes:
    <form name="frmCountry" id="frmCountry" method="POST">
         <select name="selCountry" id="selCountry">
              <jsp:include page="/country" />
         </select>
    </form>
    <form name="frmCity" id="frmCity" method="POST">
         <select name="selCity" id="selCity">
              <jsp:include page="/city" />
         </select>
    </form>
    "country" and "city" are both mapped to servlets in the web.xml file
    The country servlet successfully connects to the database and retrieves all countries
    and populates the country combo box.
    However, the populating of the city combo box depends on what country
    is selected in the country combo box;
    Here is a snippet of my code from the City servlet:
    ResultSet rs;
    rs = statement.executeQuery("SELECT City.countryID, City.id, City.name " +
                   "FROM City " +
                   "WHERE City.countryID = ( Country id ) " +
                   "ORDER BY City.name");
    Where ( Country id ) has to be somehow retrieved from the Country combo box
    on the jsp page. Country id is actually the "value" property of each <option> in the
    Country combo box. i.e.:
    <option value="5">Portugal</option>
    If it's not possible to retrieve the value property from the option,
    I could always just use the Country name
    So to reiterate, I need the City servlet to be called into action
    any time a different country is selected in the country combo box.
    I'm a newbie to jsp & servlets, so any suggestions much appreciated.
    Edited by: Irish_Fred on Jan 20, 2010 4:29 AM

    Cheers, I came up with a solution using Ajax, where I didn't have to change
    anything in my servlets and only had to make minor changes to my jsp page.
    I didn't want to use any javascript in my web app, but I guess Ajax
    has addressed the issue of cross platform independence.

  • Is it possible to add a text box to an image in Aperture?

    is it possible to add a text box/caption to an image in Aperture? (I do NOT have photoshop)

    Do you want to write it directly onto the image? Then install and use the free BorderFX plug-in for Aperture. It will let you write text annotations directly onto the image or onto a border.
    Regards
    Léonie
    You can download BorderFX for Aperture from here: http://www.iborderfx.com/BorderFX

  • Editable combo box - changing list

    hey all,
    I have to capture a code, which may be one of many types, and have planned on using an editable combo box, which narrows down the available options as the user types into it - as many programs use.
    Problem is that I'm not sure what it is I need to do to make this work. So far I've got my own ComboBoxModel implementation, and I had tried listening to edit changes, and changing the list based on that. Problem is I cant mutate in the middle of the notification, so no luck there.
    Anyone have any ideas how to make this work?
    cheers
    dim

    ttarola:
    I'm not sure if I've misinterpreted your advice, but I couldn't get it to work... here's what I've done:
    public class TestKeyListener extends KeyAdapter
      private int lastItemIndex = -2;
      private final JComboBox comboBox;
      public TestKeyListener(JComboBox comboBox)
        this.comboBox = comboBox;
       * Invoked when a key has been released.
       * As you are typeing in this field it tries to help you to coomplete the
       * expression you are looking for.
      public void keyReleased(KeyEvent e)
        int keyCode = e.getKeyCode();
        JTextField editBox = (JTextField) comboBox.getEditor().getEditorComponent();
        String typedText = editBox.getText();
        int typedTextLength = typedText.length();
        // nothing has been written
        if (typedTextLength == 0)
          comboBox.setSelectedItem("");
          return;
        boolean isDelete = ((keyCode == e.VK_DELETE) || (keyCode == e.VK_BACK_SPACE));
        if (isDelete || (e.getKeyText(keyCode).length() == 1))
          String item;
          for (int i = 0; i < comboBox.getItemCount(); i++)
            item = comboBox.getItemAt(i).toString();
            if (item.startsWith(typedText))
              // after deleting the same item is the actual one
              if (isDelete && lastItemIndex == i)
                return;
              lastItemIndex = i;
              comboBox.setSelectedIndex(lastItemIndex);
              editBox.setText(item);
              editBox.setCaretPosition(typedTextLength);
              editBox.select(typedTextLength, item.length());
              return;
      public static void main(String[] args)
        final JFrame frame = new JFrame("test2");
        frame.addWindowListener(new WindowAdapter()
          public void windowClosing(WindowEvent ev)
            frame.dispose();
            System.exit(0);
        JComboBox comboBox = new JComboBox();
        for (int j = 0; j < 50; j++)
          if (j % 10 == 0) comboBox.addItem("A" + j / 10 + "77" + j);
          if (j % 10 == 1) comboBox.addItem("B" + j / 10 + "77" + j);
          if (j % 10 == 2) comboBox.addItem("C" + j / 10 + "77" + j);
          if (j % 10 == 3) comboBox.addItem("D" + j / 10 + "77" + j);
          if (j % 10 == 4) comboBox.addItem("E" + j / 10 + "77" + j);
        comboBox.setEditable(true);
        comboBox.addKeyListener(new TestKeyListener(comboBox));
        frame.setBounds(1, 1, 500, 300);
        frame.getContentPane().setLayout(new FlowLayout());
        frame.getContentPane().add(comboBox);
        frame.setVisible(true);
    }this doesn't really bother me, as the other poster has solved my problem (see next post)...
    cheers
    dim
    cheers
    dim

  • In a tubular form: how do you make one combo box reflect another

    For example:
    if there are two fields, one with combo box with bread, meat, juice and I select juice, I and the contents of another combo box in another field to say Orange, grape, lemon.
    field one field two
    bread orange
    meat grape
    juice lemon
    in field one there is just those 3 but in the table representing two there are many such as types of bread and meat and juice, all three.
    Hope you can understand this example. Thanks for your help.

    Your description is not very clear but looks like you want cascading select lists, where 2nd select list is populated based on value selected in the first select list.
    AJAX is a good solution if you are comfortable with it. Since I'm not very familiar with that, I end up using pl/sql.
    Someone had asked similar question few days back, and i had provided a detailed answer. You can check it out at:
    Re: select menu depends from selection
    Hope this helps.

  • HT1329 How do you deauthorize ipods that no longer work or have been stolen. What does it mean that you only have 5 devices that can download your itunes library. How do you deactivte old serial numbers and add new ones as of now we only have one ipod

    Over the years we have owned many i-pods. Most of them ran out of juice or were just outdated some even stolen. As of right now I have one i-pod that should be authorized to download music from my library. I plan to get a new one. My question is how do you deactivate all the old i-pods so that i-tunes doesnt think I have all these pods downloading from my personal lbrary of music. If I get a new one and plug it in it will say you are authorized 1 or 2  or whatever it is at this point to download music from this libtary. How to I get rid of all the old devices (serial numbers) that don't draw from my i-tunes library anymore?

    Ipods/iphones/ipads/apple tvs are not authorized at all.
    Authorization applies ONLY to computers.

  • HT1338 What has happened to IDvd, a friend of mine purchased a Mac Pro, he asked me how to burn a dvd from IMovie, his pro mac does not have IDVD to download to, only a dvd player setting, how do you burn a IMovie project now, before you went through IDVD

    A friend bought a Mac Pro, I want to also, he cannot download a project movie from Imovie to IDvd, because I Dvd is not downloaded on his $3000.00 new computer, what has apple done, how do you download & burn a movie project from Imovie if you do not have IDvd software, all previous systems had IDvd on them to do this. What is going on and how do you burn now.

    An alternative to iDVD - miDVD which I believe you can get from the App Store for free!

  • How do you download apps that you already have on your itunes account on to your iphone 3gs, how do you download apps that you already have on your itunes account on to your iphone 3gs

    how do you download apps that you already have onto your i tunes account onto your iphone 3gs

    Sync them as you do wverything else.
    Open itunes, connect iphone, select what you want to sync, sync.
    iPhone User Guide (For iOS 5.0 Software)

  • I have 2.7 GB taken up by something called "Other" How do you clean this up?

    I have 2.7 GB on my iPhone4 taken up by something called "Other". How do you clean this up and gain back that missing space?

    Other content is typically miscellaneous data used by applications you have installed - could be save data (e.g. for games), or documents you've created. There's no easy way to determine precisely what it is, but the only way to clear it is to either delete it from within the respective application, or remove the associated application altogether - neither of which are typically practical.

Maybe you are looking for

  • Movements of a material which maintains serial numbers

    Hi experts, Need to track the movements of a material which maintains serial numbers. Need to get data such as PO number, PO line item,  Material code, GR number, GRN date, serial number of the item, Goods Issue note, issue date and the text feild. p

  • Coverting from a string to an integer

    Hi: Is it possible to covert a string to an integer? For example I want to convert the following string values to integers so that I can develop a method to use java.util.Date to test for overlapping appointments. Ex: markCalendar.addApp(new Appointm

  • Messages sent on iPhone not displaying correctly in Entourage sent messages

    Hi. I was really looking forward to "full Exchange support" on my iPhone, but am unhappy to report that that's not what I've got. When I send messages from my iPhone and Entourage imports them into the sent messages folder via Active Sync, the messag

  • HT204053 How do I know my pictures are on iCloud

    I'm running out of space on my phone and I wanna be able to delete all my pictures but I want to save them to iCloud, how do I know there on there?

  • Some mail shows up in inbox...some doesn't

    I am using GMAIl. I receive most new email in my inbox but some seem to just stay in the Gmail>All Mail folder. Any ideas?