Skip to main content

Questions tagged [ui]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

Magento 2 : Need HH:MM:SS selector in custom module in UI without AM and PM

I have a requirement to show time picker to input hh:mm:ss for a user in a custom UI module in Magento 2 . It needs to allow to enter hours from 1 to 6, minutes from 0-59, same for seconds .. I don’t ...
user3653787's user avatar
0 votes
0 answers
25 views

Why does my code affect certain parts of the site but not the Mini cart?

Im completely new to Magento and im working on a school project and added two buttons on my product pages with some code. These buttons work well they let people put products in the mini-cart without ...
HappyCoder's user avatar
0 votes
0 answers
24 views

Magento2 Validate Ui form on custom button click

How can I validate form on click of push button same like save button
Hiren's user avatar
  • 1,091
0 votes
0 answers
39 views

How to create a ui_component form which should be come as slide while click on admin grid edit action

How to create a ui_component form which should be come as slider when we click on edit action then that form which I have created should be come as slide and save and back button also should be ...
Mark's user avatar
  • 63
0 votes
1 answer
108 views

How do I change the position of social login button on Martfury Theme

I'm using Martfury theme. Now I want to change the social login button position to below the create an account button. How do I do it?
Naimur Rahman's user avatar
0 votes
1 answer
37 views

How to implement Add products option in ui form Magento2

I have a product block like(refer image) and I loaded the productgrid using( https://www.rohanhapani.com/magento-2-how-to-add-product-grid-in-ui-form-using-uicomponent/)and successfully saved.After ...
Alshihab's user avatar
  • 161
1 vote
2 answers
622 views

How filter dropdown options based on another dropdown selection in Magento2 UI grid filters

I am struck in finding the solution for the below requirements Assume drop down#1 and drop down#2 selection box in the Magento2 admin UI grid filters. If we select option in one drop down#1 then we ...
raheem.unr's user avatar
0 votes
1 answer
76 views

How to add category dynamic field with textbox in admin form magento 2

Add Field in ui Form category selected in check box then display textbox for that category
srd viha's user avatar
0 votes
0 answers
221 views

Magento2 UI component focusout event not working

I am using ui component for one the form in admin and for one element i am using component js class to trigger some operations on that element, it only gives onUpdate function, is there anything we ...
bhargav shastri's user avatar
0 votes
1 answer
160 views

Admin form not pulling through form values when turning collapsible to tabbed form using ui form xml

I'm working on an admin ui form https://github.com/DominicWatts/Announce/blob/hotfix/tabs/view/adminhtml/ui_component/xigen_announce_group_form.xml I've added tabs In order to get the tabs working ...
Dominic Pixie's user avatar
0 votes
0 answers
627 views

How to display collection data in grid ui admin?

I create a controller to get data from the database as code below. The query in controller: $orderCollection = $this->_salesOrderCollectionFactory->create() ->addFieldToFilter( ...
Thien Hoang's user avatar
0 votes
2 answers
143 views

Magento 2 - When to use the parameter `@_prefix: 1` when calling mixin .lib-css()?

I wonder when I need to use the parameter @_prefix: 1 with .lib-css() I always use it with the css transform property .lib-css(transform, scale(0.65), @_prefix: 1); so that it generates this code: ...
Black's user avatar
  • 3,380
1 vote
1 answer
1k views

Magento 2: How to show the number of cart items in a custom phtml using KnockoutJS?

I'm trying to get total number of cart items in my custom_header.phmtl. But I'm unbale to get the result. I've tried using KnockoutJS. I added minicart UI component to my block, which allowed me to ...
Chirag Patel's user avatar
3 votes
0 answers
236 views

Magento 2 Is there a way to use product chooser in ui component form (NOT BLOCK)?

Im building module using ui components and need product chooser in my form. But can't find any useful info related to product chooser implementation using ui component. Is it possible to do this ...
user83014's user avatar
2 votes
0 answers
638 views

Magento 2.3.X - custom module UI components not loading

The UI XML file: app/code/NewShop/NewModule/view/frontend/layout/checkout_cart_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
Kibret's user avatar
  • 43
0 votes
1 answer
776 views

Override Magento Ui dataprovider

Anyone can suggest how to override below class Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav.php file
Goutam's user avatar
  • 101
2 votes
0 answers
34 views

Dynamically hide mutiselect for different actions

In Magento 2, I have 2 actions in my controller: newAction() and edit(). Both actions will use for a same form with few inputs. Among them is multiselect for store selection. I want to show it when I ...
Waystar's user avatar
  • 21
2 votes
2 answers
339 views

How to hide upload file field using jquery in magento2

I want to hide upload file filed using jquery in magento2 <field name="type"> <argument name="data" xsi:type="array"> <item name="options" xsi:...
Rutvee Sojitra's user avatar
1 vote
0 answers
243 views

Error when getting value form registry in magento2

I have follow link to get registry It's working fine when i getting value of normal input filed but it's throwing error when i am apply for image or wysiwyg component: form.xml <...
Rutvee Sojitra's user avatar
1 vote
1 answer
503 views

Boolean to String

I have made admin grid as UI component. I've got boolean column called status in db. This is where I show column value. <column name="status"> <settings> <filter&...
Rufus's user avatar
  • 621
3 votes
2 answers
2k views

Magento 2 ui component form add extra input in the same admin field control

How to add more input like checkboxes in the same area like the use default? like so: More precisely I thinks is a field service see shoot:
Juliano Vargas's user avatar
1 vote
1 answer
492 views

Add a new section in product edit page

I want to add a new section in product edit form with form element(file uploader) for that I created the product_form.xml and added the required fields.to get the input data, I use a ...
Kevin's user avatar
  • 79
1 vote
1 answer
550 views

Magento 2 : How to put custom text in form validation?

I have this message when i validate post code How to change it? I tried overriding postcode-validator.js define([ 'jquery', 'mageUtils', 'Magento_Ui/js/model/messageList'], function ($, utils, ...
Varikap's user avatar
  • 51
1 vote
1 answer
638 views

Magento 2 Debug Ui Grid

i create my custom UI Grid, then i have next problem, my grid is infinity load. Can someone recomend me, how can i debug my problem?
Petro Chaikivskyi's user avatar
0 votes
3 answers
2k views

How to hide Select from gallery button in Ui Component Form Magento 2

I have create A Image upload field Using UI Component. Now I want to Hide or Delete Button. Any help would be appreciated.
sudo55's user avatar
  • 1,004
2 votes
2 answers
2k views

Change the width of Field Ui Component Magento 2

How do i change Field With in UI Component Form in Admin Side. I used id to change the width but didn't worked. <field name="percentage"> <argument name="data" xsi:type="array"> ...
sudo55's user avatar
  • 1,004
0 votes
2 answers
1k views

How to hide particular admin form field(UI Component) based on the value of select field?

I used the following script to hide/show 'schedule_date' based on select field option change, and it is working fine. But I want to hide/display the fields without changing the select field options. ...
Prema Karthik's user avatar
0 votes
1 answer
1k views

Magento 2 ui multi-select preselected values

I am new at Magento 2, UI multi-select component render store views group by websites and stores, but when I am editing I need saved values of store views of certain record to be preselected in that ...
Newb's user avatar
  • 95
0 votes
1 answer
1k views

Magento 2.3 UI MULTISELECT

I am having problems with dynamic display store views which are grouped by their website and having selected values if I am editing existing data. What I achieved, displaying store views, and saving ...
Newb's user avatar
  • 95
0 votes
0 answers
858 views

How to add radio button in custom option in magento2

I want to add radio button in custom option . I refer this link Magento2 adding radio buttons in customoptions. But not working. If anything i want to chage it. Thanks.
Mahi M's user avatar
  • 2,540
0 votes
1 answer
515 views

custom less not working in magento 2 production mode

I've a less file inside app/design/frontend//web/css/source/_test.less and included in default.xml like <head> <css src="css/source/_test.css" /> </head> It's working perfectly ...
Amjad M's user avatar
  • 31
2 votes
1 answer
1k views

How can i filter in sales order grid magento 2?

While i am using same code for filter it's working but i have break other grid like customer,invoice,cms page and get error "Not registered handle cms_page_listing_data_source" While i have moved di....
Sagar Dobariya's user avatar
3 votes
1 answer
2k views

load product grid ui component

I want to load the product grid via an ui_component. <fieldset name="fieldset_name"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> ...
ThatOneGuyThatDontGetIt's user avatar
1 vote
0 answers
384 views

Magento 2: Custom input field values not saved in product form

I have to add a more complex input to the product form. For this, I have added the following UI configuration <fieldset name="fieldset_name"> <argument name="data" xsi:type="array"> ...
Dorni's user avatar
  • 73
0 votes
2 answers
850 views

Magento 2: Remove ReferenceBlock - Order Information

How to find referenceBlock name? Been searching for internet about it but nothing better works aside from some referenceblock that already ask. Got this problem, I need to move or remove this ...
Adrian Leus's user avatar
1 vote
1 answer
878 views

Magento2 override module-ui base admin template file?

i want to override following file in my custom module so that when magento admin sales grid renders this template from vendor it would take file from my module: vendor\magento\module-ui\view\base\web\...
bhargav shastri's user avatar
0 votes
2 answers
1k views

Magento 2.2 some JS files are not loading in production mode

In Magento 2.2.2 when setting website into production mode the following files are not loading, due to which my store switcher and other ui functions are not working in production mode: http://...
Wasiq Shahrukh's user avatar
4 votes
4 answers
3k views

How to create menu section title in adminhtml?

I want to add section (menu items group) into adminhtml menu in Magento 2. Something like this: I've added file ./etc/adminhtml/menu.xml with: <?xml version="1.0"?> <config xmlns:xsi="http:/...
Alex Gusev's user avatar
  • 2,019
0 votes
1 answer
2k views

Magento2: How to correctly render a json in grid field

I created a field in my order grid table, I have an observer set up that will fill the field with a JSON string of the ordered items. I want to have this field rendered to HTML so the ordered items ...
Coen Ponsen's user avatar
4 votes
1 answer
2k views

How can i remove Vat Number field in customer address form admin?

I want to remove Vat Number field in customer address form in admin.Anyone have any idea?
Sagar Dobariya's user avatar
1 vote
3 answers
4k views

Magento 2. Grid Action column link open in new window

I've successfully created an admin grid using ui components. I've successfully added an actions column with a link. The link works but I want it to open in a new window or tab. excerpt from ...
vitoriodachef's user avatar
2 votes
1 answer
613 views

How do I edit KO template in magento 2

I wish to edit /var/www/html/xxx/vendor/magento/module-checkout/view/frontend/web/template/payment-methods/list.html Exactly in below line, Because which is the responsible file to render the ...
Jaisa's user avatar
  • 2,626
0 votes
2 answers
62 views

How can I editable false description or sort description magento 2?

I have try but it is not working for me any have idea about this? <fieldset name="content"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> ...
Sagar Dobariya's user avatar
1 vote
1 answer
931 views

How can i remove product tab in admin magento 2?

I want to remove configuration, design, search engine optimization tab. any have idea how it done?
Sagar Dobariya's user avatar
6 votes
1 answer
8k views

Magento 2 Grid custom column value in Ui Listing

I followed this link How to display Yes/No values in admin grid (Magento2)? to get the dynamic custom column value where the column field in grid was app/code/Vendor/Theme/view/adminhtml/...
Verdu's user avatar
  • 1,730
2 votes
1 answer
1k views

How to add 2 input fields in one row using UI component

I want to add 2 inputs field in one row using the UI component in my custom module. The field is about telephone so I want to have 2 textboxes, 1 asking for country code and another asking for a ...
Yash Shah's user avatar
  • 2,503
0 votes
0 answers
260 views

How to change product enable checkbox to keep disabled by default Magento 2

How do you change the Magento 2 product Enable button to Disabled by default? My code var inputs = document.getElementsByTagName('input'); for(var i = 0; i<inputs.length; i++){ if(typeof ...
Ramesh KR's user avatar
  • 876
3 votes
1 answer
1k views

component in magento2?

How to pass dynamic value for <item name="componentDisabled" xsi:type="boolean">false</item> this component. <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://...
Mahi M's user avatar
  • 2,540
2 votes
0 answers
552 views

Magento 2 disable file preview in admin form

I created grid form using UI component. In my UI form I use file uploader. How can I disable image preview? Because I upload pdf file and preview are showing blank square. My form field <field ...
Nikolai Silin's user avatar
6 votes
1 answer
3k views

Magento 2 Extend Ui DataProvider file

I have created a module. All working fine. Just want to extend one file but can't success. I added extra field at admin tier price using this file. \Magento\Catalog\Ui\DataProvider\Product\Form\...
JACK's user avatar
  • 387