function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cookieecookiee 

Hiding relationship field on page layout

Hi All,

 

I am a new bee to the force.com development world and have a basic questions are currently developing in the free version  and will be soon going to the enterprise version.

 

I have created two custom objects Order Header and Order Line with few fields in each and also created a relationship field between the two and used a delivered page layout.

My issue is when I try to enter data for the order line ,the relationship field appears on the page with a look up.It would be pretty confusing for our users having to reneter\lookup the header row and assign it to the order line.

I read the documentation and looks like it is a required field and cannot be hidden or made read only. Was any body able to achieve this or how to get around this issue.

Appreciate all your help.

desidskdesidsk

If you are using standard layout , i dont think it is possible. However you can try trigger.

 

Now, if you use visualforce page, you can set relationship between two ojects throughapex code

cookieecookiee

Thank you for the prompt reply, will try using the triggers.