HI Henning
Thanks for your input but this code does not allow me to save change order as it keep alerting to add CI and that is technically not possible, as you know the change must exist in database before we can add CIs
Can we amend something like the change order saves as well as prompt a message to add ci?
not sure but i think preSaveTrigger() will not work here.
Original Message:
Sent: 09-14-2020 01:53 AM
From: H.
Subject: Appear Pop up message
Hi,
create a JS variable in JS-part on top in detail_chg.htmpl:
var ci_list_length = "$args.asset.length";
And then a JS-function:
function preSaveTrigger()
{
if (ci_list_length > 0)
{
return true;
}
else
{
alert("Please Add Server(s) under Configuration Management Tab!");
return false;
}
}
That should do it. Sorry the formatting won´t work today.