I don't know if this category is the right place. I wonder if there is a way to block action in an XML file.
For example, there is a form where I have a button "Create New Version" and bool is validated. If isValidated = true the button "Create New Version" should not be able to be pressed. And I have to work with the XML file and the code.