Requirement While deactivating account record, we need to prompt user to entering comments, before deactivating account. Solution We can implement this requirement using different ways, in this post we are going to provide out of the box solution for this requirement. We can achieve this using dialog. If you are new to dialog, I suggest you to refer this KB first, where you can learn about dialog and their components. Idea here is hide the out of the box deactivate button for account entity and then design a dialog with prompt and response, we can ask user to enter comments and then we can update account entity description field (or you can setup your own custom field) with the comments, after that we can deactivate account record. Use the following steps to design our dialog:
Testing Dialog To test our dialog, now simply navigate to Sales, then Accounts and select an account and click on Start Dialog button under more commands (…), it will display our dialog name, select our dialog and click on Add, it will ask for comment like the following: Click Next button after entering comments and finish it, it will store comment under description field in account record and will activate account, and you check your account record under Inactive view. We can simply hide our out of the deactivate command button using RibbonWorkbench tool, you can refer our earlier article for how to hide system buttons.