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
19 replies
Subscribers
8 subscribers
Views
5937 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
What is wrong with following event ajax call ffrom form on chanhe od date field
natasav
over 12 years ago
What is wrong with following event ajax call ffrom form on chanhe od date field ?
window.FormAPI.evaluateServerSideExpression(function(fn){
window.FormAPI.setValue("number41",fn);
},"=calworkdays(FormAPI.getValue("date1").id, FormAPI.getValue("date2").id])");
OriginalPostID-23033
OriginalPostID-23033
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 12 years ago
Thank you! Here are a couple things to fix:
1. With this new version of the plug-in, you don't have to include the Advanced Forms JS library in your form's Custom JS field. You only have to add this to your load event:
importScript('/plugins/servlet/FormsExt.js');
2. The id of your number component, at least in your example, is number33 not number41.
3. This is a simplified version of your example:
forum.appian.com/.../36837
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 12 years ago
Thank you! Here are a couple things to fix:
1. With this new version of the plug-in, you don't have to include the Advanced Forms JS library in your form's Custom JS field. You only have to add this to your load event:
importScript('/plugins/servlet/FormsExt.js');
2. The id of your number component, at least in your example, is number33 not number41.
3. This is a simplified version of your example:
forum.appian.com/.../36837
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data