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
0answers
6 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\...
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
33 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
1answer
32 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
19 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
12 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
47 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
29 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
33 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
32 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
27 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
26 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
votes
0answers
41 views

Adding a custom model with product grid in Magento 2.3

I have created an admin form using the UI component in a custom module. I need to add a product grid like in the Catalog -> categories (products in category section). My basic requirement is to ...
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
68 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
35 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
56 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
20 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
25 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
36 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
76 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
16 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
60 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
59 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
21 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
52 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
56 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
70 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
21 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
30 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
217 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
79 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
105 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
107 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
43 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
76 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
40 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
2
votes
4answers
320 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
28 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"?&...
1
vote
1answer
404 views

Magento 2 How to set value to UI component hidden field using Jquery or Javascript

I want to fill value in to ui component hidden field using Jquery or Javascript. Below is my code. Namespace/Modulename/view/adminhtml/ui_component/sampleimageuploader_image_form.xml <field ...
1
vote
1answer
221 views

How to make custom html form in Admin in Magento 2?

I want create custom html form in Magento 2 - Admin Panel Where from block i can save all form data in new database table. Drop-down 1, Drop-down 2, Price text-box 1, Price text-box 2, Price ...
2
votes
1answer
116 views

Magento 2: form & grid components on one page

I want to create smth like this in adminhtml: This page contains form to type customer ID & grid to display downline data for the customer. This is my description of the form component: ./...
5
votes
1answer
196 views

How to add form element CANVAS using ui component magento admin form

I want to add Canvas field element using UI component admin form. My requirement is i have a ui component form i want to add Canvas field. check below screen shoot. As per above screen-shoot i ...
1
vote
0answers
22 views

Use a Data Grid Table to assign values to an EAV attribute in admin

I have a custom attribute for Catalog Categories that represents the IDs of products associated with the category in question (this is a separate requirement from the usual association of products and ...
0
votes
2answers
46 views

In Magento 2, How to use multiple dependencies for admin form

In Magento 2.2.5, I want to use the select and text fields. That fields should show based on the another select (dropdown) values. ie., if value 1 means, should show select field, if the value 2 ...
0
votes
0answers
50 views

Magento admin form select type dependency field

In Magento 2.2.5, I am trying to add dependency field for the admin form dropdown (select type) dependency field. I am followed this ref. It is working for text type field dependency. But not working ...
1
vote
0answers
23 views

I have created one field using product form field for my price i want save my field value at product creation time from backend magento2

I have created Custom form field for product creation and edit time, i want save my price.i have created one new tab for product form .i want save my custom price same as price option. my input field ...
0
votes
0answers
42 views

Admin form Save button is not working

In Magento 2, I have admin grid edit form. In that save button is not working. Here is my code: https://pastebin.com/6ADc9657 https://pastebin.com/VJiKnShj
0
votes
0answers
26 views

Magento Create from inside the admin grid edit form save

In magento 2, I want to create a form in the admin grid edit save action with another save button inside. How to achieve this. Reference:
0
votes
0answers
34 views

Magento 2 set password to customer backend

Magento 2 by default does not allow creating and editing customer’s passwords in back-end. Instead, it automatically sends the link to customer's email and then the customer can set the passwords by ...