Questions tagged [dynamic-rows]
Denotes questions about the using of the `dynamicRows` Magento 2 ui-component.
82
questions
0
votes
1
answer
76
views
Magento 2 Add Dynamic Row in admin form using Block
i have created one form in backend using block now i want to add dynamic row field in my custom form using block. how can i achieve that.
Thank you in advance.
0
votes
1
answer
34
views
Magento 2 - how can I add 2 dropdowns in the same row?like the picture below
how can i add 2 dropdowns in the same row,how can i add 2 dropdown like the image above
0
votes
0
answers
32
views
Add thumbnail preview for dynamic row field
In magento 2 it is easy to add a Thumbnail column within a listing Ui Component, like so:
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:...
0
votes
0
answers
161
views
How to add image/file uploader in dynamic rows component?
I added below code and when i upload image it shows me this error
ui_component xml file
Dynamic Rows
Magento_Ui/js/dynamic-rows/record
true
true
false
<field name="...
0
votes
0
answers
110
views
Programmatically add row to DnyamicRows component
I'm trying to programmatically add a row to a dynamic-rows component by extending the dynamic-rows and form components.
When an inserted form is submitted, the form data is inserted into the ...
0
votes
1
answer
189
views
DynamicRows component doesn't show saved data on edit form (Adminhtml)
The ui form component works good on "New" action but, if I save this:
Then, the edit action shows this:
The data is being saved correctly in my custom table after submitting the "New&...
0
votes
0
answers
445
views
Show and Hide a field in UI component Form
I want to show and hide a dynamic field in custom UI form based on radio button selection. Can I perform this functionality using magento2 or I have to use Javascript / Jquery for that ?
Thanks in ...
1
vote
1
answer
964
views
How to load existing data in "Dynamic Rows" in product edit form
I'm adding Dynamic Rows in my product edit form like this.
data
How can I populate the saved custom data in the edit product page with custom DataProvider?
1
vote
1
answer
376
views
In dynamic rows wysiwyg editor field not properly delete in magento 2?
When I added 2 or multiple dynamic rows and then delete the first row the 1st-row editor field was not deleted.
check below images
Before delete
After delete 1st row
The 1st-row editor value should ...
0
votes
1
answer
803
views
How to create row pattern/dynamic rows to the custom category attribute Magento 2
How can we create a Dynamic Row/Row Pattern Attribute on the Category page?
1
vote
0
answers
336
views
How to make a dynamic row column another dynamic row in stores -> configuration
i am trying to make dynamic row field type another dynamic row, it is possible in form, i already have a example, but in ui_component form like this
in form it is made by xml, but in stores ...
1
vote
2
answers
1k
views
Add dynamic rows (No UI Component) block, into the custom widget
I need to add dynamic rows into the custom-made-widget, without uiComponent.
I have a system.xml with the block:
<section id="general" type="text">
<group id="...
1
vote
1
answer
1k
views
How to upload image in dynamic rows system config?
I need to add a image field in my dynamic rows system config
0
votes
1
answer
773
views
Magento 2 Dynamic rows with upload image in admin module not in system configuration
I have created a custom module which have dynamic rows. I have added Image field there with dropdown and some other text field. But when I am trying to save input type file is not getting in post ...
2
votes
0
answers
828
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 ...
1
vote
0
answers
293
views
Delete button not working in dynamic rows
I have added dynamic rows using generic block method.
<?php
namespace Vendor\Module\Block\Adminhtml\Blocks\Edit\Tab;
use Magento\Backend\Block\Template\Context;
use Magento\Config\Block\System\...
0
votes
1
answer
666
views
How to show uploaded image in dynamic rows?
I have added image field in dynamic rows like below
$this->addColumn(
'image',
[
'label' => __('Image'),
'renderer' => $this->getImageRenderer()
]);
private function ...
0
votes
1
answer
229
views
How to add custom style from _prepareArrayRow(\Magento\Framework\DataObject $row) function?
I have added a color picker in dynamic rows using below code:
protected function _prepareToRender() {
$this->addColumn(
'color_code,
[
'label' => __('Color Picker'),
'renderer' => $this->...
0
votes
0
answers
538
views
Magento 2 Dynamic row edit issue
I am facing an issue on the edit page with the dynamic row. I added two dynamic row blocks. One block for global off days and one is for Postal code delay days. In both containers, I added a date ...
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 ...
5
votes
1
answer
1k
views
Magento 2 - Unable to add record in dynamic rows in admin product edit page
I am trying to add a dynamic row fields in admin product edit page. I tried the below code in my product_form.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:...
0
votes
1
answer
351
views
Dynamic row autoincrement column Magento 2
I have a new module created by me.
Here, I've followed this tutorial:
https://devdocs.magento.com/guides/v2.4/ext-best-practices/tutorials/dynamic-row-system-config.html
In this table, I want a column ...
0
votes
1
answer
282
views
Magento2.3.5 Disabled dynamic row system field
How can one add a disabled attribute to an input field in dynamic row system ref: https://devdocs.magento.com/guides/v2.4/ext-best-practices/tutorials/dynamic-row-system-config.html
What I've tried:
$...
0
votes
1
answer
494
views
Magento2.3.5 Dynamic Row Add New Column Removes Current Fields
I've added 4 dynamic row while back ref:https://devdocs.magento.com/guides/v2.4/ext-best-practices/tutorials/dynamic-row-system-config.html
Now I've added a 5th column but all the row data that was ...
0
votes
1
answer
338
views
WYSIWYG Editor Issue in UI Component multi row not working
I have created dynamic rows with multiple descriptions filed(1 In a row) with the WYSIWYG editor.
Editor showing and working with first one-row element and rest element which added by adding more it's ...
0
votes
2
answers
590
views
Magento 2.4 get value of Dynamic Rows for Ajax [closed]
I've got a form that uses ajax to submit data. I recently added a dynamicRows component to the form and using ajax doesn't appear to be as straight forward.
What I was using (on Non DynamicRows input)
...
1
vote
1
answer
164
views
How to show ui dynmaic row saved values in edit form magento2
I am facing an issue with dynamic rows in ui form...created a form with dynamic rows and saved successfully but in edit form the saved values of dynamic rows not displaying...how can i solve this ...
0
votes
1
answer
474
views
UI form dynamicrows can only add one row?
I got a weird error and I can't seem to figure out how to solve it.
I create a dynamic row within a ui form.
All this works as supposed. BUT, when i create a add a record i can only add one...
So the ...
1
vote
1
answer
1k
views
Set Limit for Dynamic rows UI Component in magento 2
I have used Dynamic rows in product edit form.
Here is my DataProvider class code
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier;
use Magento\Framework\Stdlib\ArrayManager;
...
0
votes
1
answer
281
views
system config dynamic row change save style
Using tutorial I have managed to add dynamic rows with 2 column:
1 - Customer Group
2 - Price for customer
Both fields showing in system config and saving as well.
issue is when I check in database it ...
2
votes
2
answers
2k
views
Magento 2 dynamic rows add row not working
I'm trying to add dynamic rows in the product edit page.
I have successfully added a dynamic row UI component; the problem is the 'Add' button is not working after one row is inserted.
Thanks!
this is ...
0
votes
2
answers
33
views
Magento 2.1.9 can't find save button class
I am trying to get a save button on a dynamic row field to fire but on loading a CMS page I get the following error:
Class Brancom\PageExtensions\Block\Adminhtml\DynamicRows\Edit\SaveButton
...
1
vote
3
answers
2k
views
Dynamic row in magento admin form with generic class
I am trying to add dynamic row using generic form class and it show like below.
But the problem is that this value is not posting data.
Here is how i have implemented this.
DynamicDiscount.php
&...
0
votes
0
answers
522
views
Cannot read property 'id' of null error when click delete button in dynamic rows
error when I click on delete button in dynamic rows.
etc/adminhtml/di.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
1
answer
316
views
magento2 add or update items of a row builder widget programmatically
How can i add/update items of a row builder widget when clicking on a button?
I have a button in my page, and i want to update a row builder widget when a user clicks on it.
The button will send an ...
1
vote
0
answers
156
views
How set unique ID in dynamicRow?
I have field in dynamicRows:
<field name="on" component="Magento_Catalog/js/form/element/checkbox" sortOrder="0" formElement="checkbox">
...
1
vote
0
answers
161
views
Review form - dynamic rows
I need to add dynamic rows to review form, the problem is that the form is not defined in xml, but in php class \Magento\Review\Block\Adminhtml\Edit\Form, i cannot find how to add dynamic rows via php,...
3
votes
0
answers
214
views
Magento 2 nested dynamic rows uicomponent
I want to use nested dynamic rows components.
I have 3 sections.
Items
'Add Item' button to add Item section.
Ingredients (inside Item)
Each Item section can have one or more Ingredient sections ...
3
votes
0
answers
121
views
Add color picker in system.xml in serialized grid in Magento 2
I want to assign the color code to a particular customer group by the system.xml file.
I have successfully created the grid, but I am facing difficulty adding the color picker in the color column of ...
1
vote
0
answers
185
views
How to add dynamic row in grid edit form in custom module in magento 2
can any one idea for how to add dynamic row in add grid data form in Magento 2
I want to manage the app screen section for example in one section i add multiple banner data so how can i mange it
i ...
0
votes
1
answer
349
views
Unable to upload a file from UI component using dynamic rows in magento2.3.1
My UI component form fieldset
<field name="file">
<argument name="data" xsi:type="array">
<item name="config" xsi:...
0
votes
1
answer
465
views
Dynamic rows grid. Position element is not initiating
Continuously appearing problem with the position element of the dynamic rows component if we wanna use drag&drop feature. For reference I use a Related Products rows grid at the Product edit form. ...
3
votes
2
answers
1k
views
Magento 2 DynamicRow not working properly in Admin Product Edit Page
I'm trying to add dynamic rows in the product edit page in adminhtml. I'm using Magento 2.3.4. I have successfully added a dynamic row but the problem is the 'Add' button is not working after one row ...
0
votes
0
answers
141
views
How to customize ImageUploader component?
I am currently using an ImageUploader in a dynamic rows element. However, I have a couple of obstacles I need to overcome:
1) How to remove the "Upload" button?
2) When using the "Select from ...
0
votes
0
answers
234
views
Magento2 - How to add row pattern/dynamic array serialization rows to the custom product page?
How to add Custom Row and Add Value Dynamic array in serialisation rows?
Here I have attached the screenshot:
3
votes
1
answer
1k
views
Magento2- Dynamic row system config store data in database but after save not display in backed
My config file after save config data
After save data It also show error in console as there is no any field
after save data it does not give me unserialaize data my php file to render data in ...
1
vote
2
answers
794
views
Image Uploader in Dynamic Rows Ui Component not saved since Magento 2.3.3
I made a module using dynamic rows component with imageUploader field inside. I was able to upload my image on the Magento 2.3.2, but since the new release (2.3.3), I can't pass the valideFileId() ...
0
votes
1
answer
315
views
Magento 2 How to get serialized data and use in Dropdown Box
I am using Dynamic Rows in a module that saves data to the core_config_data table like this:
{"_1564763325005_5":{"addresses":"123 My Street, Bldg. 1, Reno, NV 85234"},"_1566830530708_708":{"...
0
votes
1
answer
489
views
Magento 2 Dynamically Add file uploader in system config
How to add a file uploader render in a dynamically added rows?
something like:
But in dynamically added Like:
Let say before or after drop down and the input text field?
Best!
0
votes
1
answer
994
views
Creating a dynamic row file upload and drop down option in system config
I've checked the example here: https://devdocs.magento.com/guides/v2.3/ext-best-practices/tutorials/dynamic-row-system-config.html
Which add text inputs, But how to add other types of input such as ...