Validation of Form Results

R

RobinSalter

Hi,

I am fairly new to Frontpage and I have set up a form in which test-takers will be asked to rank order four statements by typing numbers 1 through 4 in a text box next to each statement. (All four items are in a group box.) I need to set a data entry validation rule that will not allow people to type in and submit the same rank for more than one item. Is that possible?

I would appreciate any advice someone has to offer about this.

Thanks,
Robin Salter
 
J

JPKarlsen [FP MVP]

You can use JavaScript to validate the input. Something along this line.

pseudocode:

if(myform.field1.value == myform.field2.value || myform.field1.value == myform.field3.value || myform.field1.value aso...);
alert("You have entered the same value more than once");
return false;

However it is better with a serverside validation using ASP or PHP because people can just turn JavaScript off.


Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.


nntp://msnews.microsoft.com/microsoft.public.frontpage.client/<[email protected]>

Hi,

I am fairly new to Frontpage and I have set up a form in which test-takers will be asked to rank order four statements by typing numbers 1 through 4 in a text box next to each statement. (All four items are in a group box.) I need to set a data entry validation rule that will not allow people to type in and submit the same rank for more than one item. Is that possible?

I would appreciate any advice someone has to offer about this.

Thanks,
Robin Salter


[microsoft.public.frontpage.client]
 
Top