Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
/t5/acrobat-discussions/reference-error-document-is-not-defined/m-p/13976642#M422183
Jul 31, 2023
Jul 31, 2023
You keep missing the point, so I will try to make it as clear as possible, one last time.
You're continuously confusing three different things:
1. this.getField(EmailDialogue).value;
2. this.getField("EmailDialogue").value;
3. this.getField("<EmailDialogue>").value;
Line #1 accesses (or attempts to access) a field whose name is defined by a variable called EmailDialogue, since there are no quotes around the name.
So, it has to be preceded by something like this:
var EmailDialogue = "Text1";
In that case, line #1 will access a field called "Text1". The name of the variable is not important.
Line #2 accesses (or attempts to access) a field whose name is exactly "EmailDialogue" (excluding the quotes, of course, which are used to identify the boundaries of a string in JS).
Line #3 accesses (or attempts to access) a field whose name is exactly "<EmailDialogue>" (excluding the quotes, but INCLUDING the bigger-than/smaller-than symbols).
Edited: I had to post this reply by email and it screwed up some things... Fixed it now.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more