+ Start a Discussion
Alex Valavanis 10Alex Valavanis 10 

Inline editing - Update Lookup Ownership fields


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:pageBlockTable value="{!selected}" var="A">
<apex:column headerValue="Name">
<apex:outputField value="{!A.name}"/>
<apex:column headerValue="Owner">
<apex:inputField value="{!A.OwnerId}"/>

User-added image