How to add validation while inline editing in detail view

Hello Everyone,

I am trying to add validation while doing inline editing in detail view of the quote module.

for example -
I want to show a popup if an invoice already exists for that quote that will ask “This quote has been converted do you want to create another invoice?” with YES NO button, if a user clicks on yes it will create a new invoice else not.

I am able to add this in edit and detail view but looking for a solution for inline. Kindly assist.

Thanks in advance