Questions tagged [ui-form]

Denotes questions regarding Magento Ui Components form

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Admin html: Product edit form: Add custom dynamic HTML content below a field?

I would like to add some normal text below an input field in the product edit form. The text should be dynamic, as I should be able to set it based on some of the current product's information. For ...
0
votes
0answers
6 views

Magento2.3.5-How to Uncheck “Refund Order to Credit” Radio Box Magento2.3.5pt-2

How can I code to have "Refund order to credit" unchecked by default? Image below Any help would be much appreciated.
0
votes
0answers
15 views

How to auto select grid items in insertListing inside modal?

I have a UI component form with a button which opens a modal. In that modal I have a grid. On selecting items from grid, I am saving them into database. But I have a problem. Whenever I am editing ...
0
votes
0answers
19 views

Magento 2 Admin Menu buttons (UiComponent buttons) behaviour

Question What do I need to setup a Button's behaviour, or is there CRUD built-in Magento 2 behaviour when I do not specify a Controller? This is The tutorial article I am following. I found the ...
0
votes
0answers
28 views

How can I save my ui component form to the database?

I created a ui component, but I have no idea how to save it in the database. I know I have to pass it to the controller for it to pass to the model but I don't know how my controller should be, here's ...
0
votes
1answer
26 views

Import CSV file with Ui form and process it - error 404

I want to create a file uploader using Ui form, upload and process it in adminpanel. this is my Ui form code <field name="fileUploader" formElement="fileUploader"> ...
0
votes
1answer
21 views

HOW TO USE UI COMPONENTS?

guys i'm learning how to use ui components and following doubts arose, i found a code in the magento documentation of a form, but the documents is difficult to understand and does not explain what is ...
0
votes
3answers
31 views

Magento 2 : Pre fill Textarea Value

I added a text area in the admin form and want to show pre-defined text in that. So is it possible and How? $fieldset->addField( 'approval_note', 'textarea', ...
0
votes
0answers
22 views

Magento 2 custom product linked button not working in ui component

Following file I used to linked Products app/code/[Namespace/Module]/view/adminhtml/ui_component/cd_swatchesconfigurator_form.xml <fieldset name="product"> <argument name=&...
1
vote
0answers
22 views

Show custom grid and chooser inside product edit UI form

I want to show a grid inside product edit UI form under a fieldset Related Blog Post. This section would allow choosing a list of related blog posts for a product. I am using a custom module for blog ...
0
votes
1answer
34 views

Help to create form - now its neverending spinner magento2

I'm learning to create an UI components form, but stuck on neverending spinner. Help me to create this form, step by step, please. I have a module in adminhtml which shows a table from database. This ...
0
votes
0answers
18 views

how we add a field in for taking csv file as a input in this form form link is given

how we add a field in for taking csv file as a input in this form (How to create custom Module Development in magento 2 from Scratch? )then submit that file in database
0
votes
1answer
39 views

How to Create a field in the UiForm in which the csv file can be uploaded and read on the submit to store its fields in database in magento2?

How to Create a field in the UiForm in admin panel in which the csv file can be uploaded and read on the submit to store its fields in database in magento2?
0
votes
1answer
12 views

Form is not executed in admin panel form url show too many redirects error i give link in body

link form is not visible and give too many redirects error
2
votes
2answers
147 views

DynamicRows (or Associative Array) in Magento 2 REST API

I am using Magento 2 REST API for the mobile application. I am facing some complexity so I need your help. I have DynamicRows component with two fields in UI Form, the name of the field is ...
0
votes
0answers
42 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 ...
0
votes
1answer
220 views

Magento 2 InsertForm component in to the UI form component

I would like to add form same as like admin customer edit Add new address form. So i have added InsertForm component inside the customer edit form using this reference link A form is displaying fine ...
1
vote
0answers
113 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
1answer
301 views

How to add checkbox-set ui-component to static form in layout.xml

I want to add a multi checkbox of days of the week to the checkout, similar to: Following the instructions on the Magento Docs - Add a new input form to checkout I have added the following item to my ...
0
votes
1answer
179 views

How to change “This is required field” message to field-wise magento 2 customer registration

If I am submitting registration form as blank then all fields are showing an error message: This is required field I want to change this message according to fields. For Example: > > First ...
0
votes
0answers
73 views

Magento 2: How to open admin edit page in modal popup

To edit or create my data, I use the ui_component form as default. Now I try to open the admin edit page in a modal window, but unfortuantely I HAVE NO IDEA how to do this :-( Please help! Christian
1
vote
2answers
196 views

Values for checkboxes not coming through on save for admin form ui grid

I've created a grid under a tab in an admin UI form. But I'm having trouble saving the checkbox change values. I can't catch the tab checkbox values on form submit in the controller. Only the values ...
0
votes
2answers
391 views

How to dynamically hide normal fieldset (or) Non tab fieldset in ui component?

I created a custom admin form using Ui component. In that form i need to show and hide a fieldset dynamically based on a condition. I tried to add class for that fieldset, But the class not working in ...
0
votes
0answers
36 views

UI form Magento-2 : Add image preview in image-uploader on ajax-request

I want to add image preview in image-uploader on ajax-request on UI form Magento-2. I have one drop-down and one image-uploader on change of drop-down pass ajax-request and get data from controller ...
1
vote
1answer
31 views

How to define data to show imageUploader UI element?

Today I trying to create new attribute in product_form.xml on M2 admin. This is code I add my field: <field name="xx" formElement="imageUploader"> <settings> <label ...
0
votes
1answer
195 views

input element not getting disabled when I change it's property “disabled”

I have created a custom module to add some fields to the order checkout however I have some troubles enabling them conditionally. I have a radio button and 4 elements When the radio is clicked, ...
0
votes
0answers
139 views

Magento 2 form xml visibility fieldset conditional

I have added a new fieldset tab on the Cart Price Rule. But I would like to hide on a conditional, I've tried: ...<fieldset name="custom_rule" sortOrder="100"> <settings> ...
0
votes
1answer
115 views

Magento 2 Custom UI grid form.php validate upload file extension

I want to check the upload file extension in form.php, I have three upload file options I want to check the upload file is pdf or not. Thanks in advance. my form.php file is namespace Vendor\...
0
votes
1answer
259 views

Custom ui_component form fieldset not submitting

I created a custom fieldset for a ui_component form to add custom input structures. The problem is, that the inputs are not included in the POST values. The input you see is just a simple element in ...
0
votes
0answers
11 views

Magento 2 UI For element is not getting populated

I've created a admin form using ui form component. But, we I land to edit page, the form input element is not getting populated from db table data which is already saved. I've spent days now but can't ...
1
vote
1answer
403 views

How to show/hide UiComponent form field on based of new/edit mode

I want to show shortcode field once record inserted. else on new record is should be hidden. Ui Component form field xml: <field name="shortcode"> <argument name="data" ...
0
votes
0answers
60 views

How can pass default value for a textarea on UI Form component Magento 2?

Is there a way to supply a dynamic default value for textarea field on a UI form? I have a situation where the default value may change. In this case I was thinking the value could be stored in a ...
1
vote
1answer
271 views

Magento 2: Ui form not loading after adding select field

I have a ui-form for adding new record to my table. But the form is not loading when I add a new select field into it. Here is the field component in the form.xml file, <field name="...
1
vote
1answer
1k views

Magento2: Showing custom table data as options for select dropdown in UI component grid form

I have a UI grid form in the admin, that allows the admin to edit the data in a grid. The grid is listing data from a custom table multivendor_pickupinstore with structure below: id seller_id ...
3
votes
1answer
728 views

Magento 2 product_form.xml ovevride existing field

<fieldset name="product-details"> <field name="sku"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <...
0
votes
1answer
232 views

magento 2 ui component form default value

I have a created a custom magento 2 ui component form on Admin side. I have given create a button in customer detail page. Now what i expect is when i click on the button, it will go to my custom form ...
3
votes
2answers
2k views

Magento 2 : Add Filter in select ui form field

In ui form, I set 2 dropdown field. Now, I want to do something like that in second dropdown value set based on first dropdown selected value. For ex : In Customer module, There are country region ...
3
votes
1answer
374 views

Magento 2 : Add visual swatch uploader in custom UI form

There are visual swatch uploader available in store -> product -> Edit "color" attribute and Manage Swatch (Values of Your Attribute) like display in below image. I want to apply same that uploader ...
2
votes
1answer
212 views

Show Account information tab as active in admin customer edit page Magento2

I want to show account information tab as active, when admin goes to customer edit page. By default it shows customer view tab as active. I checked Magento Ui module but still no luck. Is there ...
1
vote
2answers
4k views

Magento 2 : Add custom block in ui form field

I want to call custom block to call my custom .phtml in ui-form field. How to do that? My form field : <field name="title"> <argument name="data" xsi:type="array"> <item ...
2
votes
1answer
735 views

Magento2: How can I format the price with two decimal places in the admin ui form field?

In Magento version 2.3.2 and 2.3.3, in a UI form, I have a field element input, of type price*: <field formElement="input" name="price" sortOrder="60"> <settings> <dataType&...
0
votes
1answer
487 views

Magento 2 custom module ui component admin form add fieldset within a field

Can one have a Fieldset within a field ?. E.G: <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
1
vote
0answers
147 views

Magento 2 how to add all Indian cities as drop down

I am trying to add All Indian cities come as drop with respect to their state,i got country and state dropdown but unable to add city. can i get help? thank you in advance. here is my form.xml file &...
0
votes
2answers
1k views

Magento 2 ; How to pass custom params with save button in UI Form

I want to pass a value/params via the save button of my ui adminform. i tried this: public function getButtonData() { $objectManager = \Magento\Framework\App\ObjectManager::getInstance()...
0
votes
1answer
1k views

Magento 2: How to display Customer Name instead of Customer Id in UI Component Form Field?

In Magento 2.3.2, I have created a grid and form to add and edit. In the grid column, I am able to display Customer Name instead of Customer Id with following code. <column name="customer_id" ...
0
votes
0answers
319 views

Override Magento_Ui base view template file on Magento 2

In Magento, we can override vendor's file vendor/magento/module-ui/view/frontend/web/templates/form/element/input.html like: app/design/frontend/{Vendor}/{ThemeName}/Magento_Ui/web/templates/...
0
votes
0answers
371 views

magento2 how to add product grid in ui form using ui component

Magento 2 : How to add a product grid in custom module using ui component? this refreance is not work me it is display look like layout grid
2
votes
1answer
422 views

UIComponent Form - Spinner showing

In my Form UIComponent only a spinner is showing. I compared my implementation to several ways it is implemented. The grid is showing just fine, i only have the problem in the form. My layout file: &...
2
votes
1answer
404 views

Magento 2 WYSIWYG field in custom admin form

I'm trying to add some fiels dynamically with Ui interface in a custom admin form. in order_ticket_form.xml <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/...
1
vote
0answers
45 views

Magento 2: admin grid form select dropdown relationship

I want to create dropdown like Country -> State relationship where user select a country and its states visible in another dropdown in admin grid form