4

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.

0

1 Answer 1

4

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

9
  • @How about using the javascript in home page component ? Commented Oct 28, 2013 at 11:24
  • yes, but I need to put the values from other object to populate. will javascript work in this scenario?
    – Saam
    Commented Oct 28, 2013 at 11:29
  • @Mohith, yes that would work, but just assuming that if he's looking to do it on the standard layout, that VF is more simple and easy then JS in a homepage component. But yes, you are right, that would be possible. Commented Oct 28, 2013 at 11:38
  • @Saam, I don't understand, the question doesnt mention other objects at all. Could you update your question to describe what you are trying to do with other objects Commented Oct 28, 2013 at 11:39
  • @SF_Ninja Yes homepage component is not reliable too.But if user is looking for quick fix this approach may fit in. Commented Oct 28, 2013 at 11:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .