77.7k views
2 votes
A user can only see the fields A,B, and C on a record of Object X until the Stage field value on the record changes from New to Working. Once the Stage field value is updated to working and the record is saved, the user should be able to see fields A, B, C and D. How would an application developer configure this?

1) use workflow to change the record type
2) use workflow to change the field-level security
3) use validation rules to expose the field
4) use multiple Visualforce pages

User QoP
by
8.2k points

1 Answer

1 vote

Final answer:

To dynamically show additional fields when a record's field value changes, an application developer should use a workflow to change the record type. This process will update the page layout and make the new fields visible without directly altering field-level security or needing multiple Visualforce pages.

Step-by-step explanation:

The student has presented a scenario about dynamic field visibility on a record in response to a change in the value of a field. In this case, when the value of the Stage field on a record of Object X changes from 'New' to 'Working', additional fields should become visible to the user.

Among the options provided, the most suitable way for an application developer to configure this behavior is to use workflow to change the record type. Workflows can automate this process by updating the record's type when the Stage field is changed, which can then change the page layout and expose additional fields to the user. This method does not involve direct manipulation of field-level security, validation rules are not designed to control field visibility, and using multiple Visualforce pages is more complex and less maintainable than changing the record type through a workflow.

User Yausername
by
8.6k points