开发者

Regarding the radio button in salesforce

I am searching for the solution regarding the radio button in salesforce apex programming.

The scenario is I have one object in that one field is updated with value when the radio button is selected in which there开发者_StackOverflow are three options like settings1 =0, settings2 =1, settings3 = 2. After that if I select setting1 then when I come to same page through command link of settings page. Previously selected [settings1] is not in a selected state radio button. I have written query to get that field value but it is not showing the selected radio button previously selected.


Are you using the visualforce selectRadio tag? If yes, then have you set the value attribute to your object field? Make sure to not mix up the Labels and Values, the object field has to store the value (0 if you selected settings1) and not the label (settings1) of the radio field.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜