Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

0
votes
0answers
3 views

Hide custom UI element in extended XML file in custom theme

This is original file in code dir of a third part module: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="...
1
vote
0answers
22 views

Load a ui component with ajax within admin tab

Using the below method to attempt to load a uicomponent over ajax into a tab within custom admin page shows a loading spinner which never completely loads. Controller <?php namespace vendor\...
1
vote
0answers
25 views

Magento 2 - Hide component instead of componentDisabled

I have a component that I wanted to move. I managed to move the component exackly where I want it to be, however, it now appears in two places. When I remove the component using the <item name="...
0
votes
1answer
11 views

“Field is required” error once I make selection on custom ui-select

I'm currently making a custom ui-component for the adminhtml form which extends the default ui-select element. But the issue is that when I make a selection on this new ui-select all fields have their ...
6
votes
1answer
2k views

Magento 2 Field dependency in ui form

I have created a ui component form. I want to display some fields based on status value. Display other fields only if status is 1. How Can I achieve it? Here is my code <field name="status"> ...
1
vote
1answer
19 views

How to add a select field to an adminhtml ui_component xml

The goal is to get a drop down list of stores the site has. The current implementation is attempting to add the following into a ui_component xml file around line 100. <field name="store_id"> ...
0
votes
0answers
8 views

Magento 2 ui form component switcherConfig value expression

Doe anyone know at all if possible to have expression to evaluate a value in rules E.G : <switcherConfig> <rules> <rule name="0"> <value>EXPRESSION HERE</...
0
votes
0answers
16 views

How to manage Default Store View in Ui component form

I am creating dynamic options in Ui form. As there is a field called "Default Store View", can anyone help me how to set "Default Store View" label dynamic? Please see following screenshot of ...
2
votes
3answers
71 views

How to hide fields with toggle checkbox in ui_component Magento 2

I have a toggle checkbox at product edit form: Created as: <field name="open_amount" formElement="checkbox"> <argument name="data" xsi:type="array"> &...
0
votes
0answers
19 views

How do I render an external template in ui-component?

I'm making a UI-component table that displays different types of fields which allow the user to manipulate the data of a given row easily. I got to the point where I need to get, render and display ...
1
vote
0answers
37 views

Magento2.3 : How do I programmatically submit a form generated via a UIComponent?

I created a UI Component form, but I am unable to find the element in the source. I would like to click a button and then inspect a field in the form and dependent on what value is selected submit ...
2
votes
1answer
76 views

Magento 2 UI Form without collection

can i build a Magento 2 Ui Form without use Collection at DataProvider Class? If i don't use a valid collection not seems to work... I just want to use the form to post data to external source. I don'...
2
votes
1answer
537 views

Magento 2 ui component form without database table

I want to add a UI component form in the admin panel. It is just sending email, no need of database storage. I want to redirect to my form when I click my menu "Send Coupon". I have tried the below ...
0
votes
0answers
15 views

Grid sezielize ui-form

I have refer links to make tabs have grid product sezielize. However, I can't filter that product and post data when saving. It show error on console: TypeError: require is not a function[Learn More]...
2
votes
1answer
126 views
+50

Add default filter to sales_order_grid for order status

I want to filter the order grid in admin to see only the orders in status "processing" in the grid by default. This grid is different from the others, I tried solutions from here but no success add ...
0
votes
1answer
14 views

Nested Fieldsets breaks forms inputs within UI Components

I am building a form within admin of magento 2 using ui components and want to organise the fields within fieldsets like below: <fieldset name="ticket"> <argument name="data" xsi:type="...
0
votes
0answers
18 views

How to show new shipping address modal form below list of shipping addresses?

I am completely new to magento ui-components and I don't know how to use them to make frontend changes. I am adding screenshot below to show what I am trying to achieve. Recently I have a task in ...
6
votes
5answers
5k views

Magento 2.1 Ui Component : Hide and show field base on dropdown field

I have a dropdown which shows day's status ;either close or open selectable form a dropdown. If the status is close , I want to collapse and hide the open and close timings within that particular ...
1
vote
2answers
45 views

Magento 2 Edit Catalog Rule conditions in UI Form

I have created a UI form with field catalog rule conditions. The form loads display the conditions section and it is saved in the table. But in edit case the conditions are not displayed. Reference: ...
1
vote
0answers
16 views

ui component specify backend model

stumbled upon a problem, have following in my setup, but occasionally it conflicts with fileuploader so when i use ui component to add field i have no such problem. $eavSetup->addAttribute( ...
1
vote
1answer
19 views

Magento 2 UI form Multiple image upload

I have implemented multiple image upload using the following code. <field name="press_images"> <argument name="data" xsi:type="array"> <item name="config" xsi:...
0
votes
0answers
30 views

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

I have created a custom form using Ui_Component,facing problem during image upload. I am using 2 column left layout ie, tab structure. https://prnt.sc/nouwe5 When I try to upload the image it shows ...
3
votes
1answer
32 views

Error while running bin/magento setup:di:compile

After running bin/magento setup:di:compile I get the following error. Errors during compilation: Vendor\Module\Ui\Component\DataProvider\OutfitProvider Incompatible argument type: Required ...
3
votes
2answers
47 views

Magento 2.3 - Add product name column in custom ui grid with product name filter

I have added product name column in my custom ui grid. In which data displayed properly but not filtered grid by product name. Note : I set product name with comma separated in ui grid column. Here ...
2
votes
0answers
16 views

Multiple Image upload restrict up to 10 images

How to add multiple image upload in magento 2 and restrict to only 10 <field name="images"> <argument name="data" xsi:type="array"> <item name="config" xsi:type=...
7
votes
1answer
530 views

Reserved keyword in controller action - Magento 2

I am working on an admin grid concept. I found one github source code and analyzed that one. While I found the URL is different from the declaration in the UI component layout. <item name="url" ...
1
vote
1answer
65 views

UI component save button controller magento 2

I have UI admin form xml file. I've got SaveButton.php block file, but I need to save form in db. As far as I know I need controller. How this controller would look like and in which directory it ...
1
vote
1answer
25 views

Magento 2 UI component form default value not set in radioset

UI component xml <field name="notification_deal_type"> <argument name="data" xsi:type="array"> <item name="options" xsi:type="object">Embitel\...
2
votes
1answer
23 views

Add UI component Field in Block form

I want to add an image field of UI component on traditional block form. I want to replace only this field with UI component. The reset field should be in Block class form. $fieldset->addField( ...
2
votes
0answers
21 views

magento 2 file uploader frontend append files

From what i know magento 2 already uses file uploader https://searchcode.com/codesearch/view/45780717/ , how can i use it to create something like they have on this page under tab "Basic Plus UI": ...
4
votes
1answer
31 views

Add product grid in custom module using ui component

I have followed this solution Magento 2 : How to add a product grid in custom module using ui component? but i am getting this What i am doing wrong can any one help me on this. Edit Controller ...
1
vote
1answer
1k views

How to add filter on a renderer column in Magento 2?

I have created a custom module with grid. See below image: Column product sku is render using product_id <column name="product_id" class="Lime\SN\Ui\Component\Listing\Column\ProductSku"> ...
2
votes
1answer
26 views

Show Data in admin side. Magento2

I'm showing data in admin side like and its code is <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
2
votes
1answer
81 views

How to Save values into an existing table from UI-Component Form

My module contains a form which itself contains Store Information that is also in Stores > Configuration > General > Store Information I have just followed this tutorial to create this form but it ...
8
votes
0answers
401 views

Magento 2 How to add Tab Component in admin module

How can I add UI Tab Component in custom admin module with the help of below user guide ? http://devdocs.magento.com/guides/v2.1/ui_comp_guide/components/ui-tab.html There are not enough information ...
1
vote
0answers
13 views

Open Model containing Ui Listing

I have Two tables table1 has id and other fields and table2 which has id, foreign key of table1 and other fields. I have create a ui listing for table1 and added a button to go in table2 ui listing. ...
1
vote
3answers
71 views

I want to remove duplicate entry from admin grid in Magento 2

I have created a custom admin grid using UI Component with created_date filed. the requirement is to show single data per created_date. currently, the grid shows multiple data in created_date. EX: I ...
0
votes
0answers
25 views

Add custom PHP class in form modifier column

I've a scenario where I need to process a column and then display it on the grid afterwards. For instance, we can achieve this using UI component like this. <column name="order_increment_id" ...
1
vote
1answer
38 views

Need help with ui component and change sorting order of columns in magento 2

Have listing but need to change view of one column: <column name="status"> <settings> <filter>text</filter> <label translate="true">...
1
vote
0answers
37 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 ...
8
votes
0answers
715 views

Magento 2 : Not getting the product grid in a custom form using UI component

I want to show product grid in admin form using UI component, for that, I have added the following code in product_form.xml <fieldset name="assign_products"> <argument name="data" ...
1
vote
1answer
1k views

Multiple product selector in edit form

I'm trying to build a CRUD module for Magento 2. In this module, one of my entities has a "many to many" relation with the products. For this, I need to add a section in my add/edit form where I can ...
0
votes
1answer
21 views

Magento 2 : Only dependency assignment operations are allowed in constructor. No other operations are allowed

Magento 2 Coding standard provide me Warning My Code is here namespace Namespace\Modulename\Model; use Magento\Framework\App\Request\DataPersistorInterface; use Magento\Ui\DataProvider\...
0
votes
4answers
2k views

Magento 2.1 UI component form addFieldToFilter() on null

I am trying to make a UI component form for creating products in Magento 2.1 module. However, I stuck with the problem that it throws this error: Fatal error: Method Magento\Ui\TemplateEngine\...
0
votes
1answer
30 views

M2 | Can we create one field by dataprovider and one field by uicmponent in single group at Product Creation Page?

I have created toggle button by uicomponent in one group and some other fields by dataprovider way in another group. Can I get toggle button into group created by dataprovider way. As it is not ...
5
votes
2answers
3k views

How To Add Magento2 Dynamic Rows DeleteAction?

I am Generating Form using <DynamicRows> All Fields Are Properly generating. Now I want to Add DELETE Action in that Dynamically Generated Rows. Like this My Ui Component Structure is Which ...
2
votes
0answers
22 views

How to remove multiple results from admin grid in ui-component Magento 2

How to Remove the multiple results in the grid from the same date in admin grid UI component Magento 2 - I have got multiple results for 1 day. - I need a single result for a single date. <column ...
6
votes
2answers
1k views

Data population in UI form

Im trying to build a custom admin form (using ui components) for a custom entity. We can assume the entity is very simple(e.g. id,name) One thing that i have hard time with, is populating the form ...
0
votes
1answer
273 views

Multi Select UI Field in user form magento2

I am showing multiselect dropdown in user form in admin panel(System->All user->Add User) I have created a plugin for creating field in that form. Here is the code, I am using: public function ...
1
vote
0answers
39 views

How to call functions in ui_component Magento 2

I have created two dynamic rows one by DataProvider way and one by ui_component.In Ven\Mod\Ui\DataProvider\Product\Form\Modifier\MyField getting currency symbol with this function. In dynamic rows ...