Questions tagged [adminform]

A form visible in admin area of magento.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 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 ...
0
votes
0answers
9 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 ...
0
votes
2answers
24 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 <?...
1
vote
0answers
36 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
1answer
37 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. ...
0
votes
0answers
16 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 ...
0
votes
0answers
35 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
0answers
20 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 ...
0
votes
3answers
31 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', ...
2
votes
1answer
75 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
1answer
26 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 ?
1
vote
1answer
118 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
0answers
10 views

mamgento 2 addfield multiselect highlite selectd values

Hi created multiselect field in my custom module in that selected only two values database having basics[product_type_category] =>Basics,Compact when i click on edit particular id need to ...
0
votes
2answers
117 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
1answer
122 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
1answer
20 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
1answer
31 views

Adminform uploaded file preview

I added file upload input in AdminHtml Block like this below. $fieldset->addField( 'document', 'file', [ 'name' => 'document', ...
3
votes
0answers
50 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 ...
0
votes
0answers
34 views

Admin order view custom form

I want to create a custom radio button in the admin order view. I managed to create installschema and the block itself in the order view but I don't know how to save and retrieve that data. Here's ...
0
votes
0answers
14 views

How to redirect to the same page after form submit in sales order view?

I am creating a custom form in a custom tab of Sales Order View. When I click on Use Template button, it redirects me to Page Not Found 404. I want to show a success/fail message and redirect to same ...
0
votes
1answer
83 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
1answer
20 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->...
0
votes
0answers
70 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
1answer
134 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
1answer
29 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 ...
0
votes
0answers
43 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. ...
0
votes
1answer
107 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.
0
votes
0answers
37 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-...
0
votes
0answers
46 views

Magento 2 UI component Auto selected values are not populating

I have developed custom admin form by using UI component. Form is working good and saving the values in custom table.After saving the values, form should automatic prefilled with table data, but its ...
0
votes
0answers
19 views

How to add custom tab in custom module in magento 2.3.1

How to add Fields Tab custom module in magento 2.3.1 ui component. Please check screem short
0
votes
0answers
63 views

how can I make website field required in product form magento 2?

I would like to prevent users from saving a product without first assigning a website to them. I was thinking I need to customize the product_form.xml ui component however I can't find any reference ...
1
vote
0answers
33 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 ...
0
votes
0answers
18 views

Product Form SEO URL KEY even listener

When I am adding a new product, Then, Search Engine Optimisation fields: meta title, meta description, meta keywords have an event listener which fills in these fields when the user types in the ...
0
votes
0answers
23 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.
0
votes
1answer
55 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' => __(...
3
votes
0answers
38 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( ...
0
votes
1answer
28 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'; ...
0
votes
1answer
27 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=...
3
votes
3answers
191 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"> <...
0
votes
1answer
58 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 ...
0
votes
0answers
43 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 ...
0
votes
1answer
35 views

load image in imageUploader. admin form

<field name="image_upload" sortOrder="40" formElement="imageUploader"> <argument name="data" xsi:type="array"> <...
0
votes
0answers
9 views

Err : Access denied image field in form

I have a BO form, I've been adding some fields it works fine. But since I tried to add an 'image' field, I'm taking an access denied error and in fact this happen even before I hit my controller (...
1
vote
1answer
61 views

Magento 2 Add customers grid in custom admin form

I want to show customers grid in our custom admin form where I can select a particular customer so how to get this customer grid list in our form?
0
votes
0answers
6 views

Using several fieldsets in an admin form

I'm trying to build an admin form with several fieldsets. One thing I noticed is that the fileds only get populated when the fieldset name is equal to the key returned in my DataProvider, which ...
0
votes
1answer
47 views

Magento 2: How to Change fieldset accordion in product edit page to tab in backend?

I have a lot of product attribute set in the backend , and it is not convenient to scroll all the way down to edit product page information, How can i change the accordion in the product edit backend ...
0
votes
2answers
71 views

Magento 2 How to hide or show contents based on drop-down content in Admin page

Here am added a dropdown for a list of type. based on selected type I need to show or hide the another field. how to achieve it. Here is my code. $mainTypeField = $fieldset->addField( '...
0
votes
1answer
212 views

Magento 2 admin form save button not working in custom module

Magento 2 i have created admin grid and form. when i am trying to add new data save button not working add new->new form ->save and continue , save both not wokring below is my code <?php ...
0
votes
2answers
224 views

Dynamic row in magento admin form with generic class

I am trying to add dynamic row using generic form class and it show like below. But the problem is that this value is not posting data. Here is how i have implemented this. DynamicDiscount.php &...
2
votes
0answers
12 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 ...

1
2 3 4 5
11