Questions tagged [adminform]
A form visible in admin area of magento.
189
questions with no upvoted or accepted answers
8
votes
0
answers
1k
views
Magento 2 : Not getting the product grid in a custom form using UI component
I want to show product grid in admin form using UI component, for that, I have added the following code in product_form.xml
<fieldset name="assign_products">
<argument name="data" ...
7
votes
2
answers
1k
views
Multiple Image browse in custom admin form Magento 2
I have created a custom form in the backend and it is working fine for single image browse. If I select only one image then it is working fine. My requirement is, I want to select multiple images with ...
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 ...
6
votes
0
answers
1k
views
Magento 2: Sales rules in custom ui form is empty on editing
I am working on extension in which i have add sales rules conditions in my ui form. I am storing as serialised condition. it saves perfectly. However, i am getting empty field during edit form.
This ...
5
votes
0
answers
633
views
Magento 2 : Not able to save admin form after adding multiple tabs
I have created an admin form with 2 tabs. 2nd tab contains product grid. Before adding tabs save button works perfectly but now getting an error
TypeError: $.data(...) is undefined
and I'm not ...
5
votes
0
answers
1k
views
How to make country_id/region_id/region to work in custom admin form?
I need country/region fields in custom form in admin panel. I have following fields:
<field name="country_id">
<argument name="data" xsi:type="array">
<item ...
4
votes
0
answers
88
views
How Can I add a custom dropdown type field at the admin create order billing form in magento2
I want to convert the city text field in the dropdown field at the admin create order page. I had done the same thing in customer checkout using the Layououtprocessor plugin. Also, I did the thing in ...
4
votes
0
answers
1k
views
Magento 2: How to link an admin form and list UI component via insertListing?
I've created an admin form UI component for an entity that I've created: Vehicle. The idea is that you can create/edit vehicles in Magento, and then assign them to products via a list component (...
4
votes
0
answers
369
views
Add Product Selection to Admin Form
I have developed a module for Magento 2 for Promotions.
I have a form for this which is working and contains basic information:
Title
Description
Price
Start Date
End Date
I now need to add "...
4
votes
0
answers
449
views
Show/Hide dependent attribute field on toggle attribute field of product add/edit admin form into Magenot 2
As per the requirement, I have created 2 product attribute into magento 2 admin. First attribute is toggle(Yes/No) attribute and Second is Text attribute which is dependent on First attribute. Now I ...
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 ...
3
votes
0
answers
44
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=...
3
votes
2
answers
2k
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:
3
votes
1
answer
210
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.
<...
3
votes
0
answers
60
views
Magento 2.2 : uiComponent Form : show images in a field
I would like to show images in a field without having uploader button. I have images name in the DB column. How could i use a renderer for the field or any other way to do this?
3
votes
1
answer
953
views
How Do I Add Styling Or Groupings To Widget Parameters?
I have a custom widget with various parameters. Is it possible to style or add grouping, headings, fieldsets, basically anything to give some space and separation to the numerous parameters?
My ...
3
votes
0
answers
344
views
Magento-2 : Add "Use Config Settings" check-box to custom block form
I have custom admin form and want to show "Use Config Settings" check-box to just under form field.
For Example,
In product edit page, If you open "Advanced Inventory" link, you will see "Use Config ...
3
votes
0
answers
549
views
Magento 2: Ajax call to customer edit form for dependent dropdown
I have created two attribute for customer as "Restaurant" and "Stores". Currently I am getting data from their respective model collection through InstallData.php in customer add/edit form. Now I want ...
3
votes
0
answers
1k
views
How can create custom cart price rule for Custom Module in Magento 2?
I have a need for cart price rules in my custom module..anyone knows that how to add code in Form.php?
Look Like That.
2
votes
0
answers
836
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 ...
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(
...
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 ...
2
votes
1
answer
252
views
Multiple form in admin form Magento 2
I'm using magento 2.3.4, I have a database structure like this:
//event
|event_id | name |
+---------+-------+
| 1 | Art |
| 2 | Expo3 |
// score
| event_id | judge | score |...
2
votes
1
answer
470
views
How to add customer Attribute inside custom tab section insted of "Account Information" in magento 2?
I have created customer Attribute programmatically and need that attribute to outside of "Account information" tab... means in custom tab.
I have tried with customer group.... ui component file as ...
2
votes
1
answer
648
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(
...
2
votes
0
answers
69
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...
2
votes
0
answers
68
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)
2
votes
1
answer
253
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 ($...
2
votes
0
answers
512
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
...
2
votes
2
answers
138
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 ...
2
votes
1
answer
3k
views
How do I change date picker format for admin date field
How can I change the date format to display as dd/mm/yyyy for admin date field?
Currently it is displaying as mm/dd/yyyy format. Can you please help me out?
2
votes
1
answer
126
views
JS error with saving admin side form data
In the custom module with grid i am getting error as following :
TypeError: $.data(...) is undefined
in magento 2 admin form in tab
It was working perfectly without tab and saving form data in ...
2
votes
0
answers
107
views
Magento 2 : I have add new field to cusotmer group but value not save
I have add new custom fields to customer group (adminhtml) but value not save.
For add new field into customer group I have override below file:
Block/Adminhtml/Group/Edit/Form.php
$form = $this-...
2
votes
0
answers
298
views
Two checkbox filed column for admin form grid
I would like to make more then one checkbox for grid in custom form. and grid checkbox value should be passed through form.I have implement it in form grid but it has problem when i click on first ...
2
votes
0
answers
2k
views
How do I add a submit button to a UI Component Form?
I'm building a custom form in the admin using the UI Form Component, and configuring it in [my_module]/adminhtml/ui_component/form.xml. I have the fields working, but would like to add a 'submit' ...
2
votes
0
answers
1k
views
Magento 2 Admin Form Field
To create form in admin magento is now using the same UI component as it use it for grid.
I have one select which will have its dependent elements.
How can I achieve this in ui component
<field ...
1
vote
1
answer
28
views
Magento 2 InsertForm component in to the UI form component not show form buttons
I added form to admin modal with InsertForm UI component based on documentation. https://developer.adobe.com/commerce/frontend-core/ui-components/components/insert-form/
Unfortunately this not show ...
1
vote
0
answers
26
views
How to save empty decimal admin form field not as 0.00 but as null in database?
I have an Admin Grid with one column named min_weight. This column has the datatype decimal (5,2) in the database. The default value for the column is NULL.
If I try to save an entry with the Admin ...
1
vote
0
answers
79
views
adminhtml form ui_component fields not rendered
I have created a form using ui component. But the form fields are not being rendered in the admin backend, other Save button and left tab is displayed.
The ui_component XML:
<?xml version="...
1
vote
1
answer
206
views
Magento2 How to upload excel file in adminform using uicomponent
I need to create a button in custom form to upload the excel file. while saving the form need to save the excel data into custom table.
Can anyone have idea about this.
Please let me know.
1
vote
0
answers
163
views
Submit button in custom admin form using ui component
I want to write a custom module to export product data and I have a problem with a custom admin form using ui components. It will only have one simple select input with stores id and export button and ...
1
vote
0
answers
12
views
Verify that terms of use that are in a different tab are checked before form is submitted
In the add a customer form in the admin site I added a tab (consents) that has the terms of use and they are required, but if the person does not click into the tab then the form is submitted even ...
1
vote
1
answer
69
views
Magento2: Multiple image upload in Admin Form
I am not using the UI component.
And I want to convert the below code in Form.php
<fieldset>
...
<field name="imageUploaderExample" formElement="imageUploader">
...
1
vote
0
answers
661
views
How to add a input field in admin grid and post it using mass action- Admin Panel
The question is how to get the input data in mass action.
I have currently added a input field in the admin grid. Like this:
I have added the input field using the block. I want to post that values ...
1
vote
0
answers
150
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 ...
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 ...
1
vote
0
answers
537
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 ...
1
vote
0
answers
407
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
<...
1
vote
1
answer
222
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',
...
1
vote
0
answers
153
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->...