Answered
Hi, I've got two different short questions:
a) I'd like to format a Numeric Field, in order to let the user enter integers from 0 to 360 (degrees). I know I can limit the number of digits as a "Comb of X characters", but I don't want the field to appear splitted into "boxes".
Can I set a pattern for my case?
b)I've got an image field inserted into a form that will be complimented by Acrobat Pro & Reader users, and i'd like to block the image so that no Acrobat user except me could modify the image.
Thank you so much in advance.
a) you could use script in the exit event of the numeric field to check the value that the user has inputted and to take appropriate action. EG if they enter greater than 360 degrees it would change it back to a maximum of 360.
Another option would be to have an image object but include this script in the docReady event:
if (this.rawValue == "Open Sesame") // your secret password
{
imageField1.access = "open";
}
else
{
imageField1.access = "readOnly";
}
Now this is not 100% secure, as the "password" is hardwired into the form. There are ways to secure this with HASH codes, but this might be sufficient for you.
Hope this helps,
Niall
Assure Dynamics