Lookup field not rendering like drop down in New Item form

Hi
I have been making a page to add new item to a list, for this i am using new item form.
I am having a two lookup fields in that list of which one contains more than 20 items and other only 3.
My first problem is that first lookup renders as a text box ONLY in IE 9 mode(nothing appears even when you click on the down arrow), but when I change the mode to IE 8, the rendering changes to a textbox + ajax + filtering list instead of the simple drop
down list control.
BUT FIREFOX AND OTHER BROWSERS RENDER PROPERLY AS A SIMPLE DROPDOWN.
I have read several blogs about this, but could'nt find a simple solution.
Anyone has any idea on this?
thanks!
IE rendered 1st lookup like this:
<INPUT onkeydown="CoreInvoke('HandleKey')"
id=ctl00_ctl20_g_2f56956b_9ff1_48a5_af9a_ba167804f29a_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl01 onchange="CoreInvoke('HandleChange')"
class=ms-lookuptypeintextbox
title=Country onfocusout="CoreInvoke('HandleLoseFocus')"
onkeypress="CoreInvoke('HandleChar')"
name=ctl00$ctl20$g_2f56956b_9ff1_48a5_af9a_ba167804f29a$ctl00$ctl05$ctl01$ctl00$ctl00$ctl04$ctl00$ctl01
value=(None) type=text match choices="(None)|0|Austria|1|Belgium|2|Bulgaria|3|Cyprus|4|Denmark|5|Finland|6|Germany|7|Kazakhstan|8|Liechtenstein|9|Moldavia|10|Norway|11|Poland|12|Portugal|13|Romania|14|Russia|15|Slovania|16|Spain|17|Sweden|18|Switzerland|19|The Netherlands|20|Turkey|21|Ukraine|22|United Kingdom|23" optHid="SPCountry_Hidden"
opt="_Select">
<IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px"
onclick="CoreInvoke('ShowDropdown','ctl00_ctl20_g_2f56956b_9ff1_48a5_af9a_ba167804f29a_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl01');"
alt="Display lookup values"
src="/_layouts/images/dropdown.gif">
<SELECT style="Z-INDEX: 2; POSITION: absolute; DISPLAY: none; TOP: 871px; LEFT: 640px"
onkeydown=HandleOptKeyDown()
id=_Select
class=ms-lookuptypeindropdown
onfocusout=OptLoseFocus(this)
ondblclick=HandleOptDblClick() tabIndex=-1 size=8
name=_Select ctrl="ctl00_ctl20_g_2f56956b_9ff1_48a5_af9a_ba167804f29a_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl01">
<OPTION selected value=0>(None)</OPTION>
<OPTION value=1>Austria</OPTION>
<OPTION value=2>Belgium</OPTION>
<OPTION value=3>Bulgaria</OPTION>
<OPTION value=4>Cyprus</OPTION>
<OPTION value=5>Denmark</OPTION>... and so on
</SELECT>
Regards, Nayan

We had the same issue in our environment and we made use of jQuery to resolve the issue. The idea has been taken from SPServices.codeplex as mentioned by Christophe, but extends it in a way with few changes to make it work in our environment for each instance
of this drop-down in the entire web application.
$("input[class='ms-lookuptypeintextbox']").each(function
columnName = $(
this).attr('title');
OverrideDropDownList(columnName);
// Main Function
function OverrideDropDownList(columnName) {
// Construct a drop down list object
var lookupDDL =
new DropDownList(columnName);
// Do this only in complex mode...
if (lookupDDL.Type ==
"C") {
// Hide the text box and drop down arrow
lookupDDL.Obj.css(
'display',
'none');
lookupDDL.Obj.next(
"img").css('display',
'none');
// Construct the simple drop down field with change trigger
var tempDDLName =
"_" + columnName;
if (lookupDDL.Obj.parent().find("select[ID='"
+ tempDDLName + "']").length == 0) {
lookupDDL.Obj.parent().append(
"<select name='" + tempDDLName +
"' id='" + tempDDLName +
"' title='" + tempDDLName +
"'></select>");
lookupDDL.Obj.parent().find(
"select[ID='" + tempDDLName +
"']").bind("change",
function () {
updateOriginalField(columnName, tempDDLName);
// Get all the options
var splittedChoices = lookupDDL.Obj.attr('choices').split("|");
// get selected value
var hiddenVal = $('input[name='
+ lookupDDL.Obj.attr("optHid") +
']').val()
if (hiddenVal ==
"0") {
hiddenVal = lookupDDL.Obj.attr(
"value")
// Replacing the drop down object with the simple drop down list
lookupDDL =
new DropDownList(tempDDLName);
// Populate the drop down list
for (var
i = 0; i < splittedChoices.length; i++) {
var optionVal = splittedChoices[i];
i++;
var optionId = splittedChoices[i];
var selected = (optionId == hiddenVal) ?
" selected='selected'" :
lookupDDL.Obj.append(
"<option" + selected +
" value='" + optionId +
"'>" + optionVal +
"</option>");
// method to update the original and hidden field.
function updateOriginalField(child, temp) {
var childSelect =
new DropDownList(child);
var tempSelect =
new DropDownList(temp);
// Set the text box
childSelect.Obj.attr(
"value", tempSelect.Obj.find("option:selected").val());
// Get Hidden ID
var hiddenId = childSelect.Obj.attr("optHid");
// Update the hidden variable
$(
'input[name=' + hiddenId +
']').val(tempSelect.Obj.find("option:selected").val());
// just to construct a drop down box object. Idea taken from SPServces
function DropDownList(colName) {
if ((this.Obj
= $("input[Title='" + colName +
"']")).html() !=
null) {
this.Type =
"C";
// Multi-select: This will find the multi-select column control on English and most other languages sites where the Title looks like 'Column Name possible values'
// Simple - when they are less than 20 items
if ((this.Obj
= $("select[Title='" + colName +
"']")).html() !=
null) {
this.Type =
"S";
// Compound - when they are more than 20 items
else
if ((this.Obj
= $("input[Title='" + colName +
"']")).html() !=
null) {
this.Type =
"C";
// Multi-select: This will find the multi-select column control on English and most other languages sites where the Title looks like 'Column Name possible values'
else
if ((this.Obj
= $("select[ID$='SelectCandidate'][Title^='" + colName +
" ']")).html() !=
null) {
this.Type =
"M";
// Multi-select: This will find the multi-select column control on a Russian site (and perhaps others) where the Title looks like 'Russion stuff: Column Name'
else
if ((this.Obj
= $("select[ID$='SelectCandidate'][Title$=': " + colName +
"']")).html() !=
null) {
this.Type =
"M";
else
this.Type =
null;
// End of function dropdownCtl
- Sid

Similar Messages

  • HCM Processes & Forms: Field not updating after Drop Down list selection

    Hello all,
    I am having a problem that I think happens a lot, but I can't solve it through all the examples given here.
    I have a Drop Down List where I change the value. On the CHANGE event, I have:
    xfa.record.CONTROL_PARAM.ISR_EVENT.value = "GET_ORGINFO";
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    I have defined a User Event called GET_ORGINFO. It gets triggered fine. It moves into my generic service that I defined, and it changes the value that I want to change.
    When I look at the PDF, the value is still in it's old value. So, after reading some blogs, which specifically says, if something goes wrong in one service (I have 3: my own, SAP_PA and S_MGRS_POSITIONS), they all fail. I debugged and checked, and, after some changes, nothing goes wrong anymore, nothing that I can see anyway.
    So what I do see, is that there's a call made like this:
      CALL METHOD me->process_data_container
        EXPORTING
          ref_to_data_container = ref_to_relevant_data_container
          operation             = c_do_operations
          message_handler       = dummy_message_handler
          no_auth_check         = no_auth_check
        IMPORTING
          is_ok                 = operation_ok.
    Within this method, my new value is listed (in the table VALUES_OF_FIELDS). After this call is made, so when it exists the method process_data_container, the old values are back in VALUES_OF_FIELDS.
    So, at the last moment INSIDE the method, the values are correct, as soon as it steps out of this method, the old values are back.
    Does anyone have any idea? Am I doing something wrong with regards to the User Events? I am on EnhP 04.
    Gr,
    Jaron Frenk

    Hey Chris,
    Unfortunately, that's not it. I did check the fields I need. Everything is going ok. As in, I get the fields (with their current values) in my own generic operation. I see everything updated the way it should. But then at the end, nothing happens...
    What exactly do you mean by " then make sure your own generic service has it's input/output defined correctly". What input/output do you mean? I assume the generic service itself is okay, since it works with the user event "USER_EVENT_CHECK". And it sure is possible I am forgetting something in the definition of the user event, but I can't figure out what.
    A small addition*
    I just checked by user event. I have 3 fields selected:
    I0001_PERSG
    I0001_PERSG_TXT
    I0001_PERSK
    The generic service should get the PERSG and PERSG_TXT based on the PERSK that is entered. I don't think I need anything more.
    Gr,
    Jaron
    Edited by: J. Frenk on Apr 26, 2010 9:01 AM

  • Camera Raw not in File drop-down menu new member PSCC

    Hi
    I just installed the photopshop CC with Lightroon Deal and I went to File and there is no "Camera Raw in the drop-down menu. Do I have to install this separately and if so whre and how
    thanks

    ACR is a normal fille handler that will come up with suitable files when using any of the open/ import/place commands.
    Mylenium

  • In develop "mode" and I can't locate my "Basic" slider that opens up my "Treatment" sliders. There's not even a drop down arrow to Minimize and open. I was working in it and the next moment it was gone. I'm in Lr 5 using a trackpad. Seems like the issue c

    In develop "mode" and I can't locate my "Basic" slider that opens up my "Treatment" sliders. There's not even a drop down arrow to Minimize and open. I was working in it and the next moment it was gone. I'm in Lr 5 using a trackpad. Seems like the issue came up while using my trackpad. Any thoughts?

    In the Develop Module, you right-click on one of the other Panel Headers (for example, Tone Curve) and then place a check next to Basic

  • Table TZC37 field STATU search help drop down is not pulling any values?

    Hi,
    In table TZC37 field STATU(Contract status) search help is not pulling any values( drop down list when execute the table values) .. but the table has values for this field.
    And also I checked in the configuration, this field has values in the config also. But still the search drop down is not getting any values.
    Can any one knows what could be the reason and how to solve this issue?
    I am using this field in transaction FNVS when searching loan number based on Status field.
    Thanks for your time.
    Murali.

    Hi Micky,
    I am using this in transaction FNVS (when searching Loan number based on Status field( this is Custom Search help added this field ( VDARL- SSTATI )
    Value table for this data type - STATI is TZC37.
    While getting records from these tables(TZC37 or VDARL )  I am trying to use drop down values for searching data using this field SSTATI. But its not showing any drop down values. It supposed to show what ever values exists for this field  right?
    I checked in the cofig of this table and values exists for this field.
    Any help appreciated.
    Thanks.

  • My area is not on the drop-down list?

    just applied for skype number but my area is not on the drop-down list can't get any further until I choose something from the list, what do I do, just pick the nearest area?
    Post transferred to create its own new thread (topic);
    subject/title edited accordingly.

    Hi, ladyfromllan, and welcome to the Community,
    Yes, you are correct: you would need to choose a Skype Number nearest where you ultimately wished to have your Skype Number located.  Ultimately, the number would be best situated so that those who call it the most would not incur toll charges; however, that said, Skype Numbers are not available absolutely everywhere for several legitimate reasons.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Domain Names Not Appearing In Drop Down of Data Cleansing Task

    For some reason, in several of my DQS data cleansing tasks, the domain names of the knowledge base I choose are not appearing. This is turn leads to an error message stating that "No domain field has been mapped to the input column...".
    The task can see the DQS server and it can see the various knowledge bases on that server, but the domains are not appearing.
    Has anyone else run into this issue?
    Thanks!!
    A. M. Robinson

    I have just found the same issue.
    For me, I believe it is because the domains are only used in matching rules, which the SSIS task does not support. Therefore they are not in the drop down as the SSIS DQS task cannot use them. Only map domains for data correction and you should be ok.

  • Datagrid item renderer with drop down need help.

    Hi Guys,
    I am populating an advance data grid in which one column has an item renderer containing a drop down. This drop down has 4 items. When user selects more than one row the drop down should contain only two items. In my case when user selects multiple rows using control key and then clicks on any of the rows drop down then that row gets de selected which I don’t want I tried stop propagation and stop immediate propagation but that also didn’t helped. Please help
    Thanx
    Mahesh.

    Hi
      This is a default bahviour of dropdown.. dropdown will not allow you multiple selections.. you should create your own component by extending the combobox and try your thing,, If you click on one item.. then it calls internally change event. If the change event called then the dropdown will automatically closed.. so you should restrict this ...
    Thanks
    Ram

  • FileChooser - "switch off" file name field and file type drop down choice..

    Hi there,
    I'm wondering, is there a simple way of not displaying the file name field and file type drop down choice that anyone knows of?
    Reason being; my FileChooser is embedded in an application window and does not pop up as a dialog - the users are only acessing one file type, but it could be in any folder on their machine.
    many thanks,
    Fergus.

    Moved to legacy SDK forum

  • Inactive field "Project Versions' - from drop down

    Hi Friends
    I have created two versions of project through Tcode CN41. When I am looking for comparision, the field Project Versions from drop down is Inactive ie Edit >Comparisations > Project Versions.  I am sure that I am missing somethig but unable to detect the same to activate Project Versions.
    Would appreciate any one can help me to find out how to get activation of Project Version from drop down.Reward points can be awarded for suitable solution.
    Thanks in advance.
    Regards
    Sudhakar

    Hi Sudhakar,
    I guess you are referring to project versions, not CO versions...
    In this case, please make sure you select at least one version and the current data in the selection screen or more than one versions in the selection screen.
    You need to select the versions in the selection screen in order to compare them.
    If you cannot find the relevant fields to enter the selected version in the selection
    screen, please call the database profile and tick the flag on "version data".
    Hope this helps!!!
    Rgds
    Martina

  • TS3276 the images (attachments) are automatically resized (smaller) when I send them to a customer. My email screen does not show a drop down menu box where you can leave as actual size. Is there a setting elsewhere that can be set.

    Any suggestions on problem I have. I receive images, say a file that is 3 mgs through email on Safari mail and when I try to resend it or forward it or any other larger file, when it sends the file is reduced by about 1/3. My screen does not show and drop down menu with a feature to keep actual size or reduce that is suggested when I looked up solutions to the problem.  I can't find a setting anywhere in mail that I can change to make sure my files are kept at actual size. I figure a setting got changed -don't know how - but it happened about a month ago. Caused problems as I work in graphics can't send files to clients as they come out too small. Any suggestions on how to fix.
    Thanks

    What email program are you using? And what do you mean by "Safari mail"?

  • How can I remove apps from my itunes library in version 11.0.0.163? The checkbox is no longer there in the new version and I do not see a drop down menu.

    In the new iTunes version 11.0.0.163 I tried to delete a free app but it still shows after I deleted it from all my Apple devices. The checkbox in the previous version of iTunes does not seem to be present in the new version and I do not see a drop down menu. And there are no Help menu choices either. I guess, I will otherwise wait for the new update to iTunes as of 12.10.2012.

    With iTunes 11 on PCs the drop-down menus are hidden by default - control-B should get the menus to show
    This screenshot is from a Mac, but it should be similar on a PC :

  • I have two faults! 1, an error comes up in Ps CC 2014 "could not apply the saved panel configuration, restring to default and my tools have disappeared completely and anything ive tried I cannot get them back not even the drop down menu in 'window' helps

    I have two faults! 1, an error comes up in Ps CC 2014 "could not apply the saved panel configuration, restring to default and my tools have disappeared completely and anything ive tried I cannot get them back not even the drop down menu in 'window' helps at all. And 2, Lr everytime I load it up it gives me the option to retry or switch to and it takes a while for me to even get anywhere with it I think it has something to do with the catalogs? I've been using these programs for a few years now on a Mac...no problem but when I use a PC when I'm away coz it's the (only) comp available these happen PC's are so useless! Please can anyone help??...

    I can give a few suggestions on Photoshop CC 2014, but Lightroom is a separate forum and you should ask Lr questions there.
    First close Photoshop.
    Then start Photoshop by double-clicking on it's icon and very quickly after that, hold down the ctrl-alt-shift keys until you see the reset dialog. answer "Yes" to delete settings, and let Photoshop continue to load.
    It's tricky to do and may take a few tries, but at least it should reset Photoshop CC 2014 to defaults.
    Gene

  • Created a new folder in bookmarks; when try to add new bookmark, new folder does not appear in drop down menu; using safari for windows

    created a new folder in bookmarks; when try to add new bookmark, new folder does not appear in drop down menu; using safari for windows

    You are using an older version of firefox, upgrade your browser to Firefox 8 and try
    * getfirefox.com

  • I cannot activate acrobat XI pro although I entered the serial #  It asks me to choose a product which is NOT in the drop down window

    I cannot activate acrobat XI pro although I entered the serial #  It asks me to choose a product which is NOT in the drop down window

    Without knowing which program you were hoping to see in the list I can only offer the following as a result of an assumption of the situation...
    Error "This serial number is not for a qualifying product" | CS6, CS5.5, CS5
    http://helpx.adobe.com/creative-suite/kb/error-serial-number-qualifying-product.html

Maybe you are looking for

  • Printing to a Windows Shared Printer in Windows Domain Stopped Working

    If anybody can shed some light on the problem below I would be highly appreciative. I have tried every suggestion I've found on ways to fix this problem, including postings found on this forum, without success. I use able to Print to a Shared HP Lase

  • Is there a way to adjust the volume on all clips so they all have the same volume?

    I'm making a highlight film of my two children, and wonder if there is a way to make all clips have the same volume. I know I can adjust the individual clips decibel niveau, but ven though I adjust them to the same level i.e -6 decibel, the clips vol

  • Payment processing using Redirect Integration

    It seems likely I'll need to customise Verify.aspx so that the submit button passes order information to be processed by an external payment service and then back to the Webtools site with either a confirmation of Credit Card Charge  and subsequent W

  • In smart form while printing page no.

    in smartform iam printing the page no current page / no. of pages : sfsy-page / sfsy-formpages if the no. of pages are more than 9 it is printing as star ( * ) if the total pages are  12 ex : 1/ *    , 2 /* up to 9/* than 10 /12 ,  11/12 , 12/12

  • How do I fix a page # outside printable area?

    When saving a .docx file in .pdf form, it places the page number slightly outside the printable area.  This did not happen on a previous version of Adobe (my flash drive crashed 2 weeks ago so I've had to load all new software).