I have a Category, and Questions form in my custom module. Questions are added against category.

Each question can be belong to a category or multiple category. I need to insert a listing on category form edit with the questions belongs to relevant category. I Used <insertListing> method in my ayakil_faq_faq_category_form.xml

<fieldset name="faq_information" sortOrder="10">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="label" xsi:type="string">Faq Information</item>
            <item name="collapsible" xsi:type="boolean">false</item>
    <insertListing name="faq_listing">

I need to perform 2 tasks here,

1- need to pass the category id to the data source and

2 - display the faqs related to the category from faq_table.

With my above steps i am unable to get the grid on form, Can anyone please help on this task.

2 Answers 2


You can Refer below link and follow the steps:-

  • thanks for the referance
    – Mujahidh
    Jan 17, 2023 at 11:26

You should follow this file path : vendor/magento/module-customer/view/base/ui_component/customer_form.xml

    <insertListing name="customer_address_listing" component="Magento_Customer/js/form/components/insert-listing">
                <link name="parent_id">${ $.externalProvider }:params.parent_id</link>
                <link name="parent_id">${ $.provider }:data.customer.entity_id</link>
                <link name="onAction">ns = ${ $.ns }, index = actions:action</link>
                <link name="onMassAction">ns = ${ $.ns }, index = listing_massaction:massaction</link>

And make sure your listing file follows like this : vendor/magento/module-customer/view/adminhtml/ui_component/customer_address_listing.xml

Also you can check the data source in vendor/magento/module-customer/etc/di.xml

If you get a reference for the Magento_Customer module then you achieved it. and also your all questions are solved there.

  • Thanks for the referance
    – Mujahidh
    Jan 17, 2023 at 11:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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