Hi
I'll look into why the script isn't working. It looks right to me.
If you're trying to validate users, I suggest several options:
1. Try our UserLookup QPAC. It's currently in beta, you can download it from:
http://www.avoka.com/betaqpacs/QPAC_lookupuser.jar This returns all sorts of useful information for a user, including whether the user was found.
2. If the number of users is not too great, you should consider pre-populating combo-boxes with the user names - this way, users of your form would be selecting from a list of known users, and you should not have to validate at all. We do not currently have a QPAC that returns a list of users, but we would be happy to build that and add it to our list of standard QPACs if you want it.
3. If you want to validate multiple users at the same time, we could build you a variation on UserLookup that validates multiple users at the same time.
4. Another alternative would be to buid a web service that validates a user, and put a "Validate" button on your form that invokes that. That way, the user info would be validated before the form gets submitted. You could quite easily build this web service using a simple workflow and the User Lookup QPAC. The advantage of this is that you could populate non-editable fields on your form with the users first and last name, email address, etc. This way, your users would be sure that they're typing the correct user names.
I hope this all makes sense...
Howard