1

I have added a Contact lookup to Account, and I am displaying it on the Account layout via the Related Record component. But I don't want to define a Create Action for it. In other words I want the Related Record component to be in read-only mode.

Is there a way?

3
  • You should remove the create ability from the profile and sharing settings – Itai Shmida Jul 11 '17 at 4:43
  • @ItaiShmida I don't want to block users from creating Contacts altogether; I only want to block record create from the Related Record component. – Mossi2 Jul 11 '17 at 16:27
  • 1
    So as far as I know - this is impossible to do in lightning – Itai Shmida Jul 11 '17 at 18:48
1

One workaround I was able to employ is setting all fields as read-only on the compact layout for the update and/or create action.

0

You need to remove the New button from the list view on the page layout. Under Setup>Object Manger>Account>PageLayouts>edit then click the wrench on the list you want 'read-only' and expend the buttons section. Uncheck the button New

2
  • Thank you. You are talking about related lists in page layouts while this question is about the Related Record component in Lightning pages. – Mossi2 Jul 11 '17 at 20:20
  • Ah Gotcha - my apologies. – wellmstein Jul 11 '17 at 20:31

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.