You need to sign in to do that
Don't have an account?

Jquery not working with apex:inputField
hi
i want autocomplete functionality on lookup field.
So i wrote jquery for autocomplete.
when i tried to use in apex:inputField it is not working.
In apex:inputText it is working.But the problem is it is displaying id of the record and not the name.
When using in apex:inputField the lookup is showing like this..

Code Snipprt:
<script type="text/javascript">
var jq = jQuery.noConflict();
var apexACList =[];
<apex:repeat value="{!listAC}" var="ACList">
apexACList.push('{!ACList.WS_User__r.name}');
</apex:repeat>
jq(document).ready(function(){
jq(".acautocomplete").autocomplete({
source : apexACList
});
});
<apex:inputField value="{!relList.Person__c}" styleClass="acautocomplete" />
Can anybody help me on this..
i want autocomplete functionality on lookup field.
So i wrote jquery for autocomplete.
when i tried to use in apex:inputField it is not working.
In apex:inputText it is working.But the problem is it is displaying id of the record and not the name.
When using in apex:inputField the lookup is showing like this..
Code Snipprt:
<script type="text/javascript">
var jq = jQuery.noConflict();
var apexACList =[];
<apex:repeat value="{!listAC}" var="ACList">
apexACList.push('{!ACList.WS_User__r.name}');
</apex:repeat>
jq(document).ready(function(){
jq(".acautocomplete").autocomplete({
source : apexACList
});
});
<apex:inputField value="{!relList.Person__c}" styleClass="acautocomplete" />
Can anybody help me on this..
http://blogforce9.blogspot.in/2013/10/auto-complete-visualforce-component-v2.html
where you can also download an unmanaged package for you to make changes as necessary.
Cyrus Talladen
CRM Engineer
www.levementum.com