An error occured while validating
Hyphen must be preceeded and followed by an alphanumeric character.
Unable to create the VM because the requested size is not available in the cluster where the availability set is currently allocated. Read more on VM resizing strategy at https://aka.ms/azure-resizevm.
In that case, the previous value of the field is restored, and the user has to enter the data again.
One of the questions I get asked again and again is how to validate a field value in an Acro Form with a custom validation script.
Adobe provided a lot of infrastructure to do that with just a simple script.
Let’s take a look at how to do that with a text field that is only supposed to have a value of either ‘AAAA’ or ‘BBBB’ (yes, I know that this does not make much sense in a real PDF form).
So, if the user enters ‘01234’ we should see an error message that would instruct the user about what type of data is valid for this field.
If the VM is created with a template, the error object also contains a details section that contains an inner level of error codes and message.