[SalesForce] How to Populate values to textboxes dynamically on Picklist Selection Change in Standard page layout

Is it possible to populate values in textboxes(fields of object) dynamically on Pick list
selection change in Standard page layout's edit screen.

Something like that if Picklist's value = "AB" then
Field A's value = A AND
Field B's value = B

And if Picklist's value = "CD" then
Field A's value = C AND
Field B's value = D

like Selected index change event of .Net in which page get reload to fill the values.

is it possible in Salesforce Standard page layout's edit screen? if yes then please suggest me the way.

Thanks in advance.

Best Answer

You cannot easily do this in the standard layout. You could accomplish the same end result, you could use workflows to have the text field values be updated dependent on the picklist value, but this would not happen until the record was saved. It would not dynamically update the text fields on the edit page as you changed the picklist field.

If you needed it to be dynamic and update the text fields on the change of the picklist field, then you would need to use Visualforce.

Here is an example of this

https://stackoverflow.com/questions/10015597/display-fields-based-on-selection-on-a-picklist-selection

Related Topic