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
7 views

Magento2 admin grid: SQL error when sorting by specific field

Database table columns are displayed in custom grid in adminhtml. One of the field has name 'precision' and this causes SQL error when I sort the grid by this field (as this is mysql reserved word and ...
0
votes
2answers
16 views

magento 2 unhide any messages

As per default Magento 2 behavior, any message like success, error or notice, etc hide after 5 seconds. I don't want to hide any message so that user can read message. See below image that display ...
2
votes
2answers
24 views

Magento 2: How to additonalClasses for Tab in form ui component?

i try this code but it not working with tab in form ui component: <item name="additionalClasses" xsi:type="array"> <item name="my-custom-class" xsi:type="boolean">true</item> &...
3
votes
0answers
34 views

How to load Ui-component form data using another column instead of primary field Magento 2?

I have created a form using Ui-component it is working fine while adding new form & edit form. But I would like to do customization as per my requirement. Default Magento Ui form data is display ...
1
vote
1answer
18 views

Magento 2: UI Component - Disable Fieldset with condition?

I try it but not working. everyone can help me plz!
0
votes
0answers
7 views

How to increase the width of Tier Price box in advanced pricing

I overwritten Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AdvancedPricing:getTierPriceStructure() Custom fields are added to the advanced pricing section but the width of the custom fields ...
0
votes
1answer
13 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
39 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. XML for controller added buttons to the ...
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 ...
1
vote
1answer
20 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
9 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 ...
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 ...
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]...
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 ...
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 ...
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="...
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
2answers
47 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
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
32 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 ...
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=...
3
votes
1answer
147 views

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 ...
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 ...
1
vote
1answer
26 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
23 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 ...
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:...
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. ...
0
votes
0answers
26 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
38 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 ...
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
1answer
32 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 ...
1
vote
3answers
75 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 ...
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 ...
2
votes
3answers
74 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"> &...
1
vote
0answers
40 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 ...
0
votes
0answers
26 views

Show Custom Popup when clicking massaction in ui-component grid

I am using custom uicomponent grid in which I have mass actions, now on click of that mass action, I want to show custom popup instead of showing confirm box popup. I have looked at uicomponent grid ...
0
votes
1answer
27 views

How to extend admin js in magento 2 by mixins

I want to overide Magento_Sales/adminhtml/web/order/create/scripts.js I wrote require-config.js for this var config = { config: { mixins: { 'Magento_Sales/adminhtml/web/...
0
votes
1answer
28 views

How to add draggable-handle for configure product variants in Magento 2?

How to add draggable-handle for configure product's variants in Magento 2 ? I can see there is a similar behavior in the related products when editing a product. Like related products Row drag ...
0
votes
0answers
28 views

Magento 2 double admin grid when scroll page

I write custom module. When scroll admin grid i get upon the following bug: What is it? How can i resolve it?
1
vote
0answers
37 views

How to use this attributes in my custom form ui component

How to use this attributes in my custom form ui component
1
vote
3answers
86 views

How to make a Field only accept Numbers in Magento 2

I am new to Magento 2. I am trying to make a field that can only accept numbers for Sort Order field on UI Component Form I need help
1
vote
1answer
29 views

Drop Down Multi-select category Ui Component

I am using this code to create a multi-select category option in a form. It saves the data in the table correctly but when I try to edit it, it shows the selected category name in the field but doesn'...
2
votes
1answer
73 views

How to set input type 'Select' in ui_component grid in magento 2.1.16

I just Create ui_component Vender/Module/view/adminhtml/ui_component and in this I user <column name="check_status" component="Magento_Ui/js/grid/columns/select"> <settings> ...
0
votes
1answer
52 views

htmlContent not working in Magento 2.3.1 from Magento 2.3.0

My custom module stopped loading ui_component based admin form of Magento 2.3.1, because of <htmlContent name="gallery"> , however it was working fine in Magento 2.3.0. No logs or reports found ...
2
votes
0answers
21 views

why buttons are not showing in frontend ui form in magento2?

Why buttons are not showing in frontend UI Form in Magento2 ? Can anyone help in this. Code added in employee_form.xml file: <argument name="data" xsi:type="array"> <item name="...