Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Lookup field not rendering like drop down in New Item form

$
0
0

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

Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>