Questions tagged [adminform]

A form visible in admin area of magento.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 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 ...
user avatar
1 vote
1 answer
22 views

Update form give access for specific users only - M2

How to restrict update form for few users using ACL ?
user avatar
0 votes
1 answer
17 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?
user avatar
0 votes
1 answer
41 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 ...
user avatar
0 votes
0 answers
30 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 ...
user avatar
  • 737
0 votes
1 answer
144 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/...
user avatar
0 votes
1 answer
23 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 ...
user avatar
0 votes
0 answers
24 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 ...
user avatar
  • 1
0 votes
1 answer
27 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/...
user avatar
1 vote
1 answer
31 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"> ...
user avatar
  • 1,729
0 votes
0 answers
51 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 ...
user avatar
  • 113
0 votes
0 answers
21 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 ...
user avatar
0 votes
0 answers
26 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 ...
user avatar
0 votes
0 answers
51 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
user avatar
0 votes
0 answers
23 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="...
user avatar
  • 188
0 votes
1 answer
51 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="...
user avatar
0 votes
0 answers
35 views

Image upload error in admin form in magento 2.4

I am getting this error when i try to upload image using "upload" option. But i am able to upload the image through "Select from gallery" option. When i checked the network tab of ...
user avatar
  • 1
0 votes
0 answers
58 views

Admin html: Product edit form: Add custom dynamic HTML content below a field?

I would like to add some normal text below an input field in the product edit form. The text should be dynamic, as I should be able to set it based on some of the current product's information. For ...
user avatar
  • 1,033
0 votes
2 answers
427 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 <?...
user avatar
2 votes
0 answers
306 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 ...
user avatar
0 votes
1 answer
129 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. ...
user avatar
  • 3,554
0 votes
0 answers
64 views

How to load opions in admin panel select ui component by ajax?

I need to make form in admin panel with ui components. In this for I need to choose customer/customers in, so I chose formElement="select". I created ui xml file, options provider and js ...
user avatar
0 votes
0 answers
170 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 ...
user avatar
1 vote
0 answers
74 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 ...
user avatar
  • 749
0 votes
3 answers
162 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', ...
user avatar
  • 1,120
4 votes
1 answer
510 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:...
user avatar
1 vote
1 answer
162 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 ?
user avatar
2 votes
1 answer
532 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: ...
user avatar
0 votes
2 answers
304 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=...
user avatar
0 votes
1 answer
908 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....
user avatar
  • 131
0 votes
1 answer
23 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 ...
user avatar
0 votes
1 answer
218 views

Adminform uploaded file preview

I added file upload input in AdminHtml Block like this below. $fieldset->addField( 'document', 'file', [ 'name' => 'document', ...
user avatar
  • 828
3 votes
0 answers
83 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 ...
user avatar
  • 88
1 vote
1 answer
176 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 ...
user avatar
0 votes
1 answer
21 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->...
user avatar
  • 737
0 votes
0 answers
137 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/...
user avatar
0 votes
1 answer
284 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/...
user avatar
0 votes
1 answer
158 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 ...
user avatar
0 votes
0 answers
83 views

How to add dynamic dropdown in admin form in Magento 2?

Hello I want to add Dynamic dropdown in admin form , I mean to say I want to fetch data from database and show them in dropdown in admin form in Magento 2? I already try it but I got following issue. ...
user avatar
0 votes
1 answer
197 views

Magento 2 How to add Banner attribute

Here I need to add a Banner attribute in Magento 2. Here, On banner edit page I need to add an attribute, but I have no idea how to achieve it. Can I get some help? Thank you in advance.
user avatar
0 votes
0 answers
51 views

Image Not Uploading in custom field in product add/edit(admin side)

I have created a custom phtml file and added in product page add/edit time by the help of below link https://aureatelabs.com/magento-2/how-to-call-custom-phtml-in-admin-product-ui-component-form-in-...
user avatar
3 votes
0 answers
107 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 ...
user avatar
  • 111
0 votes
0 answers
36 views

Add/edit combo box type field on Magento 2 admin form

I need to add a select box with a text box so if any data present then admin can select else can type at the same time like below: plus(+) symbol will override select box to a textbox.
user avatar
  • 749
0 votes
1 answer
141 views

jQuery function call on focus out for form field not working

I have created a Magento admin form with following fields. $skuField = $fieldset->addField( 'sku', 'text', [ 'name' => 'sku', 'label' => __(...
user avatar
2 votes
0 answers
42 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( ...
user avatar
0 votes
1 answer
37 views

how to check admin loggedin or not on frontend magento 2 [duplicate]

how to check admin loggedIn or not on front-end magento 2 .I have tried this class BackendAuthUserLoginSuccess implements ObserverInterface { const DEFAULT_SESSION_NAME_OF_FRONTEND = 'PHPSESSID'; ...
user avatar
  • 188
0 votes
1 answer
52 views

Add a custom input from phtml in admin form

I'm using custom phtml to display some data in an admin Ui form tab, and I want to be able to have a custom input that would get sent to the controller when I hit 'save' ui_form.xml <fieldset name=...
user avatar
  • 81
3 votes
3 answers
584 views

how to make Ui admin form field disable dynamically

I have ui componenet form i want to disable one field dynamically when add only. <field formElement="select" name="classification" sortOrder="40"> <...
user avatar
0 votes
1 answer
207 views

Magento2 : Form Edit UI_COMPONENT showing blank page

I am having a button in my ui_component that open page with form in it to save the data, everything I have done as follows but the page after click on the button is blank nothing showing: Router Files ...
user avatar
0 votes
0 answers
123 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 ...
user avatar

1
2 3 4 5
11