Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validating Keyword fields

Status
Not open for further replies.

akbryer

Programmer
Mar 25, 1999
110
US
I have a keyword field on a form that has two hardcoded keywords. It is a checkbox. I want to make sure that users don't ckeck both boxes. I have tried<br>
If field "A" equals "Keyword1" & "Keyword2" Fail with message.<br>
<br>
I tried both input translation and input validation.<br>
<br>
This has not been working.<br>
<br>
Gary.
 
Gary,<br>
Not sure why you would not use "radio button" instead of a checkbox selection. I will look and see if there is another option in ding this. If only one keyword can be used a radio button is what you need to select.<br>
<br>
<br>

 
mark01,<br>
<br>
The reason for the check box is to prevent users making a selection that they can't take back. If, for example, a user makes a selection from this particular radiobox keyword field and then decides to deselect all they are stuck. Therefore the checkbox.<br>
<br>
In order to prevent users from making more than one selection I need to validate that the field only has on choice selected.<br>
<br>
Again, thanks for your response. I appreciate your assistance.<br>
<br>
Gary.
 
Gary ...<br>
<br>
How about making a third-entry and using the radio button<br>
method. Include your two hard-code choices and a third<br>
called "None" or "Unknown"???<br>
<br>
k
 
K,<br>
Thanks for your response. That's a possible idea. Another possibility I learned from another developer is to use @Elements to count the items and if the is more than one element returns a failure message and if less (in my case) than two @success.<br>
<br>
Thanks, again. <br>
<br>
Gary.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top