Skip to main content

Pop out an error dialog box message when trying to resolve a case, when a field is empty.

editSubscribe (0) ShareShare
Posted on by 6

Hi, I am looking for a JavaScript solution for the following scenario:

In the case form, when we click on “Resolve Case” button, it will check if a text field has data being updated or not. If it is blank, a message should pop-up and it should not allow to resolve the case until the field has been updated. Note: the field is not mandatory, but it needs to be filled before resolving

Currently we are using Ribbon Workbench, we used Run workflow and in the Error Callback JavaScript we added Xrm.Navigation.openAlertDialog({text: /Cannot resolve this case. Possible Cause: Please check if all child cases has been resolved/}); but still this does not check the condition.

Is there any possibility where we can achieve this with JavaScript code?