1

I am trying to create a standard clone button type functionality for a custom object which has a master detail relationship with Account and lookup with Contact. On click on the custom button a vf page is loaded. In this vf page can we make the Account field as editable? Right now its coming as read only.

Thanks in advance.

  • Sharing setting for this Account field is : Read/Write: Allows users with at least Read/Write access to the Master record to create, edit, or delete related Detail records. – SFDC_MJ Aug 18 '14 at 7:00
  • Are you using <apex:inputfield> on VF page? – tandonprateek Aug 18 '14 at 7:02
2

I got the solution. On the field we have this option Reparentable Master Detail. That needs to be checked. And then with the help of field sets the field can be displayed in editable mode on the VF page.

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.