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

Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

0
votes
0answers
19 views

Remove label from custom field

I have magento 2.1.1 and I want to remove custom field label which is added by 3th party module. In that module appropriate xml file is placed by path Namespace_ModuleName/view/frontend/layout/...
0
votes
0answers
16 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
0answers
27 views

How to insert a UI component with a PHP data provider into the mini cart?

I'm trying to add a message in the minicart, but: The message depends on some external API calls I have to make at page load I can't figure out how to pass data to my UI component when it's inserted ...
0
votes
0answers
10 views

How can I add a UI component to a renderer of a payment method?

The task is simple: I want to add a select UI Component to a renderer for a payment method. Rather than copy/pasting HTML code into my own html-template, I want to use the built-in UI components ...
1
vote
0answers
19 views

How to set ui form field value with url-param when loading edit new page

I want to set a field value from url params in an input field when I load the admin edit new page. The value for the field "material_id" is a parameter in my url. This is my ui_component: <...
0
votes
1answer
26 views

how to display input with anchor link in admin grid using ui component in magento2?

I want to display product name with anchor link with specify that products' url in admin grid using ui component. I am using magento 2.2.5 version. <column name="productname"> <...
2
votes
2answers
24 views

How to hide a custom text attribute which displayed in product edit backend

I am using Magento 2.2.5 I need to hide a text attribute which I'm using to save serialized data of custom options of product. I think this can be done using adminhtml/ui_component/product_form.xml ...
0
votes
1answer
12 views

How to save serilized data in product's text backend_type custom attribute

I'm working in Magento 2.2.5. Basically, I have created a custom product attribute serilized_data with text as backend_type by using below file and want to save custom options of product in this ...
0
votes
0answers
10 views

Magento 2 Ui Component Date Field Saves current date

Magento 2 Ui component Date Fields save the current date not saved the inputed date please show my below code Form <field name="active_from_date" formElement="date"> <argument name=...
3
votes
1answer
79 views

How to add storeview switcher in custom admin grid which created using ui component in magento2.2.5?

How to add storeview code in admin grid which created using ui component.
0
votes
0answers
17 views

UiComponent replacement for Magento\Backend\Block\Widget\Grid\Serializer

I am creating a product grid using UiComponents. I have a product grid with checkboxes but now I want to submit that data. Magento is using Magento\Backend\Block\Widget\Grid\Serializer in it's ...
0
votes
0answers
19 views

Magento 2.2.3 Backend Admin Save.php Where Gird/Form Is a join table

How do To save data where grid and form has joint table? Ok. So I have 2 tables. employee +---------+------------------------+ | employee_id |employee_contact_id | +-------------+-------------------...
0
votes
2answers
34 views

How to change Text of qty TO quantity in minicart

Hello I want to override magento 2 Mini cart UIComponent's Text from qty to Quantity please tell How to do so Thanks,
1
vote
1answer
17 views

How to give option to select Fliter

how to Give options to <column name="status" class="Katalyst\Rfq\Ui\Component\Listing\Column\Status"> <argument name="data" xsi:type="array"> <item name="...
1
vote
2answers
32 views

How can we set store value in UI form Magento 2

I have a UI form in admin with store switcher. I need store_id in post data. As all can see store_id in url when I change store from store switcher but once I submit it I am not getting any store ...
0
votes
1answer
22 views

Magento 2: How to remove input option from grid filter

I want to remove some of filters from my grid in Magento 2 backend admin grid. Currently I have grid like displayed on image. But if I want to remove customer name how to do so. please explain thanks
1
vote
1answer
29 views

Magento 2.2.X How to create system.xml in admin panel and show & hide field based on parent (depends)

Step 1 : Create a new module (app/code/) Step 2 : Create system.xml (app/code/vendor/module_name/etc/adminhtml/system.xml) <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/...
0
votes
0answers
26 views

custom field value not showing in product edit page in magento 2

i have created a custom field in product edit inventory its value was saved in database every time but not showing in admin edit here is my code <fieldset name="stock_data"> &...
0
votes
1answer
26 views

Display frontend errors in popup modal

If there's a problem on the checkout, the error is displayed near the top, for 5 seconds and then it goes away. Most customers don't even see the message. Often, on smaller devices, the message isn'...
0
votes
0answers
18 views

listing filters giving javascript errors

I made a grid using ui_component and in my ui_component I have this part of the code that gives errors. If I comment this part the errors are gone but also the filter button. I have two other grid ...
0
votes
0answers
11 views

Magento 2 Custom JS Component detect/Observe changes from any form input in the DOM

I have ny Component as so: define(['uiComponent', 'jquery', 'ko', 'jquery/ui', 'mage/translate', 'Magento_Ui/js/modal/modal', '...
0
votes
0answers
10 views

Hide Column using php Class

I am having column created using UI component. Now i want this column to be hidden when certain condition is matched. <column name="qty" class="Vendor\Model\Ui\Component\Listing\Column\Temp"> ...
0
votes
0answers
10 views

Set inline edit disable for certain row

I have created Inline editing in list using ui component. The Inline editing works fine. Now i want to disable certain row base on some condition. How can i do it?
0
votes
0answers
13 views

Inline edited catch response in javascript

When making any changes in inline edit and save. The controller which is called on the save button is passing some content to the ajax call. I want need to get that data in javascript how can i do ...
0
votes
2answers
47 views

Set date format in admin grid

I have create a ui-component grid in magento2 .I need to set the default symbol (if the end date is empty in that field) like -- for End column in grid <column name="date" class="Magento\Ui\...
1
vote
0answers
19 views

Admin grid in magento2

How to set date format for ui component grid and how to set the default '--' symbol for date. Thanks.
0
votes
0answers
19 views

Magento 2: How to add a tab in admin form using layout blocks where form is created by uiComponent

I am using uiComponent to create admin form, I am facing a situation where I have to add a tab using layout blocks, so I have updated my layout with following code. <referenceContainer name="...
0
votes
0answers
14 views

Magento 2: Add product grid into ui form tab using insertListing

I am adding a product grid into a form tab using insertListing of uiComponent Tab code from uiCompnenet file <fieldset name="products"> <argument name="data" xsi:type="array"> ...
0
votes
0answers
13 views

How to prefill a UI component (ui-select) with custom data?

I'm trying to prefill a ui-select in the checkout address creation form (customer with no address) with the prefix (gender) chosen in account creation, In Magento, I think the field selects the first ...
0
votes
1answer
42 views

How can display uploaded DOC file in admin grid using ui component in magento2?

I want to display uploaded file in admin edit form using ui component in magento2 How Can i Get this? and here is fildset.php <?php namespace Vendor\Module\Ui\Component\Form; ...
1
vote
1answer
94 views

Custom Field in Product Edit form in magento2 admin

I am trying to add custom text field in product edit form in admin panel. I have used below code in etc/adminhtml/di.xml <virtualType name="Magento\Catalog\Ui\DataProvider\Product\Form\...
0
votes
1answer
52 views

Magento 2.2.6 How to add TAB structure in admin UI component form

I am trying to create a TAB in admin UI component form in my custom module, TAB is showing but page is loading continuously, please see attached screen-shoot. Here is my code. Namespace/...
0
votes
1answer
21 views

Extend customer grid using customer_listing.xml issue

I'm using magento v2.2.5 and i tried to add new column in magento 2 grid by extending customer_listing.xml like this: <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1answer
52 views

Magento 2 -Admin Grid Select filter with comma separated values

I have created a custom admin grid in my module. It contains a customer group column and it has a select filter. The column values are comma separated groupIds. When I filter the grid based on ...
2
votes
1answer
24 views

How to create admin custom from using UI in Magento 2 using layout?

I want to create admin custom from using UI component But I am not able to understand to structure, can someone please explain.
0
votes
0answers
42 views

Magento 2 extending product form hide fieldset

I have extended product form functionality by using product_form.xml in the added fieldset. now I have to hide that fieldset on a particular condition, like on module disable. I know about the ...
0
votes
0answers
16 views

UI Component - Disable Fieldset Collection

I want to figure out a way to take a <fieldset> collection (ex. customer's addresses), from a form ui component, and disable it due to a certain value of a field like a select drop down. The ...
0
votes
0answers
38 views

Disable inline edit in ui listing

I have created a custom module where i add data. This data is displayed on the grid. On the grid i have enable inline editing. Now i want to disable this inline editing only when certain condition is ...
4
votes
2answers
96 views

Magento 2 : How to call text/x-magento-init on Ajax success

I am in need to trigger some script with "text/x-magento-init" on ajax call but I am unable to do so. trigger('contentUpdated') contentUpdated is also not working in my case. I am using ...
0
votes
0answers
12 views

Magento 2: grid data source definition in compact form

I have my own grid data provider \Vendor\Module\Ui\DataProvider\Grid\Base class Base extends \Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider { public function ...
0
votes
0answers
28 views

Magento 2: admin base URL for UI Components

There is BASE_URL variable on the adminhtml pages (see ./vendor/magento/module-backend/view/adminhtml/templates/page/js/require_js.phtml): <html> <head> <script> ...
2
votes
1answer
35 views

Magento 2: form & grid components on one page

I want to create smth like this in adminhtml: This page contains form to type customer ID & grid to display downline data for the customer. This is my description of the form component: ./...
0
votes
0answers
39 views

Magento 2: Filter Custom rendered column in ui component

This is my ui component grid bom_rule.xml, I want to apply filters using listing_filters <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
4
votes
0answers
50 views

How to Add customized error message in magento 2 admin form

<item name="config" xsi:type="array"> <item name="label" xsi:type="string" translate="true">My Custom Filed</item> <item name="dataType" xsi:type="string">text</item&...
4
votes
1answer
49 views

How to add form element CANVAS using ui component magento admin form

I want to add Canvas field element using UI component admin form. My requirement is i have a ui component form i want to add Canvas field. check below screen shoot. As per above screen-shoot i ...
2
votes
1answer
61 views

Magento 2: available options for grid column config (UI Component)

I add custom grid to adminhtml in Magento 2. This is definition of my UI Component ./view/adminhtml/ui_component/my_own_grid.xml ``` ... <column name="id"> <...
0
votes
2answers
29 views

Submit Button in UIComponent

I am new to magento and trying to create a custom form in adminhtml using UIComponent. I can display the form but I am a bit confused on how to put up a submit button in the form. I have gone through ...
1
vote
1answer
31 views

Case sensitive search magento 2 Grid UI component

I created Magento 2 Grid with UI component and it works with all of the things (filters, columns, sorting ) but I want to search with Case sensitive(as of now it works with searching but by default is ...
1
vote
0answers
34 views

Update/Refresh Magento UI grid column data only with Javascript (No Ajax)

We have created Mass Action status updates in the grid. Updating the status using the mass action, an ajax call will be initiated and updated the data in the server. Another ajax call will refresh ...
0
votes
1answer
46 views

Magento 2 UI component category form disable attribute based on system configuration toggle?

I am trying to disable or enable category attribute based on system config or helper value using UI component can I make this directly from here ? system config path :- marketplacesetting/...