Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [ui-form]

Denotes questions regarding Magento Ui Components form

Filter by
Sorted by
Tagged with
1 vote
1 answer
89 views

Magento 2 custom validation rule in UI component form field with Ajax

I have created a custom validation rule in my admin ui form using the below link https://webkul.com/blog/add-custom-validation-rule-in-ui-component-form-field/ If I use a direct condition then it is ...
Jancy Abraham's user avatar
0 votes
2 answers
97 views

Magento 2 :: Admin Custom Form values stored with double quotes issue

I have created a custom admin form using a UI component and added a multi-select shipping method field. I've successfully retrieved the selected values in an array and stored them as a string in my ...
IntraPersonalLearner's user avatar
0 votes
2 answers
209 views

Magento 2.4.6: How to display Order IDs Based on Selected Customers in a UI Form?

I've created a UI component form that consists of two dropdown fields. The first dropdown successfully displays customer IDs and names. However, I'm encountering challenges with the second dropdown, ...
MagentoDev's user avatar
0 votes
2 answers
158 views

Magento 2 / Knockout js add image in form field notice

I want to add html tags to the notice of a specific field, I tried in LayoutProcessor but it does not interpret the image tags, I know it is possible from the field.html file, but it did not work for ...
Diego Castro's user avatar
0 votes
1 answer
437 views

Magento 2: How to display region label instead of option value in custom ui component grid?

I have created an ui component and form. In the form, I have added the country and region fields and in the grid, I need to display the region label instead of the option value. How to achieve this? ...
MagentoDev's user avatar
1 vote
2 answers
563 views

How to show external image in custom admin form for preview Purpose only in magento 2?

I have created a custom module, that will import images from external source and save the image in custom table as imageUrl. I can show the image thumbnail in the grid(Ui Component). I want to show ...
Mujahidh's user avatar
  • 2,813
1 vote
1 answer
136 views

Magento 2 Can't get the sales rules conditions in my ui form at edit time Magento 2?

I create custom module for add rule condition in custom module but not get condition data on edit time here i share my files vendor_module_form.xml <fieldset name="conditions_fieldset"&...
Jay Parmar's user avatar
0 votes
1 answer
205 views

How to disable Stock Status in Advance Inventory section under product page

I need to disable stock status field under advance inventory section in the product page. I don't want to remove it but show it disabled. Please suggest.
Sumit Verma's user avatar
0 votes
1 answer
249 views

Magento 2 ui component required but hidden

I have a field which i don't want to show. But this field needs to be required. this field should be populated when we click on specific button via ajax. so we have something like that: <form> ...
Naberd Zendi's user avatar
1 vote
1 answer
187 views

Magento 2 In the UI form, Edit urlInput is not working properly

I've created a UI form with a URLInput field. For creating new entries, it works fine. However, the 'open in new tab' setting is always checked in the edit form. The value has been binded correctly. ...
Jancy Abraham's user avatar
1 vote
1 answer
362 views

DynamicRows component doesn't show saved data on edit form (Adminhtml)

The ui form component works good on "New" action but, if I save this: Then, the edit action shows this: The data is being saved correctly in my custom table after submitting the "New&...
araujophillips's user avatar
1 vote
0 answers
128 views

How to create dynamic source model in Magento 2 depend on database?

Suppose MyEnity has column "status" in the database it values is 0,1,2 0 => None 1 => 'Good' 2 => 'Bad' I want In Add Page, source model display 1 => 'Good' 2 => 'Bad' In ...
Phạm Hòa's user avatar
2 votes
2 answers
806 views

Magento2: Custom validation in checkout address form

I'm trying to add a custom validation to some input fields in checkout address forms. The official guide works fine on addressbook and other forms, extending mage/validator and using addMethod is ...
kionez's user avatar
  • 31
0 votes
0 answers
45 views

Radio buttons in configuration are not horizontal

I am working on the magento configuration and I am using the radio buttons and it is working well. The issue is that I cannot add them inline but only vertical. Is there a solution for it ? <...
Alexandros Mor's user avatar
1 vote
1 answer
121 views

How to get call modal('closeModal') from authentication.html

Question How do I get access to the underlying modal object from a UiClass object? This Magento Stackexchange answer shows how to call closeModal on a modal window: https://magento.stackexchange.com/...
CvRChameleon's user avatar
0 votes
1 answer
376 views

Magento 2 : Pass a value to the modal popup from UI Form

I am creating a slider module. I am using the same structure of the customer address form. Add New button will open a modal and show a form. From that, I can upload the image and save it. Now I am ...
Jancy Abraham's user avatar
2 votes
1 answer
241 views

Admin grid action column layout is broken after upgrading to 2.4.4

Previously i'm using magento v2.4.1 in cms grid the action column is showing the correct layout after getting clicked, for example Block cms grid: The layout is overlapping the grid correctly, ...
jojo's user avatar
  • 49
0 votes
1 answer
433 views

Append "Add New" button in Grid Listing, on a Form

A custom module has Foo and Bar Models. In the Foo element's Form, there exists a grid listing of Bar items which belong to that Foo. This is an excerpt from the view/adminhtml/ui_component/...
dotancohen's user avatar
  • 1,115
3 votes
2 answers
3k views

How to make select ui component as a required entry in Magento 2

<form> ... <fieldset> ... <field name="select_example" formElement="select"> <settings> <dataType>...
Mani's user avatar
  • 393
1 vote
1 answer
109 views

Magento2 Ui Form: image preview is not working for store specific Role user

Preview image is getting properly on Ui Edit form with other fields data when it was accessed by Administrator Role user. But when its comes to Other Role users which has limited access (i.e. Access ...
Nilesh Tighare's user avatar
0 votes
0 answers
107 views

Magento 2: color picker is not working in ui custom form

it's show like this and I define its field name in XML file
Muhammad arslan's user avatar
0 votes
1 answer
369 views

How to get image preview in frontend form Magento 2

I have created a module that creates a form at frontend, but I'm unable to get the image upload preview out there. Can we put preview.html in frontend/templates? If not, then how can I achieve it?
Smith's user avatar
  • 1
0 votes
1 answer
75 views

Getting Error on Add Item Page in Admin UI Component

I just created a Form with Ui_components, but When I go to this page, I'm getting the following error.
Jasvir Singh's user avatar
1 vote
2 answers
862 views

Form ui fieldset load data

I used the Magento 2 plugin in PhpStorm to create an entity with grid and form. It seems to work great until I renamed the fieldset name to “foo” and added tabs. I already looked up many related posts/...
ThatOneGuyThatDontGetIt's user avatar
0 votes
2 answers
273 views

Custom ui form with Magento core_config_data table

I was required to manage custom core_config_data (system config) values with a separate form from the Magento Admin side. How I can retrieve the values saved in the table with the data provider?
ajay's user avatar
  • 35
0 votes
4 answers
843 views

Add password field when create customer from admin panel

I disabled the customer register from the frontend and I want only to create customers from backend. when I create customer in (Customers -> All Customers -> Add New Customer) I want to specify ...
Mohamed Moataz's user avatar
0 votes
0 answers
28 views

custom ui form on menu click?

I'm try to add a form on menu click and it doesn't works. Can anyone knows?? <menu> <update id="FME_Extensions::fmeextensions" title="FME Extensions" module="...
aich.khalid's user avatar
0 votes
0 answers
241 views

Magento 2 Admin Menu buttons (UiComponent buttons) behaviour

Question What do I need to setup a Button's behaviour, or is there CRUD built-in Magento 2 behaviour when I do not specify a Controller? This is The tutorial article I am following. I found the ...
CvRChameleon's user avatar
0 votes
0 answers
965 views

How can I save my ui component form to the database?

I created a ui component, but I have no idea how to save it in the database. I know I have to pass it to the controller for it to pass to the model but I don't know how my controller should be, here's ...
lucas's user avatar
  • 309
0 votes
1 answer
508 views

Import CSV file with Ui form and process it - error 404

I want to create a file uploader using Ui form, upload and process it in adminpanel. this is my Ui form code <field name="fileUploader" formElement="fileUploader"> ...
Mahdi Alikhani's user avatar
0 votes
1 answer
107 views

HOW TO USE UI COMPONENTS?

guys i'm learning how to use ui components and following doubts arose, i found a code in the magento documentation of a form, but the documents is difficult to understand and does not explain what is ...
lucas's user avatar
  • 309
0 votes
3 answers
567 views

Magento 2 : Pre fill Textarea Value

I added a text area in the admin form and want to show pre-defined text in that. So is it possible and How? $fieldset->addField( 'approval_note', 'textarea', ...
Krupali's user avatar
  • 1,150
1 vote
0 answers
99 views

Show custom grid and chooser inside product edit UI form

I want to show a grid inside product edit UI form under a fieldset Related Blog Post. This section would allow choosing a list of related blog posts for a product. I am using a custom module for blog ...
Lokesh Naik's user avatar
0 votes
1 answer
218 views

Help to create form - now its neverending spinner magento2

I'm learning to create an UI components form, but stuck on neverending spinner. Help me to create this form, step by step, please. I have a module in adminhtml which shows a table from database. This ...
Fadsa's user avatar
  • 1
0 votes
1 answer
359 views

How to Create a field in the UiForm in which the csv file can be uploaded and read on the submit to store its fields in database in magento2?

How to Create a field in the UiForm in admin panel in which the csv file can be uploaded and read on the submit to store its fields in database in magento2?
Ankita's user avatar
  • 1
0 votes
1 answer
16 views

Form is not executed in admin panel form url show too many redirects error i give link in body

link form is not visible and give too many redirects error
Ankita's user avatar
  • 1
2 votes
2 answers
715 views

DynamicRows (or Associative Array) in Magento 2 REST API

I am using Magento 2 REST API for the mobile application. I am facing some complexity so I need your help. I have DynamicRows component with two fields in UI Form, the name of the field is ...
Adnan's user avatar
  • 853
1 vote
0 answers
607 views

Add Selected Model Grid Item in Custom UI Component Form

I've refer the assign source code ui form and with same exact functionality i wanted to add my own store by selection. I've applied the same code but does not reflect the selected item in the dynamic ...
Viral Langhanoja's user avatar
0 votes
1 answer
955 views

Magento 2 InsertForm component in to the UI form component

I would like to add form same as like admin customer edit Add new address form. So i have added InsertForm component inside the customer edit form using this reference link A form is displaying fine ...
Chirag Patel's user avatar
  • 6,156
1 vote
0 answers
430 views

Magento 2: Html Content Form Not Posted Admin Ui Form

we are trying to create an admin UI From with Html content with Field Set, Html Content input fields are posted. what I did: Vendor/Module/view/adminhtml/ui_component/page_master_add_form.xml <...
Rajkumar .E's user avatar
  • 3,580
1 vote
1 answer
1k views

How to add checkbox-set ui-component to static form in layout.xml

I want to add a multi checkbox of days of the week to the checkout, similar to: Following the instructions on the Magento Docs - Add a new input form to checkout I have added the following item to my ...
Richard Parnaby-King's user avatar
0 votes
1 answer
2k views

How to change "This is required field" message to field-wise magento 2 customer registration

If I am submitting registration form as blank then all fields are showing an error message: This is required field I want to change this message according to fields. For Example: > > First ...
Vinod Kumar's user avatar
  • 2,065
0 votes
0 answers
359 views

Magento 2: How to open admin edit page in modal popup

To edit or create my data, I use the ui_component form as default. Now I try to open the admin edit page in a modal window, but unfortuantely I HAVE NO IDEA how to do this :-( Please help! Christian
Dr. Christian Kusche's user avatar
1 vote
2 answers
883 views

Values for checkboxes not coming through on save for admin form ui grid

I've created a grid under a tab in an admin UI form. But I'm having trouble saving the checkbox change values. I can't catch the tab checkbox values on form submit in the controller. Only the values ...
Dominic Pixie's user avatar
0 votes
2 answers
2k views

How to dynamically hide normal fieldset (or) Non tab fieldset in ui component?

I created a custom admin form using Ui component. In that form i need to show and hide a fieldset dynamically based on a condition. I tried to add class for that fieldset, But the class not working in ...
Siranjeevi K S's user avatar
0 votes
0 answers
220 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 ...
Mahesh Dave's user avatar
1 vote
1 answer
48 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 ...
xanka's user avatar
  • 2,114
0 votes
1 answer
900 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, ...
gabtzi's user avatar
  • 666
0 votes
0 answers
612 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> ...
Juliano Vargas's user avatar
0 votes
1 answer
463 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\...
Arjun Soni's user avatar