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

Questions tagged [ui-form]

Denotes questions regarding Magento Ui Components form

0
votes
0answers
9 views

How to make a field dropdown with value in Dynamic Row magento 2 Admin

I just created a dynamicRow using UIform (UiComponent). In this the value field I want to make it drop-down with predefined values. How to make it a drop-down, also I want to change another field's ...
1
vote
0answers
22 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
22 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
34 views

How to add radio button in custom option in magento2

I want to add radio button in custom option . I refer this link Magento2 adding radio buttons in customoptions. But not working. If anything i want to chage it. Thanks.
2
votes
1answer
64 views

Magento 2.3 : File Upload issue in UI Component Form

I have created a form with Ui component. It contains a file field. When I upload a file it shows an error in the console Here is my code Ui component form <field name="ffl"> ...
0
votes
1answer
34 views

Magento 2 UI Form datepicker, default date and strange behaviour

I created a UI Form with a datepicker field. In the XML I set required-entry to false. It keeps returning 'This is a required field'. In the XML the definition is thus: <field name="begin_datum"&...
0
votes
0answers
20 views

Magento 2.2.3 Backend Admin Save.php Where Gird/Form Is a join table

How do To save data where grid and form has joint table? Ok. So I have 2 tables. employee +---------+------------------------+ | employee_id |employee_contact_id | +-------------+-------------------...
1
vote
0answers
66 views

Magento 2 Admin Ui form fieldset dependency

I have created a UI form in admin. I have one select field which has some options.For some values I want to hide a fieldset in the form. How can I achieve it. Referred this link magento 2.1 How do ...
1
vote
2answers
79 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
62 views

Magento 2 extending product form hide fieldset

I have extended product form functionality by using product_form.xml in the added fieldset. now I have to hide that fieldset on a particular condition, like on module disable. I know about the ...
1
vote
1answer
158 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 ...
2
votes
2answers
80 views

How to include external JS in adminhtml using requirejs-config.js

I try to include external JS (fabric.js) in my custom module. I try so many different way but still not getting success. i don't understand what i missing below is my code. Add external JS (fabric....
0
votes
1answer
81 views

Magento 2.2.6 : Add custom field in product attribute add form - Is not render the database value on edit

I added a custom field inside my product attributes and it's render and save OK, but when I reload the attribute form, the value of my custom field is empty. If I enter to the form data inside the ...
0
votes
0answers
43 views

how to get custom form field values from databaase and display for created product custom attribute in magento2

I have created one custom form field for product creation time and I have created the same name product custom attribute, I have saved custom form field and the custom attribute value in database ...
1
vote
0answers
18 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 ...
3
votes
1answer
60 views

Magento226: Fatal error Call to a member function setId()

I am getting this error in magento Ui component admin form , it tried changing container instead of form in Ui form , but that did not help either. Fatal error: Method Magento\Ui\TemplateEngine\...
0
votes
1answer
50 views

Dropdown in admin form

I have created some category using admin ui-component form and displayed in ui-component grid. Also i want created a drop down field(Field name: Parent category) in this form which contains already ...
2
votes
0answers
49 views

How to create a parent category dropdown in admin form in magento2.2

I want to create a drop-down field in admin UI-component form in magento2.(for getting parent category/post) How to do that How to do that Thanks
0
votes
2answers
52 views

Magento 2 pass argument in class from ui component

I want to pass boolean argument to class method from uicomponent_form.xml My xml code is <field name="allow_shipping_method"> <argument name="data" xsi:type="array"> ...
1
vote
1answer
176 views

Magento 2 add maxlength in form ui component

I know magento give max_text_length validation for validating length & print error message regarding it, but I want to add attribute in my input field as maxlength="5" so i can stop user to adding ...
0
votes
2answers
54 views

How can I add block to a form element?

I want to customize category_form.xml in such a way so that, I can add custom block to the form element [say: Category Name]. Is there a way to add custom block to the Element?
1
vote
2answers
101 views

Render pure HTML in magento admin form using UI form

I created one extenssion want to render some Pure HTML from the other blockand phtml file. I have review some magento core code to render like this but not able to find the things. In the review ...
2
votes
0answers
43 views

Magento 2 Form UiComponent Explaination

I have found very good in detailed explaination of the magento ui_component grid in below question : Explanation of UI Component Grid in Magento 2 I want to know about the form ui_component in ...
1
vote
2answers
31 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://...
1
vote
0answers
153 views

Magento2: Add date-from validation for dob (date of birth) field in customer creation

I want to limit the dob field in account creation form to be not less than 01/01/1900. I thought 2 way: - limit the calendar widget (but maybe someone could input the date directly) - add a ...
2
votes
0answers
26 views

Negation in the imports link (UI component)

I've got the fieldset component in my custom UI-form: <fieldset name="default"> <settings> <label>Default</label> <collapsible>true</collapsible&...
0
votes
0answers
23 views

Magento 2 Admin Form adding php/html

In reference to this Post Magento 2: Add html instead of Ui from field? I would like on my form to display the products, the image, name of the product associated with this video on the screen. I ...
1
vote
0answers
59 views

Depends in UI Grid and Edit form

How can i use depends like in system.xml in my ui grid or edit form lines from system.xml <depends> <field id="section_id/group_id/field_id">1</field> </depends>
0
votes
0answers
16 views

Cloning text box on clicking button

I want to add a button aside of the drop down. Clicking on that button the select along with the button should clone on next line. The form is design using Ui component. How can i success, please ...
1
vote
1answer
61 views

ui form data not getting saved

I have created a UI form in admin but I am not able to receive form data in save controller. Following is my code in ui_component <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http:...
0
votes
1answer
224 views

How to show a plain text value on admin ui form

I have create a ui form. The data is getting inserted successfully. Now i want to edit the form, but i want only certain field to get edited not all. The remaining field should be shown in a simple ...
1
vote
0answers
11 views

how to fetch value from URL and post in form M2

I have product grid in admin panel where I have edit link too. Edit link looks like http://localhost:8888/backend/division/products/productedit/a_id/10/id/26794/ in ui form I need to send this id :...
1
vote
1answer
746 views

Magento 2.2.5 : Add custom field in product attribute add form

Go to : Store -> Attributes -> Product -> Edit attribute I want to add custom dropdown as like Used in Product Listing dropdown. I added it. But, It's display in Properties tab instead of ...
0
votes
0answers
57 views

Magento 2. Ui component increase input size

I have a ui-component generated form. Inside the form a datetime input is generated. The value shown is truncated because the value is bigger than the input. This is my input definition <field ...
0
votes
0answers
17 views

How can we add Catalog rule only for category in custom UiForm in admin

How can we add Catalog rule only for category in custom UiForm in admin like below I want only this like image in my Uiform. Please help
0
votes
1answer
216 views

Digits Range Validation in the UI-form

How to add digits range validation rule to the input field inside the UI-form?
0
votes
1answer
115 views

How to assign ID attribute to UI form element component?

For example, I have a simple admin UI form with one text input field: <field name="my_text" formElement="input"> <settings> <dataType>text</dataType> <...
1
vote
0answers
128 views

In Magento2, how to get checked checkboxes values in uicomponent grid in frontend?

I have added grid using uicomponent in Magento 2 frontend, to list related products. grid is showing fine but now i want to get checked checkboxes values (in any hidden input if possible) to send that ...
0
votes
4answers
626 views

Magento 2: call helper function in ui component form

In my form.xml, I have used below code to show input field <field name="price"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> ...
1
vote
2answers
122 views

Form admin difference between formFactory and XML

I'm new in Magento 2 and I couldn't figure out what is the difference in doing a admin form module in PHP, calling a class and then using formFactory to create the form: <referenceContainer name="...
6
votes
1answer
94 views

data-source-for-selected-admin-ui-form

field <field name="category_id"> <argument name="data" xsi:type="array"> <item name="options" xsi:type="object">Vendor\Blog\Model\Config\Source\CategoryTree</item> ...
0
votes
2answers
422 views

Ui_Component Grid in Admin tab

I've created custom admin tab with layout form. But i am failing to render grid in my created tab. Below is my Block code where i would like to show products. ../Block/Adminhtml/Grid/Edit/Tab/...
11
votes
0answers
328 views

Magento 2 Show customer attribute in ui_component form

I've created ui_component form. Where I need to show customer details, Same as Customer Edit. But, I can able to show their data from customer_entity table. DataProvider.php public function ...
0
votes
0answers
119 views

Magento 2 : Fatal Error Error in ui_component form

I am creating ui_component form but i am getting error. Please provide some solution for this if you had same issue before. ../Controller/Adminhtml/Grid/Edit.php public function execute() { $...
1
vote
1answer
25 views

Magetno 2 : How to create ui_component admin form?

How to create ui_component admin form ?? I've checked this but as usual its not working so far.
0
votes
0answers
18 views

Magento2 : How to add Cart price functionality to generate codes into custom module

I'm creating a custom module something similar Cart price rule, but codes will have different functionality. I have created ui form and fieldset for this, but How to add Generate button in fieldset? ...
1
vote
2answers
553 views

Magento 2 declaring modifier PHP Fatal Error: null given in $modifiers

I get this php error: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Ui\DataProvider\Modifier\Pool::__construct() must be of the type array, null given, called in /vendor/...
0
votes
2answers
319 views

How to get All Active Categories in Custom Module Admin Form(UI-component) Dropdown in Magento 2?

I need to get all categories in a dropdown in admin ui form. So Please provide me a solution Form.xml <field name="category_name" sortOrder="10" formElement="select"> <argument ...
0
votes
1answer
908 views

How to add a custom template for fieldset in ui-component form in magento 2

I have two filed sets in ui component form , Now I wish to Add custom template for one of the field set.Is it possible in uicomponent form to add custom template for a field set. Please provide me a ...
0
votes
1answer
248 views

How to set 2 columns left in admin form in Magento 2?

I have created layout with ui component form. But now I want to add tab in admin layout. I already set layout="2columns-left" in layout but it's showing only my one ui compnent form. <?xml ...