Click here to Skip to main content
15,894,405 members

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!