3

The force:recordView Lightning component shows pencil icon edit buttons next to each field, however clicking them doesn't appear to do anything and there's no documentation on how to catch a click from them.

<force:recordView recordId="{!v.selectedCaseId}" type="FULL"/>

Shows:

enter image description here

How do we catch a click event on those edit buttons?

  • 3
    This should be reported as a bug, the recordview component should be a read only component as per docs "A force:recordView component represents a read-only view of a record." It should not show the edit pencil icon when used inside an object detail/ pagelayout. If you want to provide edit access you can instead use force:recordData instead of recordview – Rao Aug 23 '17 at 17:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.