Hi,
I'm using the below code, onchange() event field in BPF. But alert is poping continuously on screen.
function DiscoveryExpirationDate(executionContext)
{
var formContext = executionContext.getFormContext();
var systemDate = new Date();
var ExpirationDate = formContext.getAttribute("aith_expirationdate").getValue();
if(ExpirationDate < systemDate)
{
alert('expiration date cannot be greater than system date');
formContext.getAttribute("aith_expirationdate").setValue(systemDate);
}
}
Any help would be appreciated.