Skip to main content

Questions tagged [adminform]

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

188 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
1k views

Magento 2 : Not getting the product grid in a custom form using UI component

I want to show product grid in admin form using UI component, for that, I have added the following code in product_form.xml <fieldset name="assign_products"> <argument name="data" ...
Vindhuja's user avatar
  • 1,395
7 votes
0 answers
306 views

How can I make admin form field ($form->addField()) use PageBuilder editor?

I'm using Amasty's Landing Pages extension. On the Landing Pages edit form there's a content field that uses the default WYSIWYG editor. I need to make this field use the PageBuilder editor instead. I ...
barrakuda's user avatar
  • 151
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 ...
Sunny Rahevar's user avatar
6 votes
0 answers
1k views

Magento 2: Sales rules in custom ui form is empty on editing

I am working on extension in which i have add sales rules conditions in my ui form. I am storing as serialised condition. it saves perfectly. However, i am getting empty field during edit form. This ...
Sameer Bhayani's user avatar
5 votes
0 answers
639 views

Magento 2 : Not able to save admin form after adding multiple tabs

I have created an admin form with 2 tabs. 2nd tab contains product grid. Before adding tabs save button works perfectly but now getting an error TypeError: $.data(...) is undefined and I'm not ...
E.B's user avatar
  • 1,010
5 votes
0 answers
1k views

How to make country_id/region_id/region to work in custom admin form?

I need country/region fields in custom form in admin panel. I have following fields: <field name="country_id"> <argument name="data" xsi:type="array"> <item ...
ciemin's user avatar
  • 375
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 ...
Keval Chauhan's user avatar
4 votes
0 answers
1k views

Magento 2: How to link an admin form and list UI component via insertListing?

I've created an admin form UI component for an entity that I've created: Vehicle. The idea is that you can create/edit vehicles in Magento, and then assign them to products via a list component (...
Tjitse's user avatar
  • 1,310
4 votes
0 answers
388 views

Add Product Selection to Admin Form

I have developed a module for Magento 2 for Promotions. I have a form for this which is working and contains basic information: Title Description Price Start Date End Date I now need to add "...
vmp's user avatar
  • 398
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 ...
Parth Brahmbhatt's user avatar
3 votes
0 answers
1k 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 ...
Siranjeevi K S's user avatar
3 votes
0 answers
184 views

How to Make Category tree Auto expand the assigned subcategory tree in edit product form?

I'm using Magento 2.4.1 and have 4 levels category when editing a product in cms it really cumbersome when I need to locate the hierarchy of my product categories because when it first loads it only ...
blue's user avatar
  • 128
3 votes
0 answers
44 views

Multiple Image upload restrict up to 10 images

How to add multiple image upload in magento 2 and restrict to only 10 <field name="images"> <argument name="data" xsi:type="array"> <item name="config" xsi:type=...
Avesh Naik's user avatar
  • 1,219
3 votes
1 answer
761 views

Add UI component Field in Block form

I want to add an image field of UI component on traditional block form. I want to replace only this field with UI component. The reset field should be in Block class form. $fieldset->addField( ...
Avesh Naik's user avatar
  • 1,219
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:
Juliano Vargas's user avatar
3 votes
1 answer
214 views

Magento 2.2.5 custom js not working when I call it from phtml file using uiComponent

I have created admin form using uiComponent. I have called phtml file using <htmlContent name="html_content"> in xml file. I tired to call custom.js using below code but its not working. <...
poojan sharma's user avatar
3 votes
0 answers
60 views

Magento 2.2 : uiComponent Form : show images in a field

I would like to show images in a field without having uploader button. I have images name in the DB column. How could i use a renderer for the field or any other way to do this?
Yogesh Agarwal's user avatar
3 votes
1 answer
1k views

How Do I Add Styling Or Groupings To Widget Parameters?

I have a custom widget with various parameters. Is it possible to style or add grouping, headings, fieldsets, basically anything to give some space and separation to the numerous parameters? My ...
Shawn Northrop's user avatar
3 votes
0 answers
364 views

Magento-2 : Add "Use Config Settings" check-box to custom block form

I have custom admin form and want to show "Use Config Settings" check-box to just under form field. For Example, In product edit page, If you open "Advanced Inventory" link, you will see "Use Config ...
Suresh Chikani's user avatar
3 votes
0 answers
565 views

Magento 2: Ajax call to customer edit form for dependent dropdown

I have created two attribute for customer as "Restaurant" and "Stores". Currently I am getting data from their respective model collection through InstallData.php in customer add/edit form. Now I want ...
Abhishek's user avatar
  • 939
3 votes
0 answers
1k views

How can create custom cart price rule for Custom Module in Magento 2?

I have a need for cart price rules in my custom module..anyone knows that how to add code in Form.php? Look Like That.
Magento2 Devloper's user avatar
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="...
Nischal Shakya's user avatar
2 votes
0 answers
86 views

Add search functionality in admin for select

Hi I want to add search functionality in select box in admin form. screenshot: https://nimb.ws/Rj5osS , anyone had any idea? I have this code which creates the field: $baseFieldset->addField( ...
Arsalan Ul Haq's user avatar
2 votes
0 answers
23 views

Customer group form field is not populating in form after save

I have added custom field in customer group but after save it is not populating in the form. I have added field value in addValues function in _prepareLayout of form like below.but it is not display ...
Mage2 Beginner's user avatar
2 votes
1 answer
256 views

Multiple form in admin form Magento 2

I'm using magento 2.3.4, I have a database structure like this: //event |event_id | name | +---------+-------+ | 1 | Art | | 2 | Expo3 | // score | event_id | judge | score |...
jojo's user avatar
  • 39
2 votes
1 answer
525 views

How to add customer Attribute inside custom tab section insted of "Account Information" in magento 2?

I have created customer Attribute programmatically and need that attribute to outside of "Account information" tab... means in custom tab. I have tried with customer group.... ui component file as ...
rakesh prajapati's user avatar
2 votes
0 answers
76 views

Magento 2: How can I modify the product edit page depending on my custom product types

Is it posible to hide/remove default fields and fieldsets from the product edit page for custom product types? For example weight, price, tax_class...
Dr. Christian Kusche's user avatar
2 votes
0 answers
68 views

How to create a dynamic generated Admin fields in "add product section"?

I want to add dynamic field for each product type and display in Product detail page. Can anyone tell me how can I achieve this. (See below image)
Sanjay Gohil's user avatar
  • 2,200
2 votes
1 answer
255 views

What is the use of getFormActionUrl()?

In Magento2.1.10 I am trying to make admin grid module and found below function in given path \app\code\xyz\Grid\Block\Adminhtml\Grid\addrow.php public function getFormActionUrl(){ if ($...
Bhakti Thakkar's user avatar
2 votes
0 answers
537 views

How to create search select box using block class

I want to create a select box like the below I know this can be done using Ui components, but i want it to be done using form.php class (block class) Currently i am just using the simple select box ...
Avesh Naik's user avatar
  • 1,219
2 votes
2 answers
139 views

Edit action is not working properly for a custom module at admin on mageno 1.9

I am trying to implement a module in Magento 1.9. I am new to it. Edit action on the admin side is not working. Whenever I edit a field, the original remains the same and another entry gets created ...
Bhakti Thakkar's user avatar
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?
Hasitha Anuruddha's user avatar
2 votes
1 answer
126 views

JS error with saving admin side form data

In the custom module with grid i am getting error as following : TypeError: $.data(...) is undefined in magento 2 admin form in tab It was working perfectly without tab and saving form data in ...
Magecode's user avatar
  • 1,514
2 votes
0 answers
108 views

Magento 2 : I have add new field to cusotmer group but value not save

I have add new custom fields to customer group (adminhtml) but value not save. For add new field into customer group I have override below file: Block/Adminhtml/Group/Edit/Form.php $form = $this-...
Navin Bhudiya's user avatar
2 votes
0 answers
298 views

Two checkbox filed column for admin form grid

I would like to make more then one checkbox for grid in custom form. and grid checkbox value should be passed through form.I have implement it in form grid but it has problem when i click on first ...
Zahirabbas's user avatar
  • 2,083
2 votes
0 answers
2k views

How do I add a submit button to a UI Component Form?

I'm building a custom form in the admin using the UI Form Component, and configuring it in [my_module]/adminhtml/ui_component/form.xml. I have the fields working, but would like to add a 'submit' ...
dbcn's user avatar
  • 754
2 votes
0 answers
1k views

Magento 2 Admin Form Field

To create form in admin magento is now using the same UI component as it use it for grid. I have one select which will have its dependent elements. How can I achieve this in ui component <field ...
Priyank's user avatar
  • 7,702
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 ...
Luisa's user avatar
  • 11
1 vote
1 answer
312 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.
Kavya cheerala's user avatar
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 ...
quba546's user avatar
  • 11
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 ...
joguz's user avatar
  • 39
1 vote
1 answer
97 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"> ...
Ravi Soni's user avatar
  • 1,809
1 vote
0 answers
734 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 ...
Jason's user avatar
  • 180
1 vote
0 answers
163 views

Show thumbnail image via Data Provider in Dynamic Rows in admin form magento 2

How can I show image thumbnail (edit form) for dynamic rows created by Magento's Row Pattern using Data Provider / Modifier. Like this link: Magento2 How to add row pattern/dynamic rows to the custom ...
Yogita's user avatar
  • 784
1 vote
1 answer
514 views

How to add "Use Default Value" checkbox for custom form field

I have created a form by exending Magento\Backend\Block\Widget\Form\Generic class in my class. I am adding a field using $fieldset->addField() to my form for which I need to add "Use Default ...
Jaimin Sutariya's user avatar
1 vote
0 answers
604 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
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
226 views

How to get second field value from data base based in first field id in magento2 admin block form?

here i get the layer id in drop down now i have get layer type in second field in based on layer is select can any one help me how can i do that.i try $fieldset->addField( 'layer_id', ...
Jay Parmar's user avatar
1 vote
0 answers
154 views

How to store category id and also category name in custom table two different entity in magento 2?

How to Store category id and also Store category name in custom table two entity public function toOptionArray() { $options = []; $categories = $this->collectionFactory->...
Jay Parmar's user avatar
1 vote
0 answers
41 views

Admin Block Form Edit File Than The Choose File Was blank and re upload the file at edit time?

Here is my form admin edit See here choose file was blank when we edit the image here is my edit file code Controller\Adminhtml\banner\Edit.php <?php namespace Vrinsoft\Banner\Controller\...
Jay Parmar's user avatar