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

Hiding and displaying fields in a layout

I have an s-control script written and I have it placed in the layout but it still does not seem to be working. The script is below. I am still a bit unclear if I need to put the s-control in a particular place in the layout. Please help.

What i am trying to do here, is if the Account is a production or show, hide a certain field.

function init()
if( "{!Account.Is_this_a_Production_or_Show__c}" = "True" )

document.getElementById('Logger Station Pool').style.display="block";




I need to know this too... looking forward to the answer.  Your attempt would be beautiful if it worked.