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.

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

  • @How about using the javascript in home page component ? – Mohith Shrivastava Oct 28 '13 at 11:24
  • yes, but I need to put the values from other object to populate. will javascript work in this scenario? – Saam Oct 28 '13 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. – Chris Duncombe Oct 28 '13 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 – Chris Duncombe Oct 28 '13 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. – Mohith Shrivastava Oct 28 '13 at 11:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.