I have two drop down fields (Customer and Project) on a form. Initially, Project field does not have any options defined. On the OnItemChange of Customer field I put a service call that would populate the options for Project. Problem is, when I hit the default Cancel action button that would reset the form, the existing options for Project still remained.
Looking at Volt Online Help, I see example code that would replace one or more options but I don't see example on how the actual function is called. I tried the code below
var newList = new Array();
BO.F_Project.setValue(newList);
as well as the variant below
var newList = new Array();
BO.F_Project = newList;
But neither seemed to work, so how do I empty all options for a drop down field that is populated via service call from another field ?
Tinus Riyanto - Prisma Global Solusi