Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [adminform]

A form visible in admin area of magento.

1
vote
0answers
24 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 ...
0
votes
0answers
24 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
15 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
26 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
41 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
32 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
21 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
103 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
votes
0answers
21 views

How to create array field's in magento 2

I am creating a custom form in which I want to add Add more button to add new fields and store information in table.
-1
votes
0answers
8 views

Multiple forms on same url

I am new to Magento forms. I have used Magento module creator to make a new model, with grid to display items and edit form. I want to add a second tab to the edit/new form, but I want it to use a ...
1
vote
2answers
23 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
66 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
62 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
35 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
51 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
29 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
1
vote
2answers
92 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
24 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"?&...
0
votes
0answers
31 views

Create custom extra new field in Magento 1.9 admin panel

I am new to Magento. I am trying to add one more field to upload aadhaar image.I tried doing it by adding attribute but it didn't work.Also I tried to duplicating the below code in here /app/code/...
1
vote
1answer
190 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
105 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
45 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: ./...
4
votes
1answer
68 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 ...
0
votes
0answers
21 views

Invalid template file in Magento 2

I'm trying to have an admin form which compose of country region. I want to create an updater for region so that the option will be refreshed based on the selected country. In my "_prepareForm" ...
1
vote
0answers
20 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
32 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
28 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 ...
0
votes
0answers
39 views

How to add required field validation for a form field in admin in magento 2?

In Admin side PHP Form, I have added a column as: $fieldset->addField('media_gallery', 'note', [ 'label' => 'Media Gallery', 'title' => __('Media ...
1
vote
0answers
19 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
37 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
22 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
33 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 ...
2
votes
1answer
38 views

Magento 2.2.5 custom js not working when I call it from phtml file using uiComponent

I have created admin form using uiComponent. I have called phtml file using <htmlContent name="html_content"> in xml file. I tired to call custom.js using below code but its not working. <...
4
votes
1answer
315 views

Dynamically add form fields using Ui component on click of Add More button in custom admin module

I have created a module which allows to add items dynamically from admin panel configuration. I have created form using ui component and want to add 3 fields dynamically on click of "Add More" button. ...
1
vote
2answers
33 views

Magento 2 : Edit id name alias

How can I change the admin edit id name like if I want to change xx_id to id in a Ui component form in address bar? http://localhost/Magento225/admin/vendor/module/edit/xx_id/1/ To: http://...
0
votes
0answers
12 views

2 Different keys are being genereated, Admin Grid action column-> edit link and page created after clicking save and continue butotton

I have created a Module, I created an admin grid and crud operations. All are working fine when I disabled secret key form store configuration. In show secret key in url my Edit action and Delete ...
0
votes
1answer
306 views

Magento2 admin grid ui component form hide multiple fields based on php condition

I have so many fields in my admin grid form which made using UI component. I want to hide some of the fields using php condition. I know that it can done using DataProvider file and I also followed ...
2
votes
1answer
132 views

Hide/show admin form field on toggle value using UiComponent in Magento 2

I want Hide/show admin form field on toggle value using UiComponent. when enable the toggle fields should be visible and on disable the toggle fields should not be visible. Example: [When enable the ...
5
votes
4answers
488 views

How to set default text field value in form Magento 2

I want to set field value of form field in Magento 2. Actual Result Expected Result I have added required code here which are available in my Form.php <?php namespace Magenest\Membership\Block\...
0
votes
0answers
12 views

Add a field on click of button

I want to add new field textbox on click of a button. This should happen on the admin form page. The Admin Form is created using Ui form. How can i do it.
0
votes
0answers
15 views

How to add javascript for form.php block class

I have created a form on admin side using the block class. Now i want to add a js file to this form how can i add this here is some few code $form = $this->_formFactory->create( ...
0
votes
1answer
45 views

Magento 2 User Admin image upload $_FILES empty

I'am trying to add a field to upload image for specific user. I add field but problem is when I try save User. Image isn't uploaded and I got exception that $_FILES is empty. I followed these ...
1
vote
0answers
14 views

Change tab content with dropdown value?

I'm building a module, where the user can fill his homepage with blocks from the backend. All blocks are taken in an admin grid ui compontent, and there's 3 different kinds of blocks to choose from: ...
0
votes
1answer
286 views

Insert Product Grid in custom module form uicomponent

I am developing a custom module for Magento 2.2.x which should allow users to associate products to custom entity. What I would like to do is to show a product grid in the edit form of the custom ...
0
votes
0answers
32 views

How to create search select box using block class

I want to create a select box like the below I know this can be done using Ui components, but i want it to be done using form.php class (block class) Currently i am just using the simple select box ...
3
votes
1answer
248 views

Magento2 not getting post data from ui component phtml file

I have implemented admin form using UI component. In that, I have 3 separate tabs. Among 3, I have displayed one tab using custom phtml file by using following code in ui component form xml file <...
2
votes
2answers
43 views

Edit action is not working properly for a custom module at admin on mageno 1.9

I am trying to implement a module in Magento 1.9. I am new to it. Edit action on the admin side is not working. Whenever I edit a field, the original remains the same and another entry gets created ...
0
votes
0answers
42 views

How to add options column in existing admin grid in Magento 2

I tried to add a custom column in existing admin grid. I have added a field in form. <field name="used"> <argument name="data" xsi:type="array"> <item ...
0
votes
0answers
19 views

How to make file field required pass when submit even it existed value

Today i have faced issue with form contain field file when trying edit form This field is required. But i found my form can't submit even file have value. It keeps raise error validate "Please select ...