Questions tagged [adminform]
A form visible in admin area of magento.
551
questions
1
vote
0
answers
834
views
Enable/Disable field in admin product edit form with radio button. (Magento 2)
I try to enable "Field to be enable" when radio button "Enable field" is checked. You can see screenshot
field to be enable
UpgradeData.php
$eavSetup->addAttribute(
\...
4
votes
0
answers
363
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
448
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 ...
4
votes
1
answer
958
views
Move Customer Extension Attribute to new tab
I've successfully created several customer extension attributes that display on the customer form and save and load data.
When I try to move these fields to a new custom tab on the customer admin ...
0
votes
2
answers
1k
views
Magento 2 Get data to admin UI Form without key and collection
Is there a way to get data from a DataProvider to my UI Form component, without having a collection or a key?
My DataProvider currently only has a "getData" function and the form is rendered, but I ...
0
votes
2
answers
5k
views
Magento 2.3. How to create image upload field in an admin form
I want to discribe How I have created image upload field in an admin form.
My module's name is Paracrab\Banners
Firstly You should add field in Paracrab/Banners/view/adminhtml/ui_component/...
0
votes
1
answer
1k
views
Magento 2 : Added field for video, music ( mp4 , mp3) upload in admin form
I try to upload image, video or music player, for that I use $uploader->setAllowedExtensions(['mp4', 'mp3', 'jpg', 'jpeg', 'gif', 'png' ]);
, but it doesn't work. Anyone have idea about this problem? ...
0
votes
1
answer
604
views
Magento 1.9 Admin Form
I'm tryng to add an admin form with no success.
To do this i use a controller.
If I add this code to the controler:
public function indexAction() {
$this->loadLayout();
$this->...
4
votes
1
answer
2k
views
multiselect form field not saved to database in magento 2
I have created a custom admin form.
$fieldset->addField(
'core_units',
'multiselect',
[
'name' => 'core_units[]',
'label' => __('Select Core units'...
1
vote
2
answers
2k
views
Add select options dynamically to admin form in magento2
I have created a model.
$fieldset->addField(
'test1',
'text',
array(
'name' => 'test1',
'label' => __('Test 1'),
'title' => __('...
0
votes
2
answers
2k
views
Magento 2: How to add class for custom tab in form ui component?
I tried additional classes but it working with the content of my custom tab still not working with my custom tab. So who can help me how to add a class for custom tab?
code :-
<fieldset name="...
1
vote
1
answer
109
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
...
5
votes
2
answers
2k
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 ...
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=...
2
votes
1
answer
646
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
0
answers
29
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(...
2
votes
1
answer
2k
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 ...
2
votes
1
answer
2k
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
0
answers
107
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
1
answer
897
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 ...
3
votes
2
answers
2k
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
0
answers
68
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
1
answer
203
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
2
answers
603
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
1
answer
720
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
0
answers
312
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\...
3
votes
3
answers
4k
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
1
answer
732
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
0
answers
457
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
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:
1
vote
0
answers
527
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
2
answers
2k
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
0
answers
40
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 ...
3
votes
2
answers
2k
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
0
answers
124
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 ...
2
votes
1
answer
300
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
1
answer
168
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
0
answers
67
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
2
answers
2k
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">
...
1
vote
0
answers
376
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 ...
6
votes
1
answer
6k
views
Magento 2.3.0 While edit UI component form data not filled up in custom module
I have created a custom module and I am currently trying to implement a UI component form, however I am facing an issue: in my edit form data is not showing.
Below is UI form code with given path.
/...
0
votes
1
answer
671
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
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 ($...
1
vote
0
answers
517
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
2
answers
555
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 ...
1
vote
1
answer
643
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
1
answer
1k
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
2
answers
1k
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
1
answer
1k
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
1
answer
749
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 ...