AnsweredAssumed Answered

Pop-Up message - Javascript - Request Form

Question asked by Sabthami S on Dec 4, 2017
Latest reply on Dec 5, 2017 by Almos Kovacs

Hi All,

 

We have requirement to terminate a User through Form. We have a User Picker control in the form to select user once the user is selected it has to display a pop up like a Alert message to say the selected user will be terminated.

 

We tried with the Javascript the Pop up comes before selecting the user in User Picker.Below is the Code which we used.

 

avform.registerExprSub(null, "${avform.UserID}", function(value)
{
if (document.getElementById("UserID").value != null)
{
alert("ALERT !!! You are going to Terminate the Selected User");
return(false);
}
});

avform.registerExprSub(null, "${avform.UserID}", function(value)
{
avform.alert("ALERT !!! You are going to Terminate the Selected User");
return(false);
});

 

Any help is much appreciated !!!Thanks !!!

Regards,

Sabthami Subramanian

Outcomes