15,894,405 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ShellCl (Top 7 by date)
ShellCl
13-Feb-19 13:05pm
View
@richardDeeming - I looked, and yes, radio buttons only allow one to be clicked at once. I have a case where I can have multiple checkboxes checked at once. It should be at least one, but can have up to 10 checked at once. I need to verify at least one is checked when they click the next/previous button.
ShellCl
13-Feb-19 13:02pm
View
@richardDeeming - This is older code that was added without the requirement of checking that at least on of the Privilege checkboxes is checked when Next/Previous is clicked. The multi-page form has blanks to fill and checkboxes, with no radiobuttons. I didn't think multiple radiobuttons could be clicked at once, or had a way to validate at least one was clicked. Are you confusing my check for click of next/previous and then validation of at least one checkbox checked with the change check of the other scripts?
ShellCl
13-Feb-19 12:58pm
View
@gerrySchmitz - I don't need the script to run on change for the Privilege variables. The script needs to run when the next/previous button is clicked, which is not a change event. If no checkboxes are checked, it's not going to trigger a change event to run the script. What do you suggest I do if it's not a change event. I'm not saying the scripts that hook up change are what I should do. Apparently it's confusing the issue. If I could take them out of the script I posted, I would.
ShellCl
11-Feb-19 14:59pm
View
It seems like this https://stackoverflow.com/questions/7310590/required-data-annotation-not-working-on-a-group-of-checkboxes, but I'm not sure where the custom validation class, AtLeastOneRegionMustBeCheckedAttribute, goes in MVC.
ShellCl
11-Feb-19 14:47pm
View
If you have a suggestion I'd appreciate it!
ShellCl
11-Feb-19 13:53pm
View
It's a different function. I need to keep from going to the next page (next/prev button) if they don't check at least one of the checkboxes in my set. In the other set, if one is checked, the others are unchecked. Do you understand? I have left out the code that goes with the change scripts.
ShellCl
1-Feb-19 14:42pm
View
I tried this, but it has the same behavior. It brings up the screen with the html and button instead of skipping that step.
<a href="@*Url.Action("HmtltoPDF2","Applicant"), new { id = item.ID })>PDF</a>
Show More