Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Denotes questions regarding Magento Ui Components

2
votes
1answer
30 views

Magento226: Fatal error Call to a member function setId()

I am getting this error in magento Ui component admin form , it tried changing container instead of form in Ui form , but that did not help either. Fatal error: Method Magento\Ui\TemplateEngine\...
0
votes
0answers
19 views

Category Dropdown in ui component

I want to create a parent category dropdown. And also add New Category button like product view page . How to do that..... Thanks.
0
votes
0answers
27 views

Magento 2 admin ui component grid is not working

In Magento 2.2.5, I am creating custom admin grid using ui_component. But it is not working. Admin page showing but the grid part is keeps on loading. Here is my di.xml code. Here is my ui component ...
2
votes
1answer
32 views

Magento 2 frontend uicomponent form buttons not appearing

I'm trying to create a custom form on the frontend of a Magento 2 site. I need to use the dynamicRows ui component in the form. I've created a custom module for this and set up my xml file at ...
0
votes
0answers
13 views

Magento 2 : Unable to destroy jQuery loader in js file

I want to destroy jquery loader in a js file function returning something like underscrore object. This function is called in html file using knockout binding. Not getting how to do that. This is the ...
0
votes
0answers
22 views

dependent input field magento 2 [on hold]

image 1 Is parent category option selected here must reflect to child category. image 2 This IS child category Like if someone selects softwere here games flutter webapp's must be option all other ...
0
votes
1answer
20 views

Dropdown in admin form

I have created some category using admin ui-component form and displayed in ui-component grid. Also i want created a drop down field(Field name: Parent category) in this form which contains already ...
2
votes
0answers
24 views

How to create a parent category dropdown in admin form in magento2.2

I want to create a drop-down field in admin UI-component form in magento2.(for getting parent category/post) How to do that How to do that Thanks
0
votes
2answers
24 views

Magento 2 - pass argument in class from ui component

I want to pass boolean argument to class method from uicomponent_form.xml My xml code is <field name="allow_shipping_method"> <argument name="data" xsi:type="array"> ...
1
vote
1answer
39 views

magento2 add maxlength in form ui component

I know magento give max_text_length validation for validating length & print error message regarding it, but I want to add attribute in my input field as maxlength="5" so i can stop user to adding ...
0
votes
2answers
22 views

Magento 2 - debugging js ui component in browser

As i am searching debugging of ui component i don't find any great articles to debugging ui component in browser console so here i am writing my question. As we all know magento current system is ...
2
votes
1answer
40 views

How to populate data in custom filed in product edit form in Magento 2

I have added custom filed dropdown in product edit form using UI component. Below is the code in file app/code/Vendor/Module/view/adminhtml/ui_component/product_form.xml <?xml version="1.0" ...
0
votes
0answers
6 views

How to remove delete massaction

I to create separate ACL for delete action. Its clear how to add additional element, but its not clear how to modify existing. I need propper solution for modifying uiComponent.
0
votes
1answer
13 views

Magento 2.1.11 - adminhtml - Saving model to database with boolean field does not match value

I am trying to save data from a model to the database. Most of the data is being saved correctly, but I am having issues with boolean fields. The database has several boolean fields something like ...
0
votes
0answers
15 views

Adding if condition in layout xml file

I want to add a if else condition statement in a layout xml file. I have to two uicomponent file. if condition 1 then uicomponent file 1 else uicomponet file 2 Any help.
0
votes
2answers
34 views

how to create custom options file in magento 2

In my custom module , I just created a custom form using ui- component and added select formelement but don't know how to add custom options? <formElements> <select> ...
1
vote
2answers
21 views

Render pure HTML in magento admin form using UI form

I created one extenssion want to render some Pure HTML from the other blockand phtml file. I have review some magento core code to render like this but not able to find the things. In the review ...
0
votes
1answer
22 views

Magento2 - Adminhtml - Checkboxes default as checked when it does not show as checked

I am a bit of a lost as to handling checkboxes (a group of them) for a custom form, made as a UI Component. On the form, they look as if they are unchecked, but if I click them then it reacts ...
2
votes
1answer
28 views

How to add some custom text on action area on admin side

From the image given below how can i add a text in that area. I have created the listing page using ui components <argument name="data" xsi:type="array"> <item name="js_config" xsi:...
2
votes
1answer
31 views

Magento 2.2.5 custom js not working when I call it from phtml file using uiComponent

I have created admin form using uiComponent. I have called phtml file using <htmlContent name="html_content"> in xml file. I tired to call custom.js using below code but its not working. <...
2
votes
0answers
29 views

How to create dynamic rows field in custom Ui component form

I want to create field in custom ui form to add dynamic row and delete that row.. I know how to add dynamic row field in STORE > Configuration but I don't know how to add in UI component form. Then ...
0
votes
0answers
28 views

How to Hide/Show Customer attribute based on customer group in Admin panel Magento 2?

How to Hide/Show Customer attribute when the customer group is switched from general to the wholesale group?.
0
votes
0answers
21 views

Magento 2.2.5: Image isn't saving in the database with custom ui component file uploader

So I am following the answer from this question (Magento 2: Implement UI Fileuploader) but for some reason when I upload the image via the edit product page and hit save it doesn't save, I using a ...
0
votes
0answers
9 views

How to modify meta data of custom admin grid in Magento 2

I want to hide the Massaction of custom admin grid for some users. How to modify the layout in php?
4
votes
1answer
50 views

Dynamically add form fields using Ui component on click of Add More button in custom admin module

I have created a module which allows to add items dynamically from admin panel configuration. I have created form using ui component and want to add 3 fields dynamically on click of "Add More" button. ...
2
votes
0answers
33 views

Magento 2 Form UiComponent Explaination

I have found very good in detailed explaination of the magento ui_component grid in below question : Explanation of UI Component Grid in Magento 2 I want to know about the form ui_component in ...
1
vote
0answers
19 views

Magento 2: Creating dynamic matrix in new/edit product page

I need to create a custom matrix for every product on Magento 2 product add/edit page. I need to have both the rows and columns to be dynamic so when someone click add button for either row or column ...
2
votes
0answers
22 views

popup in admin grid magento 2

I am using admin grid where I have product grid. In product grid I have action as of now this is link redirecting to new page. But I want when I click on link it open as popup. Like when we adding ...
0
votes
0answers
10 views

PDF file uploader component redirect to 404 in custom module admin form

I have created custom module and in admin form there is one pdf upload field. I am using magento fileuploader componenet to upload my pdf but it gives 404 when upload pdf. Here is my ui form element ...
1
vote
1answer
30 views

Adminside Menu which display a table details

I'm trying to create a menu in admin side which show a table. now i'm done with adding new menu and which has two sublevel. i need to display third level having a table app/code/Dyode/Pricebeat/view/...
2
votes
1answer
34 views

Magento 2 save grid data from admin form

I added a grid in admin form using UI Component by following the answer given here How to create Grid in Tabs? Now when I save the data, I don't get the values of selected items in save controller. ...
2
votes
0answers
17 views

Magento 2 : admin product edit page custom attribute with customised Ui-Select

I have created product attribute with input type select below, I have put attribute create code. $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]); $eavSetup->...
1
vote
2answers
29 views

Magento 2 : Edit id name alias

How can I change the admin edit id name like if I want to change xx_id to id in a Ui component form in address bar? http://localhost/Magento225/admin/vendor/module/edit/xx_id/1/ To: http://...
2
votes
0answers
19 views

Negation in the imports link (UI component)

I've got the fieldset component in my custom UI-form: <fieldset name="default"> <settings> <label>Default</label> <collapsible>true</collapsible&...
0
votes
1answer
36 views

Customer export not working after creating custom attributes in magento 2.2.5

I have created a custom attribute named "Approve Account" while export getting below error. Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::...
1
vote
0answers
27 views

Magento 2 Not getting post varaible from ui component phtml file

Back again hoping to get some help, I have looked at the magento posts regarding this and have implemented the data-form-part method to no help. Hopefully someone can spot something I can not. This ...
0
votes
0answers
11 views

2 Different keys are being genereated, Admin Grid action column-> edit link and page created after clicking save and continue butotton

I have created a Module, I created an admin grid and crud operations. All are working fine when I disabled secret key form store configuration. In show secret key in url my Edit action and Delete ...
0
votes
0answers
11 views

Creating a textbox in a grid column

I want to add a textbox on the inside one of the column in an ui grid. After creating a textbox in every row of the column, once the user click on the save button above. All the entered values in the ...
0
votes
1answer
42 views

Magento2 admin grid ui component form hide multiple fields based on php condition

I have so many fields in my admin grid form which made using UI component. I want to hide some of the fields using php condition. I know that it can done using DataProvider file and I also followed ...
0
votes
1answer
26 views

can anyone have idea that how to create edit action for ui component based custom grid in magento 2?

app/code/Mageplaza/HelloWorld/view/adminhtml/ui_component/mageplaza_helloworld_post_listing.xml Here below I want to add edit button column as Action column. Actually I want to fetch each record ...
0
votes
0answers
10 views

Magento 2 - How can I use custom handler for a mass action?

I know that mass actions are handled by massactions.js. How can I use a custom handler for a custom mass action?
2
votes
1answer
66 views

Hide/show admin form field on toggle value using UiComponent in Magento 2

I want Hide/show admin form field on toggle value using UiComponent. when enable the toggle fields should be visible and on disable the toggle fields should not be visible. Example: [When enable the ...
0
votes
0answers
20 views

Magento 2 Admin Form adding php/html

In reference to this Post Magento 2: Add html instead of Ui from field? I would like on my form to display the products, the image, name of the product associated with this video on the screen. I ...
1
vote
0answers
46 views

Depends in UI Grid and Edit form

How can i use depends like in system.xml in my ui grid or edit form lines from system.xml <depends> <field id="section_id/group_id/field_id">1</field> </depends>
0
votes
2answers
166 views

Magento2 | Listing grid / “select all” option not working

I’m having issue building listing grid in my own module. The fact is that if I select one or severals checkboxes, it works. If I select all (one by one or using the select all dropdown above), nothing ...
0
votes
0answers
12 views

Use UiComponents as widget parameters

I've been trying to use UiComponents as parameter input types for widget parameters. So far I have not been able to get it to work. See my below code set up as a Helper, it seems that it tries to add ...
0
votes
0answers
14 views

Cloning text box on clicking button

I want to add a button aside of the drop down. Clicking on that button the select along with the button should clone on next line. The form is design using Ui component. How can i success, please ...
1
vote
0answers
11 views

Change tab content with dropdown value?

I'm building a module, where the user can fill his homepage with blocks from the backend. All blocks are taken in an admin grid ui compontent, and there's 3 different kinds of blocks to choose from: ...
1
vote
1answer
32 views

ui form data not getting saved

I have created a UI form in admin but I am not able to receive form data in save controller. Following is my code in ui_component <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http:...
0
votes
0answers
31 views

Inline edit not working in grid

I have created a inline edit for a grid. The inline editing is working fine when there is a single row. But if there are more then I'm not able to edit the values and save them. Here is my code. <...