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
Hi Sabthami,
The problem with your code that the element with the id "UserID" is a span which contains an anchor and the anchor text property contains the selected value and not the UserID element.
To achive what you want use the following code:
Regards,
Álmos