Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

What is wrong with following event ajax call ffrom form on chanhe od date field

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
  • If the result of your calworkdays expression is supposed to be used to set number41, number42, number43 just add the corresponding setValues after window.FormAPI.setValue("number41",e); separating each statement with a semicolon for instance:

    FormAPI.evaluateServerSideExpression(function(e){window.FormAPI.setValue("number41",e);window.FormAPI.setValue("number42",e);window.FormAPI.setValue("number43",e);},
    "=calworkdays(" + FormAPI.getValue("date1").id + "," + FormAPI.getValue("date2").id +")");

Reply
  • If the result of your calworkdays expression is supposed to be used to set number41, number42, number43 just add the corresponding setValues after window.FormAPI.setValue("number41",e); separating each statement with a semicolon for instance:

    FormAPI.evaluateServerSideExpression(function(e){window.FormAPI.setValue("number41",e);window.FormAPI.setValue("number42",e);window.FormAPI.setValue("number43",e);},
    "=calworkdays(" + FormAPI.getValue("date1").id + "," + FormAPI.getValue("date2").id +")");

Children
No Data