Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [adminform]

A form visible in admin area of magento.

1
vote
1answer
24 views

Home to make a Multi Level Field Dependency in Admin Form Magento 2

I have 3 Field type Display On Container the visibility of [Display on , container] depends on value of type field value of [container] depends on value of [Display on ] on field I have tried this ...
0
votes
0answers
26 views

Magento 2 - Hide or remove category form after verification on admin

I want to hide OR remove category form after a verification So, I succeed to hide it by creating category_form.xml on view\adminhtml\ui_component <fieldset name="general" sortOrder="5"> &...
3
votes
2answers
121 views

Magento 2 Can't get the sales rules conditions in my ui form submit

I have a UI form which contains 2 fields one is 'name' and the other is the 'conditions'. I have tried the below code to display the conditions section and it is working fine. But I did not get the ...
2
votes
0answers
16 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=...
2
votes
1answer
21 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( ...
0
votes
0answers
13 views

Show Block class image upload to Ui form image upload

How can i change from this To this My Code to create image upload is below. I don't want to create the form with UI component but i want to make the image upload like it. $fieldset->addField(...
1
vote
1answer
22 views

Magento 2 create admin form selected option depend on another selected option

I have created an module for admin which have admin form and this form have some fields.I have two select option drop down fields.If I choose first dropdown option value then second drop-down display ...
0
votes
0answers
16 views

Magento 1.9 add custom field to multiple templates

I have a custom field that I would like to add to all areas in the admin panel where you can change the quantity of a product. I currently am of the impression that I have to rewrite each template ...
1
vote
1answer
29 views

Drop Down Multi-select category Ui Component

I am using this code to create a multi-select category option in a form. It saves the data in the table correctly but when I try to edit it, it shows the selected category name in the field but doesn'...
0
votes
0answers
21 views

How to duplicate Use Default Value checkbox functionality?

I want to set up on a product (admin editing form) whether or not an attribute should or should not be displayed on the product view page. I was thinking of adding a checkbox (something like Use ...
1
vote
1answer
35 views

Custom Admin Edit form not displayed

I have created a custom module using \Magento\Backend\Block\Widget\Form\Container form with Magento2.3 and I am facing issue while edit form is not showing in Magento Cloud, But local environment is ...
1
vote
1answer
32 views

Magento 2 Add category chooser without UI component

I am trying to add category chooser in my custom admin form without ui component but unfortunately I am getting error in system.log [2019-03-22 09:27:47] main.CRITICAL: Vendor\Module\Block\...
0
votes
0answers
33 views

I am trying to Create a product Grid in My custom Module Admin Form

I am trying to add a product Grid in My custom Module I searched a internet and found this Solution Magento 2 : How to add product grid in custom module's tab Now there is a function in this ...
2
votes
0answers
19 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...
0
votes
1answer
45 views

How to add custom filed type in admin form in magento 2? time range picker

I want to create the custom time range picker type in Magento 2 admin form like below image
1
vote
2answers
43 views

M2 Custom Extension 404 save error

I'm trying to write a fairly simple extension that can save data to an admin grid. I've been using the Magento CMS module as an example of this, I have my grid, I can click new and enter data, but ...
1
vote
1answer
30 views

How to post data when clicking custom ui component button?

I am using ui-component form edit and would like to add custom button "customButton" with all post data. However, it doesn't post any data except form key. My code $data = [ 'label' =&...
1
vote
0answers
21 views

Display Multiple Images In Admin Edit Form Magento 2

Display Multiple Images from database in custom admin edit form This Is My Form.php file <?php namespace Magneto\AppNotification\Block\Adminhtml\Form\Edit\Tab; use Magento\Backend\Block\...
1
vote
2answers
204 views

How to create a dynamic fields in admin form?

I want to add add new button template in admin form like this... How to do that? Thanks.
1
vote
1answer
37 views

How To Fetch all customer name in multi select in custom admin form

I Want To fetch all customer name in multi select in my form using customer collection Following is my form file <?php namespace Magneto\AppNotification\Block\Adminhtml\Form\Edit\Tab; use ...
1
vote
0answers
36 views

Unable to create admin form using layout

This Is Edit.php file Magneto\BookFreeLayout\Block\Adminhtml\Demo\Edit.php <?php namespace Magneto\BookFreeLayout\Block\Adminhtml\Demo; class Edit extends \Magento\Backend\Block\...
3
votes
1answer
129 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:
1
vote
0answers
52 views

How To Add Custom Data Into Product Edit Form DynamicRows Ui Component

I need to know how to populate a dynamicRows ui component I have added to the product edit form in Magento 2. I've got the data coming from a custom table and the data is getting through. I have the ...
1
vote
2answers
102 views

How can I manage admin form via template in Magento2?

I have a phtml file having an HTML form, I want to use it as an admin form. To manage admin form magento2 either uses "UI Component" or "_prepareForm()" block method. I've created a module using ...
1
vote
0answers
28 views

In app/code/User/Customdata/Block/Adminhtml/User/Edit/Tab I have create 3 more php file in this tab

In app/code/User/Customdata/Block/Adminhtml/User/Edit/Tab I have create 3 more php file in this tab. I want to call all file in Main.php file in edit form in Admin. but file is called and data also ...
2
votes
2answers
109 views

display uploaded image in admin grid in magento2

I want to display an uploaded image in admin grid which is uploaded through a form <column name="image"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="...
0
votes
0answers
37 views

Magento 2 : How to save dynamic form data?

I am developing custom extension and add below form builder in admin side grid. https://alloyui.com/examples/form-builder Now I want to display this dynamic form in front end side but I do not know ...
1
vote
1answer
71 views

How to configured Form Builder Js in my custom magento 2.3.0 module?

How can I configure below "Form builder js" in Magento 2.3.0 custom extension? https://github.com/dobtco/formbuilder I want to use this js in my custom Extension's form in the admin side.
0
votes
0answers
23 views

Can't get a time field value in admin form

Did anyone ever do this, I have different time fields in admin form, all works fine (attributes, save etc...) except the edit, I can't retrieve the time value. On saving, the value is well saved, In ...
0
votes
1answer
36 views

Show and Hide Product Grid in custom module Magento 2

I have created a drop down field. When I select 1 option from field I want to show the another field and along with that I want to hide product grid. Same as when I select 2nd opinion, I want to show ...
2
votes
0answers
37 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)
0
votes
2answers
145 views

Change the width of Field Ui Component Magento 2

How do i change Field With in UI Component Form in Admin Side. I used id to change the width but didn't worked. <field name="percentage"> <argument name="data" xsi:type="array"> ...
0
votes
0answers
19 views

Adminhtml form how to post and save image data

Trying to customize my module a bit but I'm stuck. My custom form won't send any information about attached images or files, regardless of what I'm doing it just does not send anything except text, ...
1
vote
0answers
111 views

Magento 2.3.0 How to display only product attribute in custom rule condition into the custom admin form using the ui component

I have implement custom condition Rule to my custom module Take refrance from this link and it is working fine. But it is display also other rule like cart attribute, customer attribute, other ...
2
votes
1answer
234 views

Magento 2.3.0 While edit UI component form data not filled up in custom module

I have created a custom module using UI component form and i am facing issue while edit form data is not showing. Below is UI form code with given path. /app/code/Namespace/Modulename/view/...
0
votes
0answers
82 views

Add Custom Product Form Custom Data Source Without Overriding Product Data Source

I've added a dynamic rows element which is populated from a custom table. This is working fine but the datasource for this ui component overrides the default product data source and the default ...
0
votes
1answer
85 views

Dynamic Rows can not delete in edit form in admin magento 2

I have created custom modules with Magento 2.2.6 and there is dynamic rows added in custom module UI component form. Admin can add/delete dynamic row in new form. but admin can not delete dynamic rows ...
2
votes
1answer
72 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 ($...
1
vote
0answers
112 views

How to set ui form field value with url-param when loading edit new page

I want to set a field value from url params in an input field when I load the admin edit new page. The value for the field "material_id" is a parameter in my url. This is my ui_component: <...
0
votes
0answers
22 views

Set form values with javascript: not saved

in my admin edit form I set an input field value with a javascript function. The function works and the value is displayed in my input field. My problem is, that when I save the edit page, Magento ...
0
votes
1answer
40 views

Add button in Magento2 Edit Form

i create field product ulr and create button in my custom module in magento2 admin now i want if we write producturl in the text box and presss button its redirect to the url how i do that. $fieldset-...
1
vote
1answer
303 views

Magento 2.3 admin custom form ajax not working

Custom form ajax submit data not working in magento 2.3 its working with magento 2.1 and 2.2.x versions. Error 401 (Unauthorized) Failed to load resource: the server responded with a status of ...
1
vote
2answers
208 views

How to include custom JS to admin create new product in magento 2

I want to include custom JavaScript to create new product form. I already try with below way Using XML way. app/code/Namespace/Modulename/view/adminhtml/layout/index_index_add.xml <head> ...
4
votes
1answer
167 views

Magento 2 How to remove default website checkbox checked while add new product?

Magento 2.2.5. I have set up a multi website and it is working fine. My problem is when admin create any new product Product in website field default website selection checkbox is checked by default....
0
votes
1answer
176 views

Magento 2.2.5 Wysiwyg editor Error : Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded

In my custom module, I integrate Wysiwyg editor to admin form and it is working fine. but when I insert the external image path to the editor then it will show below error. error: error in [unknown ...
1
vote
1answer
47 views

How to create custom admin page with a form in magento2 admin side?

I want to create an admin side custom page with a form, also want to save those fields into a custom table
0
votes
2answers
139 views

Magento 2 Can't submit custom form with custom controller-action in admin order detail page

I am creating custom form in admin order detail page with form action as like below but it's redirecting to Dashboard from my action with 302. My script is: sales_order_view.xml <?xml version="1....
1
vote
0answers
65 views

Magento2 How to get the category collection as tree structure under multiselect field programmatically.?

I want show category collection as tree structure for custom multiselect field at admin end as reference like below
3
votes
4answers
437 views

Magento 2.2.6 How to add TAB structure in admin UI component form

I am trying to create a TAB in admin UI component form in my custom module, TAB is showing but page is loading continuously, please see attached screen-shoot. Here is my code. Namespace/...
0
votes
0answers
41 views

Magento 2 Can't add new tab in product page in admin

I am trying to add a new tab in the product page in admin but it's no appears in the product page. The code is: Vendor\Demo\view\adminhtml\layout\catalog_product_edit.xml <?xml version="1.0"?&...