Combo/list box image next to option

Hi,
I'm trying to display an image (small icon) within a drop
down/combo/list box in a form. I've not found a simple way of doing
it and wondered if anyone could advise of an easy way to do this
seemingly simple task ?
The result I'm after can be seen here:
http://dhtmlx.com/docs/products/dhtmlxCombo/index.shtml
of the five combo boxes displayed I'm after the 'combo box
with icons' result. The method used on this page to acheive the
effect seems a bit overkill for my requirement, otherwise I'd
try/use it. I've looked at the page source, but nothing is revealed
regarding the html/css used to do it.
I'd appreciate anyone advising a simple way to do this.
Many thanks.

If your page is asp then the code below will do what you
want. Now when a
user selects a country then that country id will be entered
into a cookie.
then when the user goes to other pages on your site you can
have if else
statements to show language of your choice.
if you need the country flag icons go to ip2location.com they
will give them
for free.
<form action="" name=langswitch style="display:
inline;">
<table cellpadding=0 cellspacing=0 style="float:right;
margin-top:-14px;"><tr>
<td style="padding-left: 3px; padding-right:
3px"><img
src="/images/flags/<%= Request.Cookies("country")
%>.gif" width="14"
height="11" border="0"></td>
<td><select name="langcountry"
onchange="document.forms.langswitch.submit()">
<option value="uk" <%If (Not
isNull(Request.Cookies("country"))) Then If ("uk" =
CStr(Request.Cookies("country"))) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>English
<option value="es" <%If (Not
isNull(Request.Cookies("country"))) Then If ("es" =
CStr(Request.Cookies("country"))) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>Espa&ntilde;ol
<option value="de" <%If (Not
isNull(Request.Cookies("country"))) Then If ("de" =
CStr(Request.Cookies("country"))) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>Deutsch
<option value="fr" <%If (Not
isNull(Request.Cookies("country"))) Then If ("fr" =
CStr(Request.Cookies("country"))) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>Fran&ccedil;ais
<option value="it" <%If (Not
isNull(Request.Cookies("country"))) Then If ("it" =
CStr(Request.Cookies("country"))) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>Italiano
<option value="br" <%If (Not
isNull(Request.Cookies("country"))) Then If ("br" =
CStr(Request.Cookies("country"))) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>Portugu&ecirc;s (Br)
<option value="hu" <%If (Not
isNull(Request.Cookies("country"))) Then If ("hu" =
CStr(Request.Cookies("country"))) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>Magyar
<option value="ru" <%If (Not
isNull(Request.Cookies("country"))) Then If ("ru" =
CStr(Request.Cookies("country"))) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>Ð
ÑfÑ?Ñ?кий
<option value="jp" <%If (Not
isNull(Request.Cookies("country"))) Then If ("jp" =
CStr(Request.Cookies("country"))) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>æ-¥æo¬èªz
<option value="kr" <%If (Not
isNull(Request.Cookies("country"))) Then If ("kr" =
CStr(Request.Cookies("country"))) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>í.oêµì-´
<option value="cn" <%If (Not
isNull(Request.Cookies("country"))) Then If ("cn" =
CStr(Request.Cookies("country"))) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>ä¸æ-?(ç®?ä½")
</select></td></tr>
</table>
</form>

Similar Messages

  • Combo/ list box in Adobe Reader on iPhone 5

    I have exported to an interactive PDF which contains radio buttons, text fields, combo boxes and list boxes. This form is to be viewed on an iPhone in Adobe Reader. All the form objects work except for the combo/list boxes. They appear and a selection can be made but the selection is not displayed in the box. I have tried to enlarge the box, thinking it was too small to display the text.
    Can someone please tell me if there is a compatibility issue or a work around for this problem.
    Thanks!
    Gemma

    I tested one of my interactive PDF forms, and it works fine in Reader on iPhone 5. Here is what a list box looks like:
    If you're having problems with Adobe Reader for iOS, I'd post questions on the Reader for iOS forum here:
    http://forums.adobe.com/community/adobe_reader_forums/ios

  • List box for the select-options

    Hi All
      Can anyone send me a sample code to create a list-box for the select-options.

    Hi vighnesh vasudevan,
    Do like this for your select options for low and high also.
    Parameters:
        p_quat  TYPE char20
                AS LISTBOX VISIBLE LENGTH 30
                LOWER CASE OBLIGATORY.
    *              AT SELECTION-SCREEN ON VALUE-REQUEST                    *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_quat.
      PERFORM fill_quarters.
      PERFORM display_quarters.
    *&      Form  fill_quarters
    *       text
    FORM fill_quarters .
      DATA:
    * Field string to fill quarters in the year
        lfs_quarters TYPE LINE OF vrm_values.
      REFRESH t_quarters.
      lfs_quarters-key  = '1'.
      lfs_quarters-text = text-qu1.
      APPEND lfs_quarters TO t_quarters.
      lfs_quarters-key  = '2'.
      lfs_quarters-text = text-qu2.
      APPEND lfs_quarters TO t_quarters.
      lfs_quarters-key  = '3'.
      lfs_quarters-text = text-qu3.
      APPEND lfs_quarters TO t_quarters.
      lfs_quarters-key  = '4'.
      lfs_quarters-text = text-qu4.
      APPEND lfs_quarters TO t_quarters.
    ENDFORM.                    " fill_quarters
    *&      Form  display_quarters
    *       text
    FORM display_quarters .
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'P_QUAT'
          values          = t_quarters[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " display_quarters
    Note: I think we are not able to display the list box for select options because i am not ever seen the list box in select options . No Probs try like above code.
    See the following like it may help for you
    Listbox for Select Options
    Regards,
    Mahi.

  • Simple (I hope) Combo/list box question

    I am using Acrobat Pro 9, I have a combo list that allows a person to choose male or female.  I want the default to be blank so that if they don't have a dependent it isn't showing male or female. It doesn't allow me when I go to properties, any suggestions?  I do not work with script at all so that's not an option for me.
    Thank you!!!

    This might not be the absolutely best answer, but I was just able to game the properties by adding an option that is only a space...as in one click on the space bar. Then I made that the default.
    I'd be interested to know if there's a better way to do what you're after, but I think this one works.

  • Combo/List Box Item List in Properties

    Im creating a form in Acrobat.  Used a list box instead of combo box.  But need to change to combo box.  I already entered in all the items for the list.  I don't want to spend too much time on this.  Is there a way to copy the list from properties on the list box and past into the new combo box?

    You can use Acrobat JavaScript to convert the current items, getItemAt,
    in the list box/combo box to an array or list that could be edited in array definition, edit that list and then use JavaScript, setItems, to use that array to populate the field.

  • PHP - show image next to option

    Is it possible via javascript/jQuery to select an image option (see below) and then have the image associated with the <option> show next to the <select> tag?
    <select name="images" id="images">
    <option>Select Image</option>
    <option value="one.jpg">one.jpg</option>
    <option value="two.jpg">two.jpg</option>
    <option value="three.jpg">three.jpg</option>
    <option value="four.jpg">four.jpg</option>
    <option value="five".jpg>five.jpg</option>
    </select>
    <img src="http://www.DomainName/imageOptions/nameOfImage.jpg" width="200" height="200" alt="" />
    I could probably do it with php by getting the option value but that means I'd have to submit the page first, which I'm trying to avoid. javascipt might be able to do this onclick?
    Cheers
    Os

    Hummm...the only issue I see is that I have about 100 images. Does that mean I have to create 100 variables?
    var ddData = [
            text: "Facebook",
            value: 1,
            selected: false,
            description: "Description with Facebook",
            imageSrc: "http://dl.dropbox.com/u/40036711/Images/facebook-icon-32.png"
            text: "Twitter",
            value: 2,
            selected: false,
            description: "Description with Twitter",
            imageSrc: "http://dl.dropbox.com/u/40036711/Images/twitter-icon-32.png"
            text: "LinkedIn",
            value: 3,
            selected: true,
            description: "Description with LinkedIn",
            imageSrc: "http://dl.dropbox.com/u/40036711/Images/linkedin-icon-32.png"
            text: "Foursquare",
            value: 4,
            selected: false,
            description: "Description with Foursquare",
            imageSrc: "http://dl.dropbox.com/u/40036711/Images/foursquare-icon-32.png"

  • Displaying list box field in PDF

    I have exported to an interactive PDF which contains radio buttons, text fields, combo boxes and list boxes. This form is to be viewed on an iPhone 5 in Adobe Reader. All the form objects work except for the combo/list boxes. They appear and a selection can be made but the selection is not displayed in the box. I have tried to enlarge the box, thinking it was too small to display the text.
    I have tested it on an Ipad 3 and an android phone and it doesnt work but it does work on a desktop. The reader app is up-to-date on all devices. This is how it displays (sorry about the quality). The option within the list box are "nothing" ie space, Y and N. Before a selection is made the arrow is displayed but after a selection is made the box is blank.
    Can someone please tell me if there is a compatibility issue or a work around for this problem.
    Thanks!
    Gemma

    One more thing: There is a workaround for those who own Acrobat for Windows or Mac. You should be able to open forms with this problem in Acrobat, modify the default values in these fields, return the default values in those fields to their desired state and then resave the document from Acrobat (windows or mac). This forces Acrobat to save the fields in a way that the mobile Readers can properly display and edit. While we absolutely should fix the bug to properly display fields created by InDesign, this workaround may be useful for others so I am posting it here.

  • Populating List Boxes

    Azadi – Thanks for your HELP on my last problem.
    – This is the Old Dog Playing a Young persons game! And
    loving It! Using CF8 and MySQL 5
    New?? List Boxes, or drop-down Combo list Boxes, could you or
    someone direct me in the proper direction for information on how to
    Populate a list box or combo box based on the input of the previous
    list box?? Example Enter From Selection - Southern Gulf Coastal
    States - All the State in the Southern Gulf Coast would populate
    the next combo box, and select a State and all the Coastal Cities
    would be of choice and next after cities is the Zip.
    I know how to do it in MS Access not sure the best way to
    attack this in cf8.
    Thanks

    There are many ways to do this:
    1. By submitting your data to cf server first and query only
    according to user selection then populate the target fields
    according to query.
    2. By querying all data and use javascript
    variables/arrays/structures to populate your combo box everytime
    user change the selected item.
    3. By incorporating Ajax to your CF application.
    The first one is the easiest one. But everytime you make
    changes to your selection, your app submits to cf server which is
    kind of slow 'cause you have to submit everytime selection changes.
    The second one is by querying all the data, which is slow at
    first 'coz even the unnecessary data are returned. That is, I don't
    think the user would try to select all the selections one by one,
    but rather maybe just select one item. Though, it will be faster
    already when the user selects another item. This way, your form
    doesn't have to be re-submitted 'coz you let a javascript
    variable/arrays/structures store the data at first query.
    The third one(kind of a mix of both 1 and 2), which is the
    most efficient way among the three to achieve your goal, needs
    learning Ajax which is going to take a few of your time. But if you
    know it already, you can let it work well with CF8.
    Anyway, a simple sample code for the first method is
    attached:

  • How to create an editable List box

    Hi,
    Can any body help me out in creating an editable list box, I mean the options should be editable in the listbox. Thanks in advance.

    I mean, you have dropdown list box with some options.
    They will not be editable in the normal scenario. I want one of the options to be editable, similar to a textbox , when selected.
    Is that possible in JSF? If any one could help with Javascript also, its fine for me.

  • List box in data block

    Hi,
    I have trouble implementing a form that uses 2 master table. I tried using the one suggested here
    http://www.oracle.com/technetwork/developer-tools/forms/documentation/blockonajoin-131860.pdf
    but doesn't seem to support the specification I want.
    I have 2 tables say EMP and DEP, with the DML target table being EMP.
    But I also want to display the DEP.NO ( = EMP.DEP_NO) plus the DEP.NAME(which should disabled for change) but the field should be combo/list box
    This is so when I insert a new data, I can just select from the combo box field(which should be populated with all the possible values from DEP.NO in the DEP table). And when I select the DEP.NO, the DEP.NAME will automatically show. But if you just want to UPDATE, DEP.NO should be disabled (only ones from EMP table is enabled for CHANGE.)...
    Appreciate any suggestions.
    Thanks!

    Based on your description, you actually have just one master table and the second table is being used for reference only as it simply supplies the DEPT_NO and DESCRIPTION based on the DEPT_NO on the EMP record. There is no need to a block based on a join in this situation. Just create a data block based on the EMP table and populate your List Item (Poplist) using the value from the DEPT table.
    Do you really need to see the DEPT_NO of the department or will the department name stored in the DESCRIPTION column be enough? A Poplist will only display one value, typically the description of the underlying code (DEPT_NO). If your Department Poplist is attached to the EMP.DEPT_NO column in your form the description will automatically be displayed for the underlying EMP.DEPT_NO. If a user changes the Department using the Poplist the underlying EMP.DEPT_NO will receive the associated DEPT_NO and Forms will record a change has been made.
    When a new record is created, the Department Poplist will be NULL until your user selects a department from the list.
    This should satisfy your requirement!
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to populate a list box linked to selection in combo box?

    Hi All,
    I am a beginner in Xcelsius. I am having problem on how to populate a list box based on the selection on my combo box.
    I have a combo box and a list box.  The combo box value consist of Countries. Values are:
    Singapore
    Indonesia
    Thailand
    When I select, for i.e. Indonesia, I want to populate the list box with all the Postal Code of Indonesia. When I select Thailand, i want to do the same.
    Can anyone shed some lights on how to achieve this?
    My spreadsheet data is as follow
    Country         Postal Code
    Singapore     680123
    Singapore     680124
    Singapore     680125
    Indonesia     155123
    Indonesia     155124
    Indonesia     155125
    Indonesia     155126
    Thailand       333123
    Many Thanks,
    Harianto

    Hi,
    I am detailing the complete steps below:
    In the combobox select the entire range of Country while seeing the records from the Combobox, Xcelsius will automatically show the unique values in the selection.
    After that in the "Data Insertion" section for Combobox select the "Insertion Type" as "Filtered Rows" (please click on the question mark beside this option and it will show how the selection works).
    In the source select the postal code, in the destination select the range which will be used as a data source for the list box.
    This will resolve the concern. Please remember to select the question mark beside the "Insertion Type" option, it explains the working in specific details.
    Best of luck.
    Regards,
    Gourav

  • Help with linking combo boxes so that some options are made unavailable

    Hello!
    I'm having trouble setting up an interactive PDF form with multiple combo boxes.
    I have designed an interactive PDF form in InDesign CS6 but am doing the final preparation and formatting in Adobe Acrobat XI Pro.
    First of all, I am not sure if I should be using combo boxes or list boxes, but the combo box seemd to look better after I export the PDF and also left the field blank, ready for selection from the drop-down menu.
    Basically I have a list of drop-down lists, but not all combinations are compatible. For example, after maing "Selection 1" in "Combo box 1", I need only "Selection 1", "2", and "3" [out of the total 5] to be available in "Combo box 2".
    I need to be able to apply this algorhythm to the next few combo boxes as well.
    Moreover, I would need some of the checkboxes disabled [the user won't be able to check them at all]when I make a certain selection in some of the combo boxes.
    Needless to say, I don't know any Java, coding or making calculations in LiveCycle Designer, so I don't even know where to begin.
    I have attached a screen grab of my form and what I want to achieve.
    Any help would be very much appreciated.
    Thank you!

    If it is static data, I would suggest you to cache it rather than having it in each of the user session. You can have configuration/code to refresh when needed. Please look at any available caching frameworks (EhCache, OSCache etc...)

  • List Box Combo box linkage

    Hi,
    I have a dashboard with a regional filter that has the same 5-metric associated to each region.  I'd like my regional global combo box to filter by each indexed metric, for example, if I select KPI 2 and Global from the combo box, I'd like the index 2 to display in order chart data indexed to 2. Each metric has a unique index # associated to each regional metric, for example:
    Index      Region    Metric
    1             Global     KPI 1
    2             Global     KPI 2
    3             Global     KPI 3
    4             Global     KPI 4
    5             Global     KPI 5
    6             NA          KPI 1
    7             NA          KPI 2
    8             NA          KPI 3
    9             NA          KPI 4
    10           NA          KPI 5
    I've selected Row as the Insertion type with two series types (Global and NA).  Each series type has it's own sourced data but all point to the same destination row (A:26:C26).  I have the combo box inserting the regional source value to the cell where the list box inserts the region B26.  When I preview only one series (NA) from the list box is dynamic, meaning  if I select KPI 2 the spredsheet selector displays the region (NA) and Index 7, but when I switch regions, to Global, it's not linked to the list box and properly capturing the new index # 2.  How can I link my list box with two series (Global and Region) to filter by Region combo box?

    Hi Araceli,
    I do not fully understand your problem (I don't understand what the listbox does). But what might work a lot easier for you is to use the Filter option and not split comboboxes. That way Xcelsius can sort it out for you without having to write too much logic.
    Or are you already using a filter?

  • Adobe LiveCycle Designer 7.0 - Don't have Multiple Select option for List Box

    I've created a form and need to add a List Box that will allow the user to select Multiple items in the box. I do not have the option under the Object property to set this option. Can anyone explain why I don't have this option and how I can activate it?

    Ian,
    I don't know if you can use a PDF form to do an HTTP upload of a file. You can use an image field to allow a user to browse for a GIF, TIF, JPG, or PNG and include that in the submitted XML, but I don't know if it's possible to do something similar for other file types. I doubt it. PDF does support file attachments, but that functionality requires the user to have Acrobat or the PDF has to have usage rights enabled using Adobe Reader Extensions Server. Even if you assume that all your users have Acrobat though, attaching files in this way doesn't get the file into the XML form data like an image field does.

  • Poplating a List Box or Combo Box

    Hello,
    I need to add a list box onto the AR invoice screen that displays all employees. I need to do this using the SDK, 2004A and VB.Net. Has anyone done this, please forward me the source.
    Thanks John

    On Form Load call the function :
    Private Sub CreateItemsOnForm(ByVal strFormUID As String)
            Dim mobjItem As SAPbouiCOM.Item
            Dim mobjCombo As SAPbouiCOM.ComboBox
            oForm= objSBOApplication.Forms.Item(strFormUID)
            Try
                mobjItem = oForm.Items.Add("XYZ",SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
                mobjItem.Width =
                mobjItem.Left =
                mobjItem.Height =
                mobjItem.Top =
                mobjItem.FromPane = 0
                mobjItem.ToPane = 0
                mobjItem.Enabled = True
                mobjItem.DisplayDesc = True
                mobjCombo = mobjItem.Specific
               Catch ex As Exception
                Throw ex
            End Try
        End Sub
    AND FOR FILLING COMBO
    Dim mobjForm As SAPbouiCOM.Form
            Dim mobjCombo As SAPbouiCOM.ComboBox
            Dim mobjRecordset As SAPbobsCOM.Recordset
            Dim intCount As Integer
            Try
                mobjForm = objSBOApplication.Forms.Item(strFormuid)
                mobjCombo = mobjForm.Items.Item("XYZ").Specific
                mobjRecordset = gobjCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                mobjRecordset.DoQuery("SELECT EMPCODE,EMPNAME FROM TABLE")
                Do While mobjCombo.ValidValues.Count > 0
                    mobjCombo.ValidValues.Remove(0, SAPbouiCOM.BoSearchKey.psk_Index)
                Loop
                For intCount = 0 To mobjRecordset.RecordCount - 1
                    mobjCombo.ValidValues.Add(mobjRecordset.Fields.Item("EMPCODE").Value, mobjRecordset.Fields.Item("EMPNAME").Value)
                    mobjRecordset.MoveNext()
                Next
                       Catch ex As Exception
                Throw ex
                    End Try

Maybe you are looking for

  • Expanding text box in mail stationary

    I am trying to put together a photo newsletter in Mail using the Tack Board template in the stationary. I thought that I would be able to expand the area where the text goes to add more text, but it won't let me type past where the blue box ends. Is

  • Just updated to 10.4.11 - Clips keep on moving into iMovie trash

    I've just applied some updates (OSX 10.4.11, Quicktime 7.3, iTunes 7.5, iPhoto 7.1.1) and now I'm having a very perplexing problem with my iMovie HD (6.0.3) files. Here's my workflow: -Cut out unwanted footage -Extract audio -Import multiple image fi

  • Need help with OCI8::Cursor object

    I'm using ActiveRecord::Base.connection.execute to run a SQL statement against an Oracle schema that is "external" to my Rails database. I'm building the connection on the fly using connection parameters stored in my Rails database (MySQL). So far so

  • Best practice: Using break statement inside for loop

    Hi All, Using break statment inside FOR loop is a best practice or not? I have given some sample code: 1. With break statement 2. With some boolean variable that decide whether to come out of the loop or not. for(int i = 0; i < 10; i++){ if(i == 5){

  • BFD on interface

    Dear all, Can we configure bfd on interface level for the purpose that if remote IP address is unreachable, bring down the interface. Regards