I am having a SharePoint list which has a drop down menu field.
I want to show an alert as soon as a user selects any item from the drop down menu.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI am having a SharePoint list which has a drop down menu field.
I want to show an alert as soon as a user selects any item from the drop down menu.
Add the following code at script editor that show an alert message when an item selected from the choice field at your form.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("select[title='choice column name']").change(function() {
if ($("select[title='choice column name']").val() != "the selected value")
{
alert("qassas");
}
});
});
</script>
For step by step guide with images check Show / Hide fields based on choice field selection using JQuery in SharePoint