Questions tagged [adminform]
A form visible in admin area of Magento (Backend).
552
questions
0
votes
0
answers
20
views
How to delete a file uploaded by FileUploader UI Component without submitting the form
I have prepared an admin form containing a file upload field. This form is configured in an .xml form file.
<field name="files" formElement="fileUploader" sortOrder="40&...
0
votes
0
answers
43
views
Magento 2.4.6: Generate image upload fields as per another model data count in admin form using ui_component
My simple query is how to generate a dynamic field which will created as per count of another model data in admin form using ui component.
suppose I have a model xyz and data countable in this model ...
0
votes
1
answer
287
views
Custom file upload in ui-component form
I am trying to get file upload working in a ui-component admin form. The file input field is coming from a htmlContent block. This is all sitting in a <form xmlns:xsi="http://www.w3.org/2001/...
2
votes
2
answers
123
views
Magento 2 InsertForm component in to the UI form component not show form buttons
I added form to admin modal with InsertForm UI component based on documentation. https://developer.adobe.com/commerce/frontend-core/ui-components/components/insert-form/
Unfortunately this not show ...
0
votes
1
answer
119
views
Does magento2.4 sanitizes form input in order to avoid XSS or I have to implement my own methods?
I made my first form:
<?xml version="1.0"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:...
0
votes
2
answers
28
views
How I can convert my form into a singe column one and place a WYSIWYG editor?
For an admin form I have implemented the following form:
File app/code/MageGuide/FirstModule/view/adminhtml/ui_component/add_blogpost.xml
<?xml version="1.0"?>
<form xmlns:xsi=&...
0
votes
0
answers
49
views
How I can add a `Create New Button` to my Grid in magento2 where redirects to another page?
I am learning magento extention creation, and I try to add a "Create New" record in my admin grid. So far I made this grid:
namespace MageGuide\FirstModule\Block\Adminhtml;
use MageGuide\...
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 ...
1
vote
1
answer
70
views
Admin grid form submit button not working
When I open my admin grid form and click the Save button, nothing happens, the button just displays as clicked (no network activity, no errors in console or logs, doesnt reach Index/Save.php). When I ...
0
votes
1
answer
107
views
How to open slider popup from grid widget form using action column
I have loaded the widget block form grid in the edit product section.
I am trying to open the model popup in the adminhtml widget grid form.
I have added the action column like below
$this->...
0
votes
2
answers
97
views
export csv sort according to desc creation time
How to sort export csv file according to desc order by the creation time
<exportButton name="export_button"/>
<exportButton name="export_button"/>
<paging ...
0
votes
1
answer
56
views
How to change Expire Date format in admin form magento 2
how can i change Expire Date format from mm/dd/yy to dd/mm/yy in product form admin panel
0
votes
2
answers
33
views
Hide Admin Menu Based on Store Default Country
I need help on hiding the Customer Feedback - Article Menu if the default country is not JP.
My code is not working.
Plugin/RemoveCustomerFeedback.php
<?php
namespace Thecoachsmb\Mymodule\Plugin;
...
0
votes
0
answers
48
views
How to pass options from class to admin form ui component checkboxset
I have an admin ui component form, one of the elements I'm using is checkboxset. The checkboxset seems be a bit of a ghost in core code, and documentation.
When I implement the checkboxset like this (...
1
vote
0
answers
35
views
How to save empty decimal admin form field not as 0.00 but as null in database?
I have an Admin Grid with one column named min_weight. This column has the datatype decimal (5,2) in the database. The default value for the column is NULL.
If I try to save an entry with the Admin ...
0
votes
0
answers
61
views
Call custom Admin Controller in magento 2 product edit giving an error, How to call admin controller in Ajax?
I have created a button in product admin image popup by overriding the gallery.phtml.
Created the custom js mixin to the product-gallery.js
requirejs-config.js (path - Ayakil/ProcessImage/view/...
1
vote
2
answers
451
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 ...
0
votes
0
answers
14
views
how to add a check to show the button or not in the ui-components?
I need to not show the some button if my entity id (current page) = 2 (reserved value from configuration). How can I do that? I haven't seen such an implementation in ui-components yet.
0
votes
0
answers
201
views
Magento 2 Not getting data in Save controller when using Product Grid in UI Component Form in custom module
I have taken reference from below links:
https://www.rohanhapani.com/magento-2-how-to-add-product-grid-in-ui-form-using-uicomponent/
Magento 2 : How to add a product grid in custom module using ui ...
0
votes
1
answer
170
views
How to redirect to the form with entered data if a form content have any error in magento 2 admin custom form?
I have a custom admin form, After click save button i am checking some unique url in my save controller. If the url is not unique, i want to pass an error message and redirected to the form with filed ...
0
votes
2
answers
626
views
How to insert a listing in admin form in magento 2 UI Component method?
I have a Category, and Questions form in my custom module. Questions are added against category.
Each question can be belong to a category or multiple category.
I need to insert a listing on category ...
0
votes
1
answer
127
views
Input label not rendering in admin ui form
I have an xml form (ui component) where two inputs are inside of a container where breakLine is set to false so the inputs are side by side. This is working for the most part, the issue is that the ...
2
votes
1
answer
159
views
M2: How to change the order of customer groups in admin create customer?
I'm looking to change the default order of customer groups when creating a new customer from the admin. Currently it looks like it goes alphabetically, how can I change this to go by ID or any custom ...
1
vote
1
answer
272
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&...
2
votes
0
answers
88
views
adminhtml form ui_component fields not rendered
I have created a form using ui component. But the form fields are not being rendered in the admin backend, other Save button and left tab is displayed.
The ui_component XML:
<?xml version="...
1
vote
1
answer
317
views
magento 2.4 category_form.xml add comment to fields
I'm creating some custom fields for my categories, so I've added a couple of simple text fields in the database with the setup php script, then extended the category_form.xml to show my fields in the ...
4
votes
0
answers
92
views
How Can I add a custom dropdown type field at the admin create order billing form in magento2
I want to convert the city text field in the dropdown field at the admin create order page. I had done the same thing in customer checkout using the Layououtprocessor plugin. Also, I did the thing in ...
1
vote
1
answer
255
views
Magento2 How to upload excel file in adminform using uicomponent
I need to create a button in custom form to upload the excel file. while saving the form need to save the excel data into custom table.
Can anyone have idea about this.
Please let me know.
1
vote
0
answers
168
views
Submit button in custom admin form using ui component
I want to write a custom module to export product data and I have a problem with a custom admin form using ui components. It will only have one simple select input with stores id and export button and ...
0
votes
1
answer
107
views
How to save value entered in custom field in the Source (MSI) form?
In a Magento 2.4.5, I've (successfully) added a custom field (opening_mon) to the AdminHtml form for a Source (MSI), using view/adminhtml/ui_component/inventory_source_form.xml. I do see the field in ...
1
vote
1
answer
133
views
add categories tree to customer eav attribute
I'm trying to create an EAV attribute for the customer, and I need the input to be the product categories tree like the following image:
Is this acheivable? And how? please.
0
votes
1
answer
958
views
Select items in multiselect on Product form in Admin area
On the Product edit form in the Admin area, I have added a multiselect field by overwriting the modifyMeta() method on Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier as so:
<...
0
votes
1
answer
202
views
How to filter display of Customizable Options in Product admin grid?
In the admin grid form of Products, I need certain Customizable Options to not be displayed even if they are assigned to a Product. These Customizable Options will be displayed in a separate section ...
1
vote
0
answers
12
views
Verify that terms of use that are in a different tab are checked before form is submitted
In the add a customer form in the admin site I added a tab (consents) that has the terms of use and they are required, but if the person does not click into the tab then the form is submitted even ...
0
votes
0
answers
130
views
How to get Admin form's data in custom js file
Issue
In my following custom admin form, I want to add a js file and also get data in this custom Js file.
your help would be appreciated!
0
votes
0
answers
258
views
Custom Collection Admin ui Grid
is it possible to use a collection with a filter for Admin Ui grid. I tried this https://webkul.com/blog/display-a-modified-collection-in-grid-using-ui_component-magento-2/ but it does not seem to ...
1
vote
1
answer
61
views
Update form give access for specific users only - M2
How to restrict update form for few users using ACL ?
0
votes
1
answer
86
views
How to use admin form on front-end in Magento 2?
I want to use the admin form to create new products on the front end. How can it be possible?
1
vote
1
answer
1k
views
Page builder in custom form can't apply template or configure element
I have added a page builder field to my admin form but it seems I can't apply any templates (the dialog doesn't show up and neither do any errors) and configure any elements (same behaviour). I can ...
0
votes
1
answer
1k
views
How to Integrate Button component with Form component? [duplicate]
I try to add my custom button to the form, not to the header of the form, but after some fields inside the fieldset, I found some examples here https://devdocs.magento.com/guides/v2.4/ui_comp_guide/...
0
votes
1
answer
181
views
Configure button to remove image from imageUploader
Good morning, could someone help me configure the button to delete image from the imageUploader field, the image uploads it without problem, but when I press the delete button, the entry is clean, but ...
1
vote
2
answers
794
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/...
1
vote
1
answer
82
views
Magento2: Multiple image upload in Admin Form
I am not using the UI component.
And I want to convert the below code in Form.php
<fieldset>
...
<field name="imageUploaderExample" formElement="imageUploader">
...
1
vote
0
answers
694
views
How to add a input field in admin grid and post it using mass action- Admin Panel
The question is how to get the input data in mass action.
I have currently added a input field in the admin grid. Like this:
I have added the input field using the block. I want to post that values ...
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="...
0
votes
1
answer
715
views
"validate-number-range" validation not working in Adminhtml form created using Ui Component
I am trying to implement the validate-number-range but it is not working.
Please find the implementation below
<field name="custom_sequence" sortOrder="40" formElement="...
0
votes
2
answers
3k
views
How to add custom select options in a custom admin form
I am creating a custom fom in admin and want to load the custom select option in the form as a select field options.
Below is my code :
app/code/Vendor/Module/Block/Adminhtml/Grid/Edit/Form.php
<?...
3
votes
0
answers
935
views
How to add dynamic rows with drag and drop option in generic php form?
I am trying to create a drag and drop dynamic rows field in admin php forms.
I created that form using "Magento\Framework\Data\FormFactory"
I can able to create a normal field like below ...
0
votes
1
answer
3k
views
Magento DataProvider not populating data for edit in form
I am creating a simple CRUD operation in admin panel using UI Component. While trying to edit an entry, the fields are not prefilled. However, I can see the dataProvider is providing data in JSON.
...
0
votes
0
answers
551
views
Magento 2 Dynamic row edit issue
I am facing an issue on the edit page with the dynamic row. I added two dynamic row blocks. One block for global off days and one is for Postal code delay days. In both containers, I added a date ...