Copy link to clipboard
Copied
Ich habe folgendes Script
function StatusPruefen()
{
ccField = this.getField("cContact");
if(ccField.value.length == 1)
{
this.getField(ccField).focus();
}
}
StatusPruefen();
Copy link to clipboard
Copied
Are you 100% sure you spelled it correctly? It's case-sensitive (so "cContact" and "CContact" are not the same), and even a single character off (like a space or a period) will cause it not to work.
If you still can't solve it, please share the file for further help.
Copy link to clipboard
Copied
You are attempting to pass a field object as the field name. It should be one of these:
ccField = "cContact";
then
this.getField(ccField)
OR
ccField = this.getField("cContact");
then
ccField.focus();
Also, the field method is setFocus(), Not, focus().
Copy link to clipboard
Copied
Cool, thank you very much!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now