Questions tagged [ui-form]

Denotes questions regarding Magento Ui Components form

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

How to get Customer Grid in UI Component popup model?

I am developing a custom module where I need to relate the customers like a parent, child which is like adding a related products on the product page. Can anyone help to achieve this?
0
votes
0answers
25 views

UI form Magento-2 : Add image preview in image-uploader on ajax-request

I want to add image preview in image-uploader on ajax-request on UI form Magento-2. I have one drop-down and one image-uploader on change of drop-down pass ajax-request and get data from controller ...
1
vote
1answer
22 views

How to define data to show imageUploader UI element?

Today I trying to create new attribute in product_form.xml on M2 admin. This is code I add my field: <field name="xx" formElement="imageUploader"> <settings> <label ...
0
votes
1answer
25 views

input element not getting disabled when I change it's property “disabled”

I have created a custom module to add some fields to the order checkout however I have some troubles enabling them conditionally. I have a radio button and 4 elements When the radio is clicked, ...
0
votes
0answers
12 views

Pass params in to UI image uploader

I am building a image uploader in one of the custom form. Everything is working, except I cannot pass the entity_id in the uploader url. I need this url: /my-url/uploadImage/entity_id/1/...
0
votes
0answers
9 views

Magento 2 Shipping Form Fields Column Layout

Default Porto Theme Magento Layout for Shipping Page We need to make it look like this: Make fields 3 column instead of 1 column. Bring Phone filed above and next to the Email field. I have tried ...
0
votes
0answers
20 views

Magento 2 form xml visibility fieldset conditional

I have added a new fieldset tab on the Cart Price Rule. But I would like to hide on a conditional, I've tried: ...<fieldset name="custom_rule" sortOrder="100"> <settings> ...
0
votes
1answer
23 views

Magento 2 Custom UI grid form.php validate upload file extension

I want to check the upload file extension in form.php, I have three upload file options I want to check the upload file is pdf or not. Thanks in advance. my form.php file is namespace Vendor\...
0
votes
1answer
25 views

Custom ui_component form fieldset not submitting

I created a custom fieldset for a ui_component form to add custom input structures. The problem is, that the inputs are not included in the POST values. The input you see is just a simple element in ...
0
votes
0answers
7 views

Magento 2 UI For element is not getting populated

I've created a admin form using ui form component. But, we I land to edit page, the form input element is not getting populated from db table data which is already saved. I've spent days now but can't ...
1
vote
1answer
38 views

How to show/hide UiComponent form field on based of new/edit mode

I want to show shortcode field once record inserted. else on new record is should be hidden. Ui Component form field xml: <field name="shortcode"> <argument name="data" ...
0
votes
0answers
78 views

How to add options to multiselect after ajax?

In Magento 2.3, I have extended the UISelect components script. I am using the search field to get the options based on the input. I get the response, but how can I attach it to the select dropdown ...
0
votes
0answers
33 views

How can pass default value for a textarea on UI Form component Magento 2?

Is there a way to supply a dynamic default value for textarea field on a UI form? I have a situation where the default value may change. In this case I was thinking the value could be stored in a ...
1
vote
1answer
72 views

Magento 2: Ui form not loading after adding select field

I have a ui-form for adding new record to my table. But the form is not loading when I add a new select field into it. Here is the field component in the form.xml file, <field name="...
0
votes
1answer
147 views

Magento2: Showing custom table data as options for select dropdown in UI component grid form

I have a UI grid form in the admin, that allows the admin to edit the data in a grid. The grid is listing data from a custom table multivendor_pickupinstore with structure below: id seller_id ...
2
votes
1answer
102 views

Magento 2 product_form.xml ovevride existing field

<fieldset name="product-details"> <field name="sku"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <...
0
votes
1answer
106 views

magento 2 ui component form default value

I have a created a custom magento 2 ui component form on Admin side. I have given create a button in customer detail page. Now what i expect is when i click on the button, it will go to my custom form ...
2
votes
3answers
371 views

Magento 2 : Add Filter in select ui form field

In ui form, I set 2 dropdown field. Now, I want to do something like that in second dropdown value set based on first dropdown selected value. For ex : In Customer module, There are country region ...
3
votes
1answer
153 views

Magento 2 : Add visual swatch uploader in custom UI form

There are visual swatch uploader available in store -> product -> Edit "color" attribute and Manage Swatch (Values of Your Attribute) like display in below image. I want to apply same that uploader ...
1
vote
1answer
61 views

Show Account information tab as active in admin customer edit page Magento2

I want to show account information tab as active, when admin goes to customer edit page. By default it shows customer view tab as active. I checked Magento Ui module but still no luck. Is there ...
1
vote
2answers
691 views

Magento 2 : Add custom block in ui form field

I want to call custom block to call my custom .phtml in ui-form field. How to do that? My form field : <field name="title"> <argument name="data" xsi:type="array"> <item ...
1
vote
1answer
128 views

Magento2: How can I format the price with two decimal places in the admin ui form field?

In Magento version 2.3.2 and 2.3.3, in a UI form, I have a field element input, of type price*: <field formElement="input" name="price" sortOrder="60"> <settings> <dataType&...
0
votes
1answer
189 views

Magento 2 custom module ui component admin form add fieldset within a field

Can one have a Fieldset within a field ?. E.G: <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
1
vote
0answers
30 views

Magento 2 how to add all Indian cities as drop down

I am trying to add All Indian cities come as drop with respect to their state,i got country and state dropdown but unable to add city. can i get help? thank you in advance. here is my form.xml file &...
0
votes
1answer
341 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
1answer
300 views

Magento 2: How to display Customer Name instead of Customer Id in UI Component Form Field?

In Magento 2.3.2, I have created a grid and form to add and edit. In the grid column, I am able to display Customer Name instead of Customer Id with following code. <column name="customer_id" ...
0
votes
0answers
112 views

Override Magento_Ui base view template file on Magento 2

In Magento, we can override vendor's file vendor/magento/module-ui/view/frontend/web/templates/form/element/input.html like: app/design/frontend/{Vendor}/{ThemeName}/Magento_Ui/web/templates/...
0
votes
0answers
205 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
102 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: &...
2
votes
1answer
241 views

Magento 2 WYSIWYG field in custom admin form

I'm trying to add some fiels dynamically with Ui interface in a custom admin form. in order_ticket_form.xml <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/...
1
vote
0answers
39 views

Magento 2: admin grid form select dropdown relationship

I want to create dropdown like Country -> State relationship where user select a country and its states visible in another dropdown in admin grid form
0
votes
1answer
608 views

Magento 2.3: How do i solve this, Not registered handle, on custom form?

I'm new to Magento, my version is 2.3, i'm getting this error when i open form view: Not registered handle event_form_data_source, i made my custom module Plumtree_Events, here are my files code. /...
0
votes
1answer
36 views

Add htmlContent via Magento\Ui\DataProvider\Modifier\ModifierInterface

where i can find an example to add html content in my form using ModifierInterface. Or how to add part of ui_configuration in that modifier?
1
vote
0answers
89 views

Get Empty Page when loading UI Form

I get a EmtyPage when loading UI Form, pls help me. Here is my code DataProvider.php <?php namespace SimplifiedMagento\CustomAdmin\Model\Ui; use Magento\Ui\DataProvider\AbstractDataProvider; ...
3
votes
1answer
361 views

Magento 2 Admin Ui Component Edit Form Validation based on Dropdown selection

I am trying to give required field validation on textbox which is depend on dropdown selected value. Dropdown have 2 values 1. Yes 2.No. If dropdown selected value is Yes than textbox is mandatory ...
0
votes
2answers
219 views

Magento 2: How to add class for custom tab in form ui component?

I tried additional classes but it working with the content of my custom tab still not working with my custom tab. So who can help me how to add a class for custom tab? code :- <fieldset name="...
4
votes
0answers
57 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
115 views

Magento 2 UI form set default value from url params?

I want to set a form field value from the URL params in UI form. I am aware that static values can be set via default property of the field but how to set dynamic values as default (to be specific ...
1
vote
0answers
91 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</...
1
vote
0answers
76 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 ...
1
vote
2answers
311 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: ...
0
votes
0answers
174 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 ...
4
votes
2answers
668 views

Magento 2 Can't get the sales rules conditions in my ui form submit

I have a UI form which contains 2 fields one is 'name' and the other is the 'conditions'. I have tried the below code to display the conditions section and it is working fine. But I did not get the ...
3
votes
0answers
28 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=...
0
votes
1answer
235 views

Magento 2 : Ui form element enable/disable on store switcher

In Magento 2.3.1, I want to do like : If all store view, then input text should be enable. Othervise, input text should be disable. I follow this answer : click here But, still I'm not getting ...
0
votes
0answers
43 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" ...
2
votes
1answer
177 views

Magento 2 : pass custom value in js from ui form

I want to pass some custom value from ui form field. How to pass it and get in js? code : <field name="template_text_4"> <argument name="data" xsi:type="array"> ...
1
vote
1answer
402 views

Magento 2 : textarea height automatic set large in admin

In magento 2 admin, I want to expandable textarea height using xml. How to do that? I tried this code. But, it's not working. <field name="comment"> <argument name="data" xsi:...
0
votes
0answers
63 views

Magento 2 : Call ajax request on ui form dropdown change

In magento 2 admin, I want to do like on dropdown change my custom controller call using ajax. Same functionality working in product edit, Attribute set dropdown change. How to do that? Any help ...
1
vote
1answer
32 views

Magento 2 ui form multiselect field not checked not in $_POST

I have multiselectin my form displaying all store view available one is selected when I save only one show in the post array: <field name="store"> <argument name="data" xsi:type="array"&...