Questions tagged [adminform]

A form visible in admin area of magento.

Filter by
Sorted by
Tagged with
0 votes
3 answers
471 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', ...
Krupali's user avatar
  • 1,140
5 votes
1 answer
1k 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:...
Siranjeevi K S's user avatar
1 vote
1 answer
533 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 ?
Learing_Coder's user avatar
2 votes
1 answer
1k 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: ...
Siranjeevi K S's user avatar
0 votes
2 answers
737 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=...
Richard Parnaby-King's user avatar
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....
Abhishek's user avatar
  • 131
0 votes
1 answer
33 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 ...
ActionJackson's user avatar
0 votes
1 answer
648 views

Adminform uploaded file preview

I added file upload input in AdminHtml Block like this below. $fieldset->addField( 'document', 'file', [ 'name' => 'document', ...
Ramesh KR's user avatar
  • 836
3 votes
0 answers
171 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
  • 118
1 vote
1 answer
438 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
0 votes
1 answer
104 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->...
Claims's user avatar
  • 1,049
0 votes
0 answers
363 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/...
quickshiftin's user avatar
0 votes
1 answer
599 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/...
quickshiftin's user avatar
0 votes
1 answer
691 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 ...
Neul Hoàng Trần's user avatar
0 votes
0 answers
165 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. ...
Vardhman Kamani's user avatar
0 votes
1 answer
441 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.
Praveen Negimani's user avatar
0 votes
0 answers
74 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-...
Pushpendra Singh's user avatar
6 votes
0 answers
271 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
  • 141
0 votes
0 answers
90 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.
Yogita's user avatar
  • 784
0 votes
1 answer
312 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' => __(...
Venkata Subbarao's user avatar
2 votes
0 answers
76 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
0 votes
1 answer
55 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'; ...
aich.khalid's user avatar
0 votes
1 answer
561 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=...
Badong's user avatar
  • 91
4 votes
3 answers
1k 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"> <...
Mage2 Beginner's user avatar
1 vote
1 answer
542 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 ...
Shoaib Fareed's user avatar
1 vote
0 answers
533 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
0 votes
1 answer
80 views

load image in imageUploader. admin form

<field name="image_upload" sortOrder="40" formElement="imageUploader"> <argument name="data" xsi:type="array"> <...
mendz's user avatar
  • 143
1 vote
1 answer
404 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?
Smita Kagwade's user avatar
0 votes
1 answer
223 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 ...
blue's user avatar
  • 118
0 votes
2 answers
430 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( '...
Praveen Negimani's user avatar
0 votes
0 answers
1k 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 ...
Pawankumar's user avatar
1 vote
3 answers
2k 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 &...
Zaheerabbas's user avatar
  • 2,068
2 votes
0 answers
22 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
0 votes
1 answer
79 views

Checkboxset element in form - not posting values of Field

I have begun creating a custom form for magento, this form include the elemenet checkboxset as documented here... https://devdocs.magento.com/guides/v2.4/ui_comp_guide/components/ui-checkboxset.html ...
NetStorm's user avatar
  • 108
0 votes
0 answers
348 views

How to add search filter drop down in admin block form in magento 2?

Here is my admin field code $fieldset->addField( 'topic_id', 'select', array( 'name' => 'topic_id', 'label' => __('Select ...
Jay Parmar's user avatar
0 votes
1 answer
382 views

Admin page Problem after upgrade from magento 2.3.5-p1 to magento 2.3.5-p2

After upgrade from magento 2.3.5-p1 to magento 2.3.5-p2 when I try to use the admin panel almost all menu button not responding. only the Dashboard button working. I dont get any error in logs. I also ...
kobi077's user avatar
  • 49
0 votes
1 answer
178 views

How to reduce product description and short description input field height in the backend?

Im using magento 2.3.4 and when i want to add/edit new product by default the product description and short description height is set too much like this: how can i reduce this?
jojo's user avatar
  • 149
1 vote
0 answers
406 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,550
1 vote
1 answer
221 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
152 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
38 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
1 vote
3 answers
762 views

Magento 2 - Custom Grid Action 404 error Add Action Throws 404 Error

i Develop Simple Crude Operation Module That Throws 404 etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Jay Parmar's user avatar
1 vote
0 answers
185 views

How to add dynamic row in grid edit form in custom module in magento 2

can any one idea for how to add dynamic row in add grid data form in Magento 2 I want to manage the app screen section for example in one section i add multiple banner data so how can i mange it i ...
Jay Parmar's user avatar
1 vote
2 answers
2k views

How to pass Data from a UI Component Form to a Controller?

Hey I'm beginner at Magento 2, and i don't know to much about UI component... I'm creating a register form, and i want to pass Data of a UI Component Form to a Controller. So i have a Form and i got a ...
Rafael Fagundes's user avatar
1 vote
2 answers
735 views

Why the button doesn't working on a UI Component Admin Form?

I'm trying to create a Button Field on a UI Component Admin Form but it looks like it's not calling the Controller. It doesn't call the custom controller,But it works when i call the defaults of ...
Rafael Fagundes's user avatar
1 vote
0 answers
204 views

How to create "Delete And Continue" button on UI Component Form

I'm new at Magento 2, and I'm trying to create a custom button on an UI Component form. But I don't know what to put in the "actionName" field of the button. When I put the "save, back, ...
Rafael Fagundes's user avatar
0 votes
1 answer
49 views

Admin ui form category tree population issue

I've got an admin ui form with category tree field https://github.com/DominicWatts/Announce/blob/429e2f6228b5911f261df6f6855d76913c934f9a/view/adminhtml/ui_component/xigen_announce_group_form.xml#...
Dominic Pixie's user avatar
0 votes
1 answer
143 views

Admin form not pulling through form values when turning collapsible to tabbed form using ui form xml

I'm working on an admin ui form https://github.com/DominicWatts/Announce/blob/hotfix/tabs/view/adminhtml/ui_component/xigen_announce_group_form.xml I've added tabs In order to get the tabs working ...
Dominic Pixie's user avatar
0 votes
1 answer
936 views

How to pass id from ui_component to model?

I have a form, see image below. I have the following data in the database, see image below I originally wanted to have the structure like below in the custom table > id | meta_key | ...
Absolute Idiot's user avatar
2 votes
1 answer
447 views

Magento 2: Custom field Dropdown options admin form always empty

I'm using magento 2.3.4 and I tried to create a custom form with dropdown options like this: <field name="year"> <argument name="data" xsi:type="array"> <...
jojo's user avatar
  • 149

1
2
3 4 5
12