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
Alex Valavanis 10Alex Valavanis 10 

Inline editing - Update Lookup Ownership fields

Hello,

I created a visual force page which the user has the ability to update the Account Owner (Lookup field) by clicking a custom button, however my aim is to minimize the number of clicks.

How is it possible to enable a pop up window where the user can tick a box is order to update the selected records? Could someone assist me?

My visualforce code is below and I am adding a sceenshot of what i would like to accomplish.

<apex:page standardController="Account" recordSetVar="accounts" tabStyle="Account" sidebar="false" lightningStylesheets="true">
<apex:form >
<apex:pageBlock title="Edit Accounts" mode="edit">
<apex:pageMessages />
<apex:pageblockButtons location="top">
<apex:commandButton value="Save" action="{!Save}" />
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:pageBlockTable value="{!selected}" var="A">
<apex:column headerValue="Name">
<apex:outputField value="{!A.name}"/>
</apex:column>
<apex:column headerValue="Owner">
<apex:inputField value="{!A.OwnerId}"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>

User-added image