Vulnerability in EPiServer.Forms
I have two related questions regarding Commerce Extended Properties.
1 - First question - I have fields in Commerce Extended Properties that go under MetaClass PurchaseOrder and want to make it readonly and hide it in edit mode. Is there any example code or settings?
There are a couple of examples related to Block or Page properties to hide in the edit mode in CMS using EditorDescriptor and few other ways but did not see anything for Commerce Extended Properties.
Properties appear in Order Details - Summary at the bottom section and are marked the properties in red.
Order Details - Summary
2 - Second question - Similarly, I would like to hide properties under MetaClass OtherPayment and want to make it hide and readonly in edit mode. Is there any example code or settings?
Properties appear in Order Details - Form Details - and click on the Add Payment button under the Transactions section and a popup modal appears as shown in the figure below.
Order Details - Form Details - Add Payment