Hi. I need to insert a popup message when a user not to fill out a required text field.
Someone can help me?
What should trigger this pop-up to appear? You have to use an event, not a non-event...
My pdf has a lot of fields, but only one must be mandatory.
If the user does not fill in this field, when saving the file, the popup must show: required field.
OK, but be aware that won't prevent the user from saving the file.
What's the name of that field?
Ok, i doesn't matter if you can save anyway. The important thing is that you see the alert.
The field is called: Data di trasferimento
var f = this.getField("Data di trasferimento"); if (f.valueAsString==f.defaultValue) app.alert("You need to fill in \"Data di trasferimento\"!",1);
(You can adjust the text of the message to whatever you want it to be, of course)
Sorry... it says:
SyntaxError: missing ) after argument list
2: to the line 3
Remove the space between the back-slashes and the double-quotes (") characters.
Great! It works!
Many many thanks!