You need to sign in to do that
Don't have an account?
nbhradio
searching for a custom object using custom Visual Force page
So I am building a Custom Visualforce page in which I have created a custom object say Student. Now I want to search Students using a search box in a visualforce page so that if I click on a student's name it details gets filled shown in the fields below.
Although I tried doing it with Lookup field which I set up as Mentor for each student but I want the lookup to show student names instead of the mentors
Although I tried doing it with Lookup field which I set up as Mentor for each student but I want the lookup to show student names instead of the mentors
<apex:page standardController="Student__c" showHeader="false" > <h1 style="align: center; font-size:x-large">Student Details</h1> <apex:form> <apex:inputField value="{!Student__c.Mentor__c}"/> </apex:form> <apex:pageBlock> <apex:pageBlockSection> <h3>Student Name:</h3> <h5>Student Class: </h5> </apex:pageBlockSection> </apex:pageBlock> </apex:page>
Try it using controller.
Hope it helps.
Let me know if it helps or if need any further help.
Thanks,
Shaik Murthujavali