cancel
Showing results for 
Search instead for 
Did you mean: 

two checkboxes and text_edit scenario

Former Member
0 Kudos

Hi all,

Please look at this scenario: I have two checkboxes, one text_edit and one button. If at all two checkboxes are checked and create button is clicked, the system should throw an error "Either of the check boxes should be selected", which is working fine.After showing this error message, if some text is typed into text_edit and create button is clicked.It should not take it.

But whats happening is instead of restricting from taking the text into text_edit, its showing a dump which is accessed through the method of the assistance class instead of the method in the component controller.Could u pls sort out this problem?

Tanvi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Tanvi,

If at all two checkboxes are checked and create button is clicked, 
the system should throw an error "Either of the check boxes should be selected"

Why don't you use the radio button instead ?

It will make it much easier.

Warm regards,

Upendra Agrawal

Former Member
0 Kudos

Its given in the requirement to use two check boxes.

Former Member
0 Kudos

Okay.Then why don't you disable the other check box when one of the check box is checked.

Warm regards,,

Upendra Agrawal

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for the help....Ur answers helped a lot

Former Member
0 Kudos

Hi Tanvi..

How you are throwing Error Message...?

If you are using MESSAGE AREA for message handling then when ever two check boxes are checked and create button is click a message is throwed.So after entering the text in TEXT EDIT, In the action handler of the Create Button,check if any mesages exists in the Message Area,if so do not take text from the TEXT EDIT..?

With Regards,

Naga