Stack Exchange Network

Stack Exchange network consists of 175 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

1
vote
1answer
15 views

Magento 2 UI form set default value from url params?

I want to set a form field value from the URL params in UI form. I am aware that static values can be set via default property of the field but how to set dynamic values as default (to be specific ...
0
votes
0answers
8 views

Magento 2 ui form component switcherConfig value expression

Doe anyone know at all if possible to have expression to evaluate a value in rules E.G : <switcherConfig> <rules> <rule name="0"> <value>EXPRESSION HERE</...
1
vote
0answers
37 views

Magento2.3 : How do I programmatically submit a form generated via a UIComponent?

I created a UI Component form, but I am unable to find the element in the source. I would like to click a button and then inspect a field in the form and dependent on what value is selected submit ...
1
vote
2answers
44 views

Magento 2 Edit Catalog Rule conditions in UI Form

I have created a UI form with field catalog rule conditions. The form loads display the conditions section and it is saved in the table. But in edit case the conditions are not displayed. Reference: ...
0
votes
0answers
26 views

Magento 2: Image not uploading in UI form "Attention: File was not uploaded”

I have created a custom form using Ui_Component,facing problem during image upload. I am using 2 column left layout ie, tab structure. https://prnt.sc/nouwe5 When I try to upload the image it shows ...
3
votes
2answers
121 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 ...
2
votes
0answers
16 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=...
0
votes
1answer
22 views

Magento 2 : Ui form element enable/disable on store switcher

In Magento 2.3.1, I want to do like : If all store view, then input text should be enable. Othervise, input text should be disable. I follow this answer : click here But, still I'm not getting ...
0
votes
0answers
25 views

Add custom PHP class in form modifier column

I've a scenario where I need to process a column and then display it on the grid afterwards. For instance, we can achieve this using UI component like this. <column name="order_increment_id" ...
2
votes
1answer
25 views

Magento 2 : pass custom value in js from ui form

I want to pass some custom value from ui form field. How to pass it and get in js? code : <field name="template_text_4"> <argument name="data" xsi:type="array"> ...
1
vote
1answer
68 views

Magento 2 : textarea height automatic set large in admin

In magento 2 admin, I want to expandable textarea height using xml. How to do that? I tried this code. But, it's not working. <field name="comment"> <argument name="data" xsi:...
0
votes
0answers
20 views

Magento 2 : Call ajax request on ui form dropdown change

In magento 2 admin, I want to do like on dropdown change my custom controller call using ajax. Same functionality working in product edit, Attribute set dropdown change. How to do that? Any help ...
1
vote
1answer
15 views

Magento 2 ui form multiselect field not checked not in $_POST

I have multiselectin my form displaying all store view available one is selected when I save only one show in the post array: <field name="store"> <argument name="data" xsi:type="array"&...
2
votes
1answer
37 views

magento 2 custom calendar instead of core calendar

I want to create jalaali calendar (persian calendar) instead of magento core calendar for admin and front pages . for this purpose I've added these lines to my requirejs-config in my module : '...
1
vote
1answer
29 views

how to change magento 2 date.js form file

I want to change : magento/module-ui/view/base/web/js/form/element/date.js file and set my custom date file , for this purpose I've added this line to my requirejs-config in my module : 'map': { ...
1
vote
2answers
40 views

How to add a color picker in custom form field in admin magento 2?

How can I add a color picker in custom form field in admin magento 2? Note: not in system-config
2
votes
1answer
46 views

Magento 2 : Set dependency between two dropdown in ui form

I want to set dependency in UI form. For ex : When I select first drop-down value then only display second drop-down. How to do this ?
2
votes
1answer
36 views

How to pass data from UI Form to PHP Class

I have created a form using UI component, This form has a select dropdown which displays option related to current entity id if form is in edit mode and all options if a new entity is being added by ...
0
votes
1answer
40 views

Add Country field in custom Checkout form in Magento2

I added new step on checkout and I created a form for this new step. How can I add Magento built-in Country drop down field and state/province drop down field to my custom checkout form?
2
votes
0answers
21 views

Popup for different products in Magento 2

I have to make a pop-up window under the products on the sales page. Instead of redirecting to ordering, a feedback form should appear. The problem is that I do not know how to tie a pop-up window ...
2
votes
1answer
29 views

Saving Custom Option Field to Database Not Working

I have the below code in my custom module, at App/Code/Ibex/Options/Ui/DataProvider/Product/Form/Modifier/CustomOptions.php and added a "weight" column to catalog_product_option_type_value in the ...
1
vote
1answer
21 views

Magento 2 : How to add image upload in ui form

I want to add image uploader as like in category. How to i do this stuff and make working successfully? I'm new in Magento. Please help me. Thanks.
1
vote
1answer
30 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
1answer
45 views

Magento 2 : How to display product name in custom tab in admin grid?

I want to display the product name in custom tab form on admin grid and you can see the form image I have added below.
2
votes
2answers
179 views

Magento 2 Add multiple checkbox in admin ui form Group component

How do I add dinamically add multiple checkbox bellow the a field This is how you add one checkbox bellow a field <fieldset name="field_set_name" sortOrder="100"> <settings> ...
3
votes
1answer
129 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
0answers
29 views

Knockout binding js to template

I try render input field in my custom form element like <render args="ui/form/element/input"/> but then i get some js errors because elem userChanges and others dont exist(see https://github....
0
votes
0answers
37 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 ...
1
vote
1answer
71 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.
2
votes
0answers
37 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)
0
votes
0answers
11 views

How to create Units and Measurement Indicators Field

Do anyone know that how we can create Units and Measurement Indicators field in magento UI admin form? i have searched alot but didn't fond any solution. https://devdocs.magento.com/guides/v2.3/...
1
vote
1answer
47 views

User agent exceptions override product and CMS pages rules

I am trying to implement this dynamic grid/ to add multiple records it is working fine but I am getting this "User agent exceptions override product and CMS pages rules." all over it any idea how to ...
0
votes
2answers
81 views

How to hide particular admin form field(UI Component) based on the value of select field?

I used the following script to hide/show 'schedule_date' based on select field option change, and it is working fine. But I want to hide/display the fields without changing the select field options. ...
1
vote
0answers
90 views

Magento 2 How to display placeholder image to image preview backend UI component form

In my custom module i have custom UI component form and i add file upload filed to this form. Form is working fine while Add or Edit, when upload file image preview is display,but i want to display ...
0
votes
0answers
182 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
111 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 ...
2
votes
1answer
234 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
115 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
337 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"> ...
1
vote
1answer
200 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
32 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 | +-------------+-------------------...
2
votes
0answers
245 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 ...
3
votes
4answers
437 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
155 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
574 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
269 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
176 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 ...
1
vote
0answers
29 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
83 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
98 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 ...