How to disable a menu item button on CustQuotationJournal form?

Hi Expert ,

I want disable Create sales order menuitembutton on custqoutationjour form .

we added one menuitembutton (Create Sales Order) in the custquotaionjour form after send meuitembutton(standard).

I want disable once we create Salesorder from Sales Quotation.

where we need to write the code and suggest me sample code

Thanks in advance…

Write a method on the form . The method need to check if the sales order is been created for that CustQuotationJour record and return a Boolean value.
Then call that method (to enable/disable that button) in active method of form data source and in the clicked method of that button you have added.