PDA

View Full Version : Validation of drop down menu with Digital File Pro Upload


jwright114936
06-04-2009, 10:01 AM
I have a drop down menu inside the same form as the file field for Digital File Pro Upload. I have tried to apply a client validation for the menu as a required selection. But the validation doesn't work and the file upload starts. Any ideas why the validation might not work before the file uploads? http://174.36.134.95/registration/testUpload.php

Thanks

Ray Borduin
06-04-2009, 02:55 PM
It appears there is a bug in the code for the function WAValidateRQ in the most recent version of validation toolkit when doing client validation on a select list.

The code:
if (formElement.length) formElement=formElement[0];

should be:

if (formElement.length && inputType.toLowerCase()!="select") formElement=formElement[0];

You can correct the problem manually for now. I will make sure it is fixed in the next update.

this_is_me
06-09-2009, 08:07 AM
does it make a difference if there is no form action defined? Because I have filled out the redirection field in insert record server behaviour.