Help Using Advance Form Utility Pro

Using Advance Form Utility Problem.
I copy Advance Form Utility jar file in plug-in folder and on form I try to use following function FormAPI.populateDropdown() with following details:
1. I define a rule MaxAllowedDaysonCA ==fn!index(ri!value,lookup(ri!type,ri!select,0),0) where value is type number and can get multiple value,type is from type text and can also get multiple values and select is from type text.
2. On a form on a dropdown25 filed which default vaue is CDT I define an event rule change ---FormAPI.populateDropdown("dropdown45",["MaxAllowedDaysonCA",FormAPIgetValue("dropdown25").id],"TypeDescription","NumberOfDays");

And it wont work and get me some exception.
Can somebody help me what wrong with my definition?

OriginalPostID-22966

OriginalPostID-22966

  Discussion posts and replies are publicly visible

Parents
  • In most of the cases issues like this one are caused by the wrong syntax or value in the way you are calling the JS function or passing the parameters to it. Given this is, at the end, JavaScript, you can easily debug your own code using IE Developer Tools JS Debugger; it's always better to troubleshoot your own code because a call like the one you are describing will depend on what you have in your form, the way you are calling the function, etc; a lot of factors which are specific to your form (especially because the populateDropdown is proved to work fine).

    Take a look at this post to get more information on how to debug JavaScript, see my last entry from Jan 27 forum.appian.com/.../2692
Reply
  • In most of the cases issues like this one are caused by the wrong syntax or value in the way you are calling the JS function or passing the parameters to it. Given this is, at the end, JavaScript, you can easily debug your own code using IE Developer Tools JS Debugger; it's always better to troubleshoot your own code because a call like the one you are describing will depend on what you have in your form, the way you are calling the function, etc; a lot of factors which are specific to your form (especially because the populateDropdown is proved to work fine).

    Take a look at this post to get more information on how to debug JavaScript, see my last entry from Jan 27 forum.appian.com/.../2692
Children
No Data