Hot answers tagged

8 votes
Accepted

How to pop-up a standard Edit-record modal in LWC?

You need to use lightning navigation service. Import the navigation in lwc. import { NavigationMixin } from "lightning/navigation"; Extend the NavigationMixin class in your lwc component. ...
Rahul Gawale's user avatar
5 votes

Send user to edit page without inserting the record

As you've mentioned in your edit, you can pass fields in the URL string, but only if you use the Field ID, a concept known as "Salesforce URL hacking". You can read more about that if wanted on ...
Morgan Marchese's user avatar
5 votes
Accepted

Lightning: Fields on Record loaded via force:recordData appear to be read-only / unwriteable

I don't understand why I can't edit or update any of the data in this record, especially since I'm explicitly setting the Mode="EDIT" parameter Your whole issue is exactly on that line where you are ...
Jayant Das's user avatar
  • 30.4k
4 votes

Redirect Standard Edit page

to edit record link should looks like: value="/{!con.id}/e" better solution is to use URLFOR and Action value="{!URLFOR($Action.Contact.Edit, con.id, [])}"
Oleksandr Berehovskyi's user avatar
4 votes
Accepted

How to embed a preexisting VF page into a section of the Account Page?

Make sure that page, that you want to add is using standartController of you object: <apex:page standardController="Opportunity" id="pg"> or <apex:page standardController="Account" ...
Ilya Lepesh's user avatar
  • 4,115
4 votes

Can you restrict edit access to a field once it is populated?

Seems like a validation rule would do the trick. 1. I'm assuming the following: -the picklist would be empty until it is entered by the user, in which case it should now not be editable to all except ...
Kris Goncalves's user avatar
3 votes
Accepted

Not able to edit a Marketing Cloud Asset using REST API

I have tried by myself and got the same issue like you mentioned. After I had several attempts I found that in order to update the asset you would need to put these attributes: id, assetType, category,...
Duc Le's user avatar
  • 3,038
2 votes

Salesforce Classic / Inline VisualForce Page - Can an inline VF page be edited while editing the main record (at the same time)?

Here is a suggested line of pursuit. No guarantees and I haven't tried it myself. I may later if I have time. Try adding an onunload event listener to your inline page that saves the edits made from ...
Adrian Larson's user avatar
  • 150k
2 votes

Send user to edit page without inserting the record

I have used URL hacking to send field Ids and values in the url string before inserting the record. The only issue is that the ID varies from sandbox to production etc. So the Field ID may need to be ...
addy's user avatar
  • 201
2 votes

Custom button on Edit Page

Custom Buttons and Object-Specific Actions do not appear on Object Record Pages when in Edit mode. They are intended to be used from Detail or other Pages to automate the creation of new records, ...
crmprogdev's user avatar
  • 40.9k
2 votes

salesforce Pre fill value in create page

There are few ways you can pre-defined the fields i create form:- By using the Quick Action of type create a record. It Allows you to pre-defined the field values for the field available on the base ...
sanket kumar's user avatar
  • 15.2k
2 votes

how can you increase code coverage without modifying test class?

As a short, pithy remark: you can't If you need additional coverage, then the only correct way to go about doing that is by adding additional tests (making a new test class, adding tests to the ...
Derek F's user avatar
  • 60.9k
2 votes
Accepted

What is the best way to prevent a field from being editable at a certain value?

You can achieve this via Dynamic Forms. You can now control the behaviour of the fields rather than simply hiding or showing the fields. To achieve this, you'd need to include the field twice and ...
Callum MacErlich's user avatar
1 vote

How to prevent a custom LWC lookup component to be updated

Go to the customLookup component and check whether you find the "input" element inside that. Add the "disabled" attribute to that and pass the "true/false" from parent ...
Dhanuka's user avatar
  • 11
1 vote
Accepted

Is there a way to show/Invoke the Salesforce standard edit record from the VF page

You can use these two ways of redirecting to standard edit page of lead from your vf page onclick of your custom button if you are fetch the record id:- // If you are in lightning/mobile if( (typeof ...
sanket kumar's user avatar
  • 15.2k
1 vote

lightning treegrid

The documentation for lightning-tree-grid unambiguously states Inline editing and sorting of columns are not supported
David Reed's user avatar
  • 92.6k
1 vote
Accepted

Edit Task directly from Home Page

No, neither in the past nor now. We can't edit the due date of tasks in the "My Tasks" home screen component without leaving the page. Verify with the user if he/she is thinking of clicking ...
GroundToCloud's user avatar
1 vote

Edit the "New Contact" page

To me it seems that the standard New button has been overridden with some custom component (guessing LWC). Go to Setup -> Object Manager -> Contact -> Buttons, Links and Actions -> Row ...
DevelBase2's user avatar
1 vote

Recall email sent from Salesforce Marketing Cloud

There is no way to recall messages sent from SFMC - nor really from any ESP. Even the 'recall' options in Outlook, etc. are very flimsy as they only work depending on many variables with the default ...
Gortonington's user avatar
  • 30.5k
1 vote

Override Save Button in Lightning Modal

They sort of provide a way for you to do this, but you have to rebuild it. It's called the lightning:overlayLibrary found here. You basically have to dynamically create a modalBody and modalFooter ...
tsalb's user avatar
  • 3,735
1 vote

Cannot Edit The Contact Record That is Owned By Other Users

You need to write a sharing rule to open up the access rights. It can be criteria or ownership based as per your use case. Provided that, the user's profile/permission set must have Edit access to ...
Santanu Boral's user avatar
1 vote

Edit is not working

Your component have a problem use below line in component <aura:renderIf isTrue="{!idf.Final_Rating__c > 0 }"> <lightning:buttonIcon iconName="utility:edit" ...
cloudZigZag's user avatar
  • 1,366
1 vote

Page Layout Edits Disappeared

Since, when you edit the page layout all the related lists are available so here is the resolution to find the issues: User's profile should have access to the object and related fields. If user has ...
Santanu Boral's user avatar
1 vote
Accepted

inline edit support for column

<apex:page Controller="accSearchController" sidebar="false" showHeader="false"> <apex:form > <apex:inlineEditSupport event="ondblClick" ...
Ronnie's user avatar
  • 2,098
1 vote

Edit list of objects with a custom Lightning component?

I figured it out! My JS and Apex methods had the same name. Doh!
melsherm3's user avatar
  • 111
1 vote
Accepted

Overriding Standard Edit Button

Off of the top of my head, I suspect that null should be Case.Id instead, and you need the override parameter to prevent infinite recursion: action="{!URLFOR(CASE(Case.RecordType.Name, 'Embrel ...
sfdcfox's user avatar
  • 487k
1 vote
Accepted

Making a field as un editable conditionally

you can do a validation rule with a formula something like this.. AND( NOT(ISBLANK(pageNumber__C)), ISCHANGED(Book__c) )
Vamsi Krishna Gosu's user avatar
1 vote
Accepted

how to make record editable while showing error message on vf page

I feel below correction in code will help you to achieve what you desire: public Pagereference SaveLeaves(){ integer counter=0; for(WrapperClass w : listWrapper) { ...
Mukesh Verma's user avatar
  • 1,906
1 vote
Accepted

Updating records in a related list using custom button

You can always try querying via connection.js to get the most up-to-date value from the database. var idList = '('; for (var i = 0; i < records.length; i++) { idList += "'" + records[i].Id + ...
battery.cord's user avatar
  • 8,815
1 vote
Accepted

Add field to active SFMC Data extension

You can add a column on the property screen of the data extension in Subscribers. You cannot add a non-nullable column though. You can do this in the UI or via SOAP API
Gortonington's user avatar
  • 30.5k

Only top scored, non community-wiki answers of a minimum length are eligible