Hi,
A bit late, but I was researching random numbers and Jono Moore put forward a function for the Universally Unique Identifier (UUID).
You could set up two textfields: captcha and userInput
the calculate event of captcha would have the following Formcalc:
var vUUID = Uuid(1)
$ = Left(vUUID, 8) // returns a random alphanumeric 8-digit code
The user would be prompted to input that code into the userInput field which would have the following Javascript in the exit event:
if (this.rawValue = captcha.rawValue)
{
submitButton.presence = "visible";
}
else
{
submitButton.presence = "hidden";
}
The submitButton presence should be initially set up as invisible/hidden and you can shorten the code to less than 8-digits.
Hope that helps,
N.