Questions tagged [adminform]
A form visible in admin area of magento.
551
questions
1
vote
1
answer
26
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
0
answers
59
views
+50
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
2
answers
1k
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
1
answer
49
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
2
votes
1
answer
3k
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?
3
votes
2
answers
2k
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
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? ...
0
votes
1
answer
48
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
25
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
46
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
4k
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
37
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 ...
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 ...
1
vote
1
answer
54
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
85
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
70
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
27
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
449
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 ...
0
votes
0
answers
36
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
26
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
42
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
330
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
13
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
2
answers
557
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
0
answers
89
views
How to add custom admin form with store switcher in magento 2?
I want to add a form with store switcher facility. So when we change the store the fields value will be change according to the store view.
How to save the field values in the database?
And How to ...
0
votes
1
answer
2k
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
170
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
145
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
512
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
113
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 ...
1
vote
1
answer
135
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 ...
0
votes
1
answer
193
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
736
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
271
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-...
1
vote
0
answers
79
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="...
0
votes
1
answer
276
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
206
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
88
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
163
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
99
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
116
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
170
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 ...
0
votes
1
answer
867
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:
<...
4
votes
1
answer
964
views
Move Customer Extension Attribute to new tab
I've successfully created several customer extension attributes that display on the customer form and save and load data.
When I try to move these fields to a new custom tab on the customer admin ...
4
votes
1
answer
92
views
Purpose of Time Condition Field
I have no clue what is the purpose of time_condition field in admin page.
Class File:
Mage_Adminhtml_Block_System_Config_Form_Field_Import ... {
public function getElementHtml() {
...
...