Deb
|
Posted: 01/24/2005, 11:18 AM |
|
Has anyone used Professional Validation and More(PeterBlum.com) with CodeCharge Studio? Or do you know if I will I have to use it separately through Visual Studio?
It has a validation tool, where if a checkbox is checked, an entry will be required in a textbox. If anyone has a suggestion on how to do this without this tool, that would be a big help! I've looked at javascript but don't know it very well and have only found examples to check the box if an entry is made in a textbox or if the checkbox is checked it highlights the textbox. I need to make the textbox required.
Thanks for any input you have!
|
|
|
peterr
Posts: 5971
|
Posted: 01/24/2005, 6:33 PM |
|
Hi,
You can select "Yes" in the "Requied" property of your textbox. Please let us know if this isn't what you were looking for.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Deb
|
Posted: 01/26/2005, 8:50 AM |
|
I do need it to be required but only if a checkbox field is checked. So it is a conditional requirement.
|
|
|
matheus
Posts: 386
|
Posted: 01/26/2005, 8:59 AM |
|
Use javascript.
Something like this.
if (checkbox is checked){
if (textbox.value == ""){
alert('Please, textbox is required.');
return false;
}
}
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
Deb
|
Posted: 01/26/2005, 9:06 AM |
|
Thanks so much for the help! Should I add it to Client On Submit? Thanks again for the help!
|
|
|
Benjamin Krajmalnik
|
Posted: 01/30/2005, 10:29 PM |
|
Yes.
|
|
|