0

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.

  • 2
    why? what are you trying to achieve? – teylyn Oct 14 '16 at 6:19
  • I want to insert the selected value in the drop down to another list. But it should be added as soon as any item is selected in the drop down. – Rahul Oct 14 '16 at 8:23
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.