How to show an alert whenever an Item is selected in SharePoint drop down choice menu Field in a SharePoint list
-
09-12-2020 - |
문제
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.
해결책
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
제휴하지 않습니다 sharepoint.stackexchange