Questions tagged [adminform]

A form visible in admin area of magento.

Filter by
Sorted by
Tagged with
1 vote
0 answers
17 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
15 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 ...
  • 157
0 votes
0 answers
15 views

How to add some products in a custom admin form tab- Magento 2.4

I Want to add a product collection, Which is saved in a custom table field( Ex - product_id_1,product_id_2,product_id_3 ) using ui_component method. I have 2 tabs and 1 is a form and another tab needs ...
  • 2,609
2 votes
0 answers
19 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
23 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.
0 votes
0 answers
20 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
18 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
23 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.
  • 173
0 votes
1 answer
34 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: <...
  • 1,174
0 votes
0 answers
20 views

Use Config Settings in admin form using ui component

I am building form using uiComponent and would like to use Use Config Settings checkbox below the field and it should use value from system configuration in case it's checked. Also populate the same ...
  • 2,038
0 votes
2 answers
56 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,174
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 ...
  • 39
0 votes
0 answers
17 views

Admin Form data does not save in database?

This is my Save.php file path Oracle\Infoform\Controller\Adminhtml\Grid /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Oracle\Infoform\...
0 votes
0 answers
56 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
30 views

How to create dynamic field in form depend on attribute code?

I have several attribute code with some options for each. AttributeCode select type brand - with options: adidas, nike AttributeCode select typemanufacturer - with option: pepsi, cocacola, 7up. When ...
0 votes
0 answers
70 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
24 views

Update form give access for specific users only - M2

How to restrict update form for few users using ACL ?
0 votes
1 answer
41 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?
0 votes
1 answer
325 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
0 answers
99 views

Create a product chooser field with ui component form

I want to create a form field allowing to choose (multiple products and associating a position to them). I need to get a solution where i could select a set a products and give them a position in my ...
  • 853
0 votes
1 answer
551 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
44 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 ...
0 votes
0 answers
128 views

Send some parameters using Button component

How can I send some parameters (Data) in DataProvider using the button Here action_update_modal is my Modal component and update_action_form_loader is my insertForm In the documentation, it is ...
  • 1
0 votes
1 answer
75 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
50 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,789
1 vote
0 answers
186 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 ...
  • 160
0 votes
0 answers
54 views

How to assign new product to all existing websites by default in magento 2.3.5

Generally only default website option selected by default during new product creation in magento but I want to assign new product to all existing website by default. Means, I want to select all ...
0 votes
0 answers
79 views

Admin ui form edit is giving blank page

I have tried creating a custom admin grid, created successfully, now I want to update the grid record using a custom form, but redirecting to custom form edit or add gives a blank screen, with no ...
0 votes
0 answers
67 views

How to open another grid in popup on clicking button in Magento 2 admin UI form

I have created one UI grid. In this UI form, I have added one custom button, want to open another grid in popup when clicking that custom button
0 votes
0 answers
25 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="...
  • 328
0 votes
1 answer
191 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
1k 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 <?...
2 votes
0 answers
425 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
673 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. ...
  • 3,554
0 votes
0 answers
282 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 ...
1 vote
0 answers
94 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 ...
  • 749
0 votes
3 answers
216 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,130
4 votes
1 answer
728 views

Magento 2 - Unable to add record in dynamic rows in admin product edit page

I am trying to add a dynamic row fields in admin product edit page. I tried the below code in my product_form.xml file. <?xml version="1.0" encoding="UTF-8"?> <form xmlns:...
1 vote
1 answer
257 views

difference between the Block and UI_Component to Make grid and Form at admin side?

What is the Difference way to use of Block and ui_components to Make the Admin side grid and form and fields and elements in the form, can someone explain, which is better way to choose and Why ?
2 votes
1 answer
750 views

How to add store selector multi select field in admin form without using ui component?

I am trying to get store selector in admin form. I created this form without using ui component. I tried the below code but it didn't worked and I got the below error. The expected input field is: ...
0 votes
2 answers
383 views

UI Component form show dropdown or multiple text fields based on content

I have a form for adding animals with a field called species. This UI Component is: <field formElement="select" name="species" sortOrder="10"> <argument name=...
0 votes
1 answer
1k 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....
  • 131
0 votes
1 answer
26 views

magento admin, edit products, tabs on left?

Is there a way to replace the default accordion style when editing products in the admin area with tabs instead. Example here, https://docs.magento.com/user-guide/marketing/meta-data.html this image ...
0 votes
1 answer
366 views

Adminform uploaded file preview

I added file upload input in AdminHtml Block like this below. $fieldset->addField( 'document', 'file', [ 'name' => 'document', ...
  • 828
3 votes
0 answers
115 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 ...
  • 68
1 vote
1 answer
233 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 ...
0 votes
1 answer
33 views

Adding Category attribute but they are missing

I have created 2 category attributes. They are appearing in my eav_attribute table. But I can't see them in the category admin form. I'm under magento 2.4. Attribute creation $eavSetup->...
  • 853
0 votes
0 answers
187 views

Magento 2: How can i check if field has data while Viewing the form(Ui component) data in backend

I created form using ui-component. after filling the data i display the data into backend. I want to display those field who has data in View action. EX. i want to remove company label if it's blank/...
0 votes
1 answer
364 views

Magento 2: Unable to add delete button in edit form using UI component

Getting below error while clicking on edit action from Grid. Fatal error: Uncaught Error: Call to a member function getUrl() on null in /var/www/html/myproject/machpack/app/code/Vendor/Module/Block/...
0 votes
1 answer
290 views

How I can add Gallery Images for custom form in Magento 2

I am creating a Custom form in admin of magento 2,and I want to add media gallery for same product form(Images and video Tab https://prnt.sc/w926fk ) into this form https://prnt.sc/w928bi please help ...

1
2 3 4 5
11