+ Start a Discussion
Saransh Bharadwaj 1Saransh Bharadwaj 1 

Standard user lookup button in front of <Input> HTML tag

Hi Guys,

I have been looking for some tip or trick through which I can include lookup magnify button in front of my html input textbox.
I actually want to include standard user lookup popup page because I am not using <apex:inputfield> tag here, I can't achieve this without some code hack.

Please don't recomment VF page for this lookup popup page because I don't want this but only standard one.

Thanks in Advance
Ajay K DubediAjay K Dubedi
Hi Saransh ..
<apex:form >
<input type="hidden" name="testlookup_lkid" id="testlookup_lkid" value="000000000000000" />
<input type="hidden" name="testlookup_lkold" id="testlookup_lkold" value="" />
<input type="hidden" name="testlookup_lktp" id="testlookup_lktp" value="003" />   
<input type="hidden" name="testlookup_lspf" id="testlookup_lspf" value="1" />               
<input type="hidden" name="testlookup_lspfsub" id="testlookup_lspfsub" value="0" />  
<input type="hidden" name="testlookup_mod" id="testlookup_mod" value="0" />   
<span class="lookupInput"> 
<a href="javascript:%20openLookup%28%27%2F_ui%2Fcommon%2Fdata%2FLookupPage%3Flkfm%3DeditPage%26lknm%3Dtestlookup%26lktp%3D%27%20%2B%20getElementByIdCS%28%27testlookup_lktp%27%29.value%2C670%2C%271%27%2C%27%26lksrch%3D%27%20%2B%20escapeUTF%28getElementByIdCS%28%27testlookup%27%29.value.substring%280%2C%2080%29%29%29" id="con4_lkwgt" onclick="setLastMousePosition(event)" tabindex="4" title="Customer Name Lookup (New Window)">     
<input autocomplete="off" id="testlookup" maxlength="255" name="testlookup" onchange="getElementByIdCS('testlookup_lkid').value='';getElementByIdCS('testlookup_mod').value='1';" size="20" tabindex="4" type="text" value="a" /> 
mark as best if it helps for you.