I need to set a list alert for current (logged in) user using JavaScript.
Code:
var currentcontext = new SP.ClientContext.get_current();
var currentweb = currentcontext.get_web();
currentcontext.load(currentweb);
var currentuser = currentweb.get_currentUser();
var list = currentweb.get_lists().getByTitle("List Name");
I am getting the current user and list using this code, but I do not know how to set alert for this user on this list
see below snapshot
I want to set alert same like which mention in snapshot using JavaScript. Is there any way to do it?