Unable to update the toggles based on one of the toggle value in an applet
Hi,
I have 4 toggles in an applet. If i selected one of the toggle value to Yes then i need to change remaining 3 toggle values to N immediatly.
I wrote the below code in PM but found that PM/PR isnt invoked when toggle is changed in openui. Could you please let me know where below code needs to be implemented. Any help is appreciated.
function OnFieldChange() {
var controls = this.Get("GetControls");
var ProductMember = controls["ContactAll "];
var value = this.ExecuteMethod("GetFieldValue", ProductMember);
if(value == "Y")
{
this.SetProperty("Publish", "N" );
this.SetProperty("Other Product", "N" );
this.SetProperty("Connect", "N" );
}
}
Regards
Deepu