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

Showing a field in Standard detail Page but not in Edit Page

Hello All,

Can someone help me in achieving the below requirement

I have a field (Which is a master -detail) and i want this field to be not visible in creation page (which is a vf page), but on saving the record it should be visible(Standard detail page)

Thanks in advance
Using 'rendered' attribute you can hide/show the field.Like
<apex:outputText value="{!Yourfield}" rendered="{!showfield}">
you can set 'showfield' default as false in your constructor and the after save you can set 'showfield' as true.
Hey Abhi,

Thnaks for the reply.
Infact i am able to hide/show the field in vf pag and detial page.

But on saving i am unable to get the field value saved into it.
The field here i am dealing is having a relationship of master-detail