How we are Integrate the FormDataProvider component with the Form component

How we are Integrate the FormDataProvider component with the Form component

Hi Magento friend today's i'm share what is FormDataProvider component

In Uicomponent The FormDataProvider UI component is a data provider for the Form component. It's stores form data in a specific format that is shared among all UI components in the scope of Form component and provides the functionality for submitting the data.

How we are Integrate the FormDataProvider component with the Form component - 


<form>

    <dataSource name="sales_rule_form_data_source">

        <argument name="data" xsi:type="array">

            <item name="js_config" xsi:type="array">

                <item name="component" xsi:type="string">Magento_Ui/js/form/provider</item>

            </item>

        </argument>

        <settings>

            <submitUrl path="path/to/submit_form_data_controller"/>

            <validateUrl path="path/to/validate_form_data_controller"/>

        </settings>

    </dataSource>

</form>


Deepak Kumar Bind

Success is peace of mind, which is a direct result of self-satisfaction in knowing you made the effort to become the best of which you are capable.

Post a Comment

If you liked this post please do not forget to leave a comment. Thanks

Previous Post Next Post