Hi,
Could you please explain more with some example code snippet, how you did this? I am facing the same issue.Thanks!
Here is an example where I am monitoring some date fields for changes. This code is entered as the Initialize Rule of the Root Panel object.
//keep track of the initial values of the fields that you want to monitor for changes
var odt = RequestDeadlineTime.value;
var odd = RequestDeadlineDate.value;
var otd = TranslatorDeadlineDate.value;
var ott = TranslatorDeadlineTime.value;
var valList = [];
//create the event listener
guideBridge.on("elementValueChanged" , function(event, payload) {
//check if the changed element was one of the ones tha you want to monitor
if(payload.target.name == "RequestDeadlineTime" || payload.target.name == "RequestDeadlineDate" || payload.target.name == "TranslatorDeadlineTime" || payload.target.name == "TranslatorDeadlineDate") {
//record the change in the log if you desire
console.log("The value of object '" + payload.target.name + "' has been changed from '" + payload.oldText + "' into '" + payload.newText + "'.");
console.log(odd + " " + odt);
//perform some logic if the monitored fields are changed.
//In this case, I am validating some dates. if they are valid, I show some other field.
if(guideBridge.validate(valList,RequestDeadlineTime.somExpression) && guideBridge.validate(valList,TranslatorDeadlineTime.somExpression)) {
updateDeadline.visible = true;
} else {
updateDeadline.visible = false;
}
}
});