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

How to not display 'Role' when doing a User lookup on VF page
I have a custom object that has a field that is a lookup to a User. When I put that on a VF page, I get a picklist for the UserRole (Public, Partner User) and the lookup for the name. I'd like to force it to always be for the User and not the partner user. I've tried various things that have no effect. Here's the page:
And the controller:
If anyone knows how to limit this so onlty the User role is searched and the Role picklist is not displayed, I'd appreciate it.
Thanks, Dave
<apex:page Controller="testController" sidebar="false">
<apex:form >
<apex:inputField value="{!userName.User__c}" />
</apex:form>
</apex:page>
<apex:form >
<apex:inputField value="{!userName.User__c}" />
</apex:form>
</apex:page>
And the controller:
public class testController {
public test__c userName{get;set;
public testController() {
userName=new test__c();
}
}
public test__c userName{get;set;
public testController() {
userName=new test__c();
}
}
If anyone knows how to limit this so onlty the User role is searched and the Role picklist is not displayed, I'd appreciate it.
Thanks, Dave
- olegforce