开发者

Salesforce - Populate text are from drop down selection

开发者 https://www.devze.com 2022-12-16 07:30 出处:网络
I hav开发者_如何学JAVAe a picklist with three values and a text area that has three values as well, but I would like to correlate one value from the picklist with one value of the text area. Any thoug

I hav开发者_如何学JAVAe a picklist with three values and a text area that has three values as well, but I would like to correlate one value from the picklist with one value of the text area. Any thoughts as on how I can do this?


If creating a visualforce page is an option, you can do this with a controller extension, or a custom controller. For example, you could override the save() method and have your new save code populate the text for you-- simply create a map of dropdown values to text area content and set the text as desired. It should also be possible to do this without saving by using some of the visualforce built in AJAX hooks: look at the onchange attribute. (Note that last I checked the onchange did not fire properly for lookups, but it may work for dropdowns)

Have a look at the visualforce documentation here: http://www.salesforce.com/us/developer/docs/pages/index.htm

0

精彩评论

暂无评论...
验证码 换一张
取 消