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
Kurt SteegeKurt Steege 

Page Layout Dependencies

Is there a way to use a check box to make fields appear in force.com

I have a set of accounts in my group there some may have an extra designation based on whether or not you check a box

For Example you are going through your account set up and you create a field with a check box

Is Red? (check or no check)

If not Checked the account would look the same however if the Is Red is checked two other fileds would be displayed dynamically

What Color Red  (text)
How does it look (text)

Thanks,
Kurt


 
Dan ErvinDan Ervin
You cannot display fields dynamically on standard Salesforce pages. However, you can create a validation rule that requires additional fields to be filled out if your Is Red? checkbox is selected.

If you must have fields displayed dynamically, please look into Visualforce. You would be looking for something like this (http://salesforce.stackexchange.com/questions/22213/how-can-i-dynamically-render-required-fields-using-a-dynamic-component).