Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
5 subscribers
Views
1210 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
#AdvanceFormUtilities Hi, would like to know if it is necessary to pu
Will Teoh
over 11 years ago
#AdvanceFormUtilities
Hi, would like to know if it is necessary to put "window." in front of any AFU function when we use them??
For example:
window.FormAPI.setValue(jsValidationFieldId,valueToSet);
And what's the different if we exclude that to be:
FormAPI.setValue(jsValidationFieldId,valueToSet);
What's the implication? When we should put it, when we should not?
Thanks,
Will...
OriginalPostID-107179
OriginalPostID-107179
Discussion posts and replies are publicly visible
Parents
0
Ravi Sam
Certified Lead Developer
over 11 years ago
Hi Will,
Here the word 'Window' represents the browser's window. All global JavaScript objects, functions, and variables automatically become members of the window object. So there is no impact in using 'FormAPI.setValue' instead of 'window.FormAPI.setValue', because both are same.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Ravi Sam
Certified Lead Developer
over 11 years ago
Hi Will,
Here the word 'Window' represents the browser's window. All global JavaScript objects, functions, and variables automatically become members of the window object. So there is no impact in using 'FormAPI.setValue' instead of 'window.FormAPI.setValue', because both are same.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data