function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
saiisaii 

To select only one check box field in pageblocktable

Hi,

I am displaying the the checkbox field in the pageblocktable.

It must select only one column only .If he select another checkbox it must display an error message .

u have select the checkbox already. how to keep these validation rule in pageblocktable. in visualforce page

please help me to  solve this issue

Rahul SharmaRahul Sharma
saii, You can add such validation using JavaScript or jQuery. Performing validation in class would be much slower. Better option would be to use radio button having only one option as selectable(If you want to avoid much of coding for that).
saiisaii

Hi

But we dont have the radio button field in salesforce .

can u send an example how to use that field in the salesforce.

actually in pageblock table it displaying the mutiple records . can u send the code  validation   javascript. thanks in avances

 

saiisaii

Thanks for ur reply.

I will try it