Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- Generate an error message when more than one check...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Generate an error message when more than one check box was selected
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-01-2013 10:00 PM
Hi,
I have a visual force page which display multiple records with check box's.
I need to allow the user to select only one check box at a time.If they are trying to select a another check box should display a alert saying that u r allowed to check only one record at a time.
I am trying to map all the fields of a record when the checkbox is selected....I want to generate an error message when more than one record was selected...
Thanks in advance
Re: Generate an error message when more than one check box was selected
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-02-2013 08:43 AM
Why don't you use radio buttons?
Thanks
Ankit Arora
Certified Developer | Twitter
Don't forget to give KUDOS if post helped you.
Latest Blog Posts : Streaming API- Easy Code AND Uploading Multiple Attachments into Salesforce - Simple Code
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
Re: Generate an error message when more than one check box was selected
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-03-2013 10:47 PM
Thanks for your post...
But the checkbox that am trying to use is a custom field on PageBlockTable on Page...Can you please suggest me the way how to use radio buttons instead of Checkboxes....
Thanks in advance..
Re: Generate an error message when more than one check box was selected
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-03-2013 11:33 PM
Show radio on pageblocktable rather using input fields and use wrapper class and bind the values in it.
Thanks
Ankit Arora
Certified Developer | Twitter
Don't forget to give KUDOS if post helped you.
Latest Blog Posts : Streaming API- Easy Code AND Uploading Multiple Attachments into Salesforce - Simple Code
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

