I have a dropdown list in sharepoint form, it currently has a dropdownlist called Category and it is mandatory field. The field is lookup field from another team. A first item in the category is a select category. so when user does not select on an item from drop downlist i want to trigger a current out of the box error message "You can't leave this blank". However since the first item by default is select then it will not trigger the validation.
The following code i made it will trigger but it trigger the popup message. I would like to find out how to trigger like an error message similiar to mandatory textfied where you did not input the value