0

Its the part admin grid Add button form. I want to make the title field Required.

 <block class="Magento\Backend\Block\Widget\Grid\Column" as="title">
    <arguments>
        <argument name="header" xsi:type="string" translate="true">
            Title
        </argument>
        <argument name="index" xsi:type="string">title</argument>
    </arguments>
</block>
1
1

Try the required class

<arguments>
    <argument name="required-entry" xsi:type="boolean">true</argument>
</arguments>

For more info: https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/xml-instructions.html

I hope it will help you!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.