Validating multiple checkboxes using javascript

Get SPField('Company'); var comp Status Choice Field Value = comp Status Choice Field.

Get Value(); alert(comp Status Choice Field Value ' == is the company value'); var var IBM = SPUtility. Get Value(); if(comp Status Choice Field Value == 'IBM') You may use a simple Java Script to find whether the checkbox is checked, if yes, find the corresponding textbox and check if the textbox contains any value.

Hi, I have a form that contains multiple groups of checkboxes that act like radio buttons (at the clients insistance).

There is one text field that is required and 28 checkbox groups.

The example's Validation Summary box exists only to help you tell whether the client-side or the server-side validation is presenting or clearing the message.

A compact toolbar will show when editing a single level element like a heading or button.

If in doubt please contact the author via the discussion board below.

In our previous tutorials, we have performed various operations on different form elements using Javascript and j Query.

Show an alert message to the users if there is no value.

Below is the Java Script function that gets executed when the Custom Validator is triggered on the button click.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “validating multiple checkboxes using javascript”