Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Magento 2 - How to make a dynamic dropdown in custom checkout module

I have a custom module that uses most of the sample form in the Magento 2 docs for a static form - https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_form.html I need to have the select ...
0
votes
0answers
14 views

Magento 2 - Using UI Component as input for widget

So far, in all the documentation and tutorials for UI Components that I've come across (Like the documentation here: https://devdocs.magento.com/guides/v2.3/ui_comp_guide/bk-ui_comps.html, or in ...
0
votes
1answer
18 views

Magento 2 UI Grid - How to add tabs in columns control?

I want to add Tabs in Columns control of my custom extension’s UI Grid to categorize columns. For Example:
0
votes
1answer
20 views

Where does magento save UI Grid filter data?

Where does magento save UI component Grid applied filter data? Deleted session table but applied filter data does not save there
0
votes
1answer
42 views

Magento 2 ; How to pass custom params with save button in UI Form

I want to pass a value/params via the save button of my ui adminform. i tried this: public function getButtonData() { $objectManager = \Magento\Framework\App\ObjectManager::getInstance()...
0
votes
3answers
1k views

Magento 2 : Save date and MultiSelect field value added in Ui_Component

I've been facing issue with saving date field value. I've added custom date field in sales_rule form , Field is added but can't able to save its value to DB. Previously i added text field and its ...
0
votes
1answer
29 views

How to use Magento2 Module Select2 Ui Component ? How active module in default.xml?

I succesfull installed Magento2 Module Select2 Ui Component from https://github.com/weprovide/magento2-module-select2-uicomponent I never had to use UI components. I want to active Select2 on ...
8
votes
2answers
1k views

Magento2 send ID insertListing to grid

How can i send a id from my form to a insert Listing grid? What i want to do, is in my form i load a grid with insert Listing. In this grid i want all results with id of the form. <...
0
votes
1answer
22 views

Use Default Value checkbox for custom category ui_component

I added a custom category attribute "Listing Image" and want to display the checkbox "Set Default Value", like "Thumbnail" and "Category Image". I already compared the ui_component, but couldn't find ...
0
votes
0answers
24 views

Create custom button in form ui-component Magento 2

i want custom button like image. I tryed this code in ui-component but it not show My code add button <button name="save" class="Anshu\Custom\Block\Adminhtml\Custom\Edit\SaveButton"/> My ...
0
votes
0answers
14 views

Magento 2 Show extension_attributes In Adminhtml Form

I have plugins for Source entity. Save plugin saves POST request extension attributes to my database table. Get & GetList loads it from my table and sets extension attributes. Now my struggle is ...
1
vote
1answer
605 views

Magento 2: Image not uploading in grid "Attention: File was not uploaded”

Created a custom module using Ui_Component,facing problem during image upload. Error (On alert) : Attention: File was not uploaded Ui_Component Form Code for Upload: <field name="icon"&...
0
votes
0answers
13 views

How to set multiselect options (label and value) from data provider not from form xml?

I want to set multi-select options from the data provider. I achieve this from passing it from the form XML but I want to set it directly from the data provider so I make it dynamic. If I set it in ...
0
votes
1answer
31 views

Magento2 Admin form for Image Upload

I have created a module in magento2 to upload image field. Saving the image hiding the image upload field option in backend public function execute() { /** @var \Magento\Backend\Model\...
40
votes
1answer
1k views

Magento 2 Adminhtml spreading forms across multiple tabs

I'm attempting to create a backend module, wherein on my edit page I use admin-2column-left layout. I want to have a form on each tab, but I do not understand how I can do this. Ideally, I would ...
3
votes
2answers
2k views

Magento 2: How to remove Tooltips from checkout page?

I tried to remove tooltip in several ways but anything worked. What's the xml code needed to do this? Here is one of my attempts <referenceBlock name="checkout.root"> <arguments&...
0
votes
1answer
20 views

Create Custom POST form without grid and model in magento 2

I need a custom post form in Magento back-end where I can select some fields and post form , on its post action I need to download a csv depending on form fields. This post form has dependable fields ...
0
votes
1answer
18 views

Hide order export button for all admin users except admin role

I want to hide or remove Export button from custom admin grid for all admin user except admin role. I have added below code to add export button on the grid in my ui component file. <exportButton ...
0
votes
1answer
37 views

Magento 2.3.1 UI Component Dynamic Rows, “Is Default” is not getting saved

I have created a dynamic form using Dynamic Rows in UI component form as shown in following screenshot: Following is my code samples for your reference: Namespace\ModuleName\view\adminhtml\...
0
votes
1answer
47 views

Get order_id in UI Component GRID in a new Sales View Tab

After a lot of tries, I couldn't manage to get an order_id to an Admin Grid Data provider. This is the code I have To add a new tab to order view view/adminhtml/layout/sales_order_view.xml <?...
-1
votes
1answer
25 views

UI listing Understanding

What does this line do? <item name="provider" xsi:type="string">order_listing.entity_listing_data_source1</item> <item name="deps" xsi:type="string">order_listing....
0
votes
1answer
35 views

Export button in custom Grid Magento 2

I have created a custom grid and trying to add export button for it. here is the code i used in my listing.xml file. <exportButton class="Magento\Ui\Component\ExportButton"> <...
1
vote
1answer
588 views

Magento 2: Change per page option for customer, Order & product Admin Grid

As a default, Magento Admin has Paging option as 20, 30, 50,100,200 But I need to change it for Product, Customer & Order Grid. I override the below files: vendor/magento/module-customer/view/...
2
votes
1answer
45 views

Complex UI component, using dynamic rows in admin, for a product attribute, is not saving when removing all rows

I created a complex product attribute entry in product admin, which uses dynamic rows. Same idea as this core one: UI works fine, but if you remove all rows, and save, the attribute does not update, ...
2
votes
1answer
47 views

How to make drop-down dependent on another drop-down value in admin ui component Magento 2

I want to update one drop-down option on the change of another drop-down using UI Component in Magento admin section. Like: have one drop-down with color option ex: Red, Pink, Black, etc. and another ...
0
votes
1answer
595 views

magento 2 custom component at checkout-step-shipping as shipping address child

I trying to add a custom template @ checkout between form customer login and shipping address inside div id="checkout-step-shipping" there are 2 forms : I've tried a few thing like 'before-form' etc....
14
votes
1answer
609 views

Magento 2.1 Ui Component form field Token input

I want to add tags in an input field , in a similar fashion as it is done in product form to add catageories - which is show in the image below. This much task I have achieved by adding field ...
0
votes
2answers
589 views

Magento 2:- How to upload image in custom module in admin panel

Change the mode, then not working image preview got an error 404 image-preview.html Developer mode working fine, but production mode not working form page <field name="recipes_image"> <...
1
vote
2answers
602 views

Problem with checkbox uicomponent, has value doesnt 'check'

I'm having a trouble with UIComponent. Being precise it's a checkbox. I'm sure it takes true as a value, but it doesn't appear as a checked one. So it's propably something wrong with my structure. ...
0
votes
2answers
24 views

Remove option from adminhtml UI component XML file. Delete Mass Action Option in Magento 2.3

I want to remove (or hide) the delete option from the product listing mass action in the Admin section. I cannot find the correct way to do this. This shows how to hack the core files which is not ...
0
votes
0answers
39 views

The configuration parameter “componentType” is a required for “” component

I am using Magento version. 2.2.6. When I navigate to add product and select specific attribute set "Test" I am getting error main.ERROR: The configuration parameter "componentType" is a ...
0
votes
1answer
29 views

Magento 2.3 product attribute and ui component

First, I created the UI component: Vendor/Module/view/adminhtml/ui_component/product_form.xml <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
1answer
108 views

Magento 2.x how to get ui-select selected value

I have place ui-select component and i want to get value in my custom component. How can i get selected value in custom component ? list.js file Here is my output.
1
vote
1answer
18 views

Filter in custom grid doesn't work normally. Magento2

When I filter twice, it works fine after the third time display only one product in each row. grid_record_grid_list.xml <?xml version="1.0" encoding="UTF-8"?> <!-- /** * Grid record ...
0
votes
0answers
25 views

Magento 2 - Create csv file for download in admin

I need to create a file in mangento 2 admin. I'm using a button to get in a controller route. My form ui component: <item name="buttons" xsi:type="array"> <item name="save" ...
0
votes
1answer
801 views

Adding label in ui-component form

In UI component form, input fields(text and text area) are working allright. But when i try to replace it with a label it gives an error. Code: <field name="name"> <argument name="...
2
votes
6answers
269 views

Date Range filter not working in custom Grid Magento 2

I have created the custom sales report using ui component. Grid is loading correctly. I have added the date range filter as like below. <column name="created_at" class="Magento\Ui\Component\...
0
votes
0answers
15 views

is it possible to add text input field with a save button in order grid?

Here is the ui_component to add a text columns, but i want to add a textfield with save button and when i press the save button, it will call ajax to save the value to custom table, is it possible to ...
2
votes
2answers
67 views

Magento2 - admin price input's are rounding value to 2 decimals

This is a Magento CE 2.3.2 project In this project we need to work with 4 decimals for prices. We have tried this https://github.com/lillik/magento2-price-decimal which works fine, all prices are ...
0
votes
1answer
57 views

Issue with edit Option in Action column admin grid

While Creating the admin grid the action column remains empty and the Edit option is not visible. How to resolve this issue. This is my Ui_Component file (action section) <actionsColumn name="...
2
votes
1answer
705 views

Payment method with custom form in Knockout js

I've created a custom payment method successfully in Magento2. When this custom payment method selected, I need a form to display a text field and submit button that will hit some AJAX Api's using in ...
0
votes
0answers
34 views

magento2 how to add product grid in ui form using ui component

Magento 2 : How to add a product grid in custom module using ui component? this refreance is not work me it is display look like layout grid
2
votes
1answer
22 views

same row content repeat in the whole page grid while navigate pagination

The problem : When you apply filter or pagination, then removing filter, same row content being repeat in the whole page grid. Here is the file where I am making mistakes? <?xml version="1.0" ...
0
votes
1answer
651 views

GridJsObject is not defined when add grid seriallize inside Grid UI

I have face with this error while creat grid seriallize render data inside Grid parent. It build in by Grid UI Component. I dont use old way like magento 1. When click on edit tab to trigger ajax ...
1
vote
1answer
38 views

Magento 2: Is it possible to add search column in ui component?

How can I add filter row in customer grid just like fixed PHP grid using UI component? I don't want to change any other things of UI component grid.
0
votes
0answers
15 views

Magento 2 collection filters for GRID are not working

I'm developing a module for Magento 2, but when trying to create a GRID, my filters are not working. I have some settings in other class and load it to the collection, using it inside the ...
2
votes
1answer
31 views

UIComponent Form - Spinner showing

In my Form UIComponent only a spinner is showing. I compared my implementation to several ways it is implemented. The grid is showing just fine, i only have the problem in the form. My layout file: &...
1
vote
1answer
66 views

Magento 2.3.0 Admin grid using UI component sticky CSS is not working

I have created a grid using UI component. in this grid, I display only grid I don't need to display button <buttons></buttons>. gird is working perfectly when I scroll down in grid page ...
6
votes
2answers
4k views

Disabling a UI component field upon condition in Magento 2

I have a UI component defining some fields. How do I disable the field upon a certain condition? In other words, use <item name="disabled" xsi:type="boolean">true</item> only when a ...
0
votes
1answer
673 views

How to add Upload Button for importing a csv file in the Custom Admin Grid Container in magento 2?

I wish to add import button in my custom admin grid using ui component, in magento 2. To add this import button which type of grid is better ? ui component grid or php grid. Note : We can fill ...