function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bob 11Bob 11 

Custom Button Change Owner to Portal User

I created a custom visualforce button to change the owner of list view records. 
When i testing the button, i noticed I could not choose a portal user. Is there something i can update on my visualforce page to include the ability to select a portal user? 

User-added image
 
<apex:page standardController="ServiceAppointment" recordSetVar="Opps">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection >
                <apex:inputField value="{!ServiceAppointment.OwnerId}" />
            </apex:pageBlockSection>
            <apex:pageBlockTable value="{!selected}" var="opp">
                <apex:column value="{!Opp.AppointmentNumber}" />
            </apex:pageBlockTable>
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save" />
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 
mukesh guptamukesh gupta
Hi Bob,

This is standard screen, you need to create a custom lookup screen for you approach

if you need any assistanse, Please let me know!!


Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh
Bob 11Bob 11
Thank you for helping,

Could the visualforce page be updated to have a customer lookup field? How would i do that?