Skip to main content

Questions tagged [adminform]

A form visible in admin area of Magento (Backend).

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

Magento 2.4.7 multiple wysiwyg editor not working

We have create custom admin grid form and use three wysiwyg editor but not working in magento 2.4.7 but working on magento 2.4.6. please see given below Screenshot. https://prnt.sc/4c4kUe6MxUSg (in ...
2 votes
1 answer
4k views

How do I change date picker format for admin date field

How can I change the date format to display as dd/mm/yyyy for admin date field? Currently it is displaying as mm/dd/yyyy format. Can you please help me out?
0 votes
1 answer
1k views

Magento 2 : Added field for video, music ( mp4 , mp3) upload in admin form

I try to upload image, video or music player, for that I use $uploader->setAllowedExtensions(['mp4', 'mp3', 'jpg', 'jpeg', 'gif', 'png' ]); , but it doesn't work. Anyone have idea about this problem? ...
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:
7 votes
2 answers
1k views

Multiple Image browse in custom admin form Magento 2

I have created a custom form in the backend and it is working fine for single image browse. If I select only one image then it is working fine. My requirement is, I want to select multiple images with ...
0 votes
2 answers
2k views

Magento 2 Get data to admin UI Form without key and collection

Is there a way to get data from a DataProvider to my UI Form component, without having a collection or a key? My DataProvider currently only has a "getData" function and the form is rendered, but I ...
0 votes
2 answers
5k views

Magento 2.3. How to create image upload field in an admin form

I want to discribe How I have created image upload field in an admin form. My module's name is Paracrab\Banners Firstly You should add field in Paracrab/Banners/view/adminhtml/ui_component/...
0 votes
2 answers
80 views

Magento 2 : How to make a Admin form without UI-Component

I want to make an admin form in magento 2 without using ui component method. Please refer me a link or a appropriate solution.
0 votes
2 answers
1k views

Disable Clickable Link On Magento 2 Order Grid Rows or ID column

When our customer service people need to copy an order number from the Admin Order Grid, they try and highlight it with their cursor and copy it but that triggers the standard M2 click action to show ...
0 votes
0 answers
25 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
53 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 ...
2 votes
2 answers
805 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/...
2 votes
2 answers
324 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
543 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/...
0 votes
1 answer
61 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
3 votes
2 answers
3k views

Magento2 not getting post data from ui component phtml file

I have implemented admin form using UI component. In that, I have 3 separate tabs. Among 3, I have displayed one tab using custom phtml file by using following code in ui component form xml file <...
0 votes
4 answers
4k views

Magento 2 : Add link in Admin UI form

I want to have a downloadable link in my admin form. I want to fetch file name from my table and file is located under Magento_Root/pub/media/ directory. Note: this form is being used for just edit ...
0 votes
1 answer
263 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
35 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\...
3 votes
3 answers
5k views

How to create a dynamic fields in admin form?

I want to add add new button template in admin form like this... How to do that? Thanks.
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
80 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
121 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
120 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
2 answers
35 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; ...
4 votes
0 answers
464 views

Show/Hide dependent attribute field on toggle attribute field of product add/edit admin form into Magenot 2

As per the requirement, I have created 2 product attribute into magento 2 admin. First attribute is toggle(Yes/No) attribute and Second is Text attribute which is dependent on First attribute. Now I ...
1 vote
0 answers
45 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
81 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/...
3 votes
4 answers
7k views

Add WYSIWYG Editor to Block Form in Magento 2

How do you add a WYSIWYG editor to a custom form which you create through a block? I have found this article for doing this through UI components but need this for a block. I've tried the following: $...
1 vote
2 answers
554 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
2 answers
695 views

Set form values with javascript: not saved

in my admin edit form I set an input field value with a javascript function. The function works and the value is displayed in my input field. My problem is, that when I save the edit page, Magento ...
0 votes
1 answer
3k views

Magento 2 UI Component admin form conditional required validation

I need to create 2 fields(checkbox and input) in admin catalog form. I created both fields using UI Component. I need to add a condition that when checkbox is checked then input field will be required....
0 votes
0 answers
221 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
219 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 ...
3 votes
2 answers
2k views

How to use Product Chooser Widget with UI Component Form

I want to have a field in my UI Component form and a "Select Product..." Button where I can choose a product and it gets inserted into the input. Similar to the "Catalog Product Link" Widget. Started ...
0 votes
2 answers
773 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
154 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
194 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
354 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&...
1 vote
2 answers
857 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
2 answers
293 views

Magento2 - custom color picker on product page

I would like to add a custom colour picker to an attribute that isn't a swatch colour. I have followed this tutorial for my attribute 'hue' and it is not working: https://kiwicommerce.co.uk/blog/how-...
2 votes
0 answers
89 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
406 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 ...
1 vote
1 answer
314 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.
4 votes
0 answers
98 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
0 answers
173 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
138 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
150 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
217 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
2 3 4 5
12