Activity › Forums › Salesforce® Discussions › How can we disable the inline editing of records in Salesforce?
Tagged: Inline Editing, Salesforce Records, Standard Button
-
How can we disable the inline editing of records in Salesforce?
Posted by Ajit on April 30, 2016 at 4:34 PMHow can we disable the inline editing of records in Salesforce?
Gourav replied 9 years, 11 months ago 2 Members · 1 Reply -
1 Reply
-
Hi,
I was able to disable the InLine Editing after overriding the Edit Button with this code in the s-control<html>
<head>
<script src=”/soap/ajax/8.0/connection.js”>
</script>
<script>
function init()
{
window.parent.location.href = “{!URLFOR($Action.Donation__c.Edit, Donation__c.Id,[retURL=URLFOR($Action.Donation__c.Edit, Donation__c.Id)], true)}”;
}
</script>
</head>
<body onload=”init()”>
<p> </p>
</body>
</html>When the edit button is clicked the control is transfered to the edit page propoerly, but when I click the save button. The record is saved and the same page is displayed, it does not go back to the details page (with inline editng and edit button) even when I press the cancel button the same page is display as the control is being transfered to the s-control which is transfering back to the edit page, is there some way to disable this on the edit page is displayed..
can i do something like this..
<html>
<head>
<script src=”/soap/ajax/8.0/connection.js”>
</script>
<script>
function init()
{
if (Page is Detals_Page)
window.parent.location.href = “{!URLFOR($Action.Donation__c.Edit, Donation__c.Id,[retURL=URLFOR($Action.Donation__c.Edit, Donation__c.Id)], true)}”;
Else
window.parent.location.href = “{!URLFOR($Action.Donation__c.view , Donation__c.Id,[retURL=URLFOR($Action.Donation__c.view,
}
</script>
</head>
<body onload=”init()”>
<p> </p>
</body>
</html>
Hope this will help you also.
Log In to reply.