How to show an alert whenever an Item is selected in SharePoint drop down choice menu Field in a SharePoint list

sharepoint.stackexchange https://sharepoint.stackexchange.com/questions/196806

문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top