All Questions
137 questions
0
votes
0
answers
10
views
Magento 2 UI Form. How can I manipulate all fields data within one js file?
Does UI Form component has access to all its fields data? Where?
Thanks!
-1
votes
0
answers
14
views
Magento 2 UI component form and fields. Can you suggest some detailed documentation or books?
I did not find detailed documentation on this topic. Can anyone suggest something?
Detailed explanation of xml and how data is processing between components.
Thanks!
0
votes
0
answers
27
views
How to add a file uploader field in the Product form using PHP UI component Data Provider?
I'm working on a dynamic product row attribute in Magento 2, and I've successfully added multiple fields. Now, I want to include a video uploader field in the product form. The text fields are ...
0
votes
1
answer
40
views
Custom uiComponent missing form element
Hi fellow developers,
I am loading a form uicomponent through ajax in a modal in the backend of Magento 2.4.
The problem is that i dont have an element around my uiComponent.
The way i am loading the ...
0
votes
2
answers
121
views
Magento UI component form not saving
I have a Magento 2 UI component form. Form loads without any errors but when I try to save it then it redirected back to same page with a parameter added as undefined. I had added var_dump die ...
1
vote
1
answer
153
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 ...
0
votes
2
answers
139
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 ...
0
votes
2
answers
198
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 ...
0
votes
1
answer
514
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? ...
1
vote
1
answer
152
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"&...
0
votes
1
answer
242
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.
0
votes
1
answer
266
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>
...
1
vote
1
answer
206
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. ...
1
vote
0
answers
132
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 ...
2
votes
2
answers
962
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 ...
0
votes
0
answers
46
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 ?
<...
0
votes
1
answer
409
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 ...
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>...
0
votes
0
answers
109
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
0
votes
1
answer
393
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?
0
votes
2
answers
288
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?
0
votes
4
answers
903
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 ...
0
votes
0
answers
1k
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 ...
0
votes
1
answer
552
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">
...
0
votes
1
answer
109
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 ...
0
votes
3
answers
609
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',
...
1
vote
0
answers
102
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 ...
0
votes
1
answer
233
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 ...
0
votes
1
answer
364
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?
2
votes
2
answers
751
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 ...
1
vote
0
answers
621
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 ...
0
votes
0
answers
391
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
1
vote
2
answers
910
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 ...
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 ...
0
votes
0
answers
223
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
1
answer
50
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
1
answer
469
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
1
answer
921
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
0
answers
37
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
1
answer
2k
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
...
3
votes
1
answer
2k
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
1
answer
542
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 ...
3
votes
2
answers
5k
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
1
answer
856
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 ...
2
votes
1
answer
607
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
2
answers
8k
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
0
answers
236
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
3
answers
3k
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()...
2
votes
1
answer
2k
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
0
answers
570
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/...