Questions tagged [fieldsets]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

How to add category dynamic field with textbox in admin form magento 2

Add Field in ui Form category selected in check box then display textbox for that category
user avatar
0 votes
2 answers
217 views

Magento 2 How to hide or show contents based on drop-down content in Admin page

Here am added a dropdown for a list of type. based on selected type I need to show or hide the another field. how to achieve it. Here is my code. $mainTypeField = $fieldset->addField( '...
user avatar
2 votes
1 answer
299 views

How to add sales rule action fieldset in customer group area

I want to add sales rule fieldset to customer group form using custom module. can any one please guide me on this how to add this sales rule condition form under customer group edit form and save this ...
user avatar
1 vote
0 answers
212 views

Add custom to field to CMS page based on template in Magento 2

I have several custom fields I added to my CMS pages but I only want them to show up on the backend if the admin user selects a specific template. For example, the text field "doctor name" ...
user avatar
  • 163
1 vote
0 answers
90 views

GET value from uicomponent field MAGENTO 2

Do anyone know how to get current input value from uicomponent? For the case, I have a field (input component) and a button in ui component fieldset. If I click the button, how do I take the input ...
user avatar
  • 11
0 votes
3 answers
453 views

Add custom fileds for Category in admin panel magento 2

I want to add One custom section in my Magento admin panel for categories. like https://prnt.sc/rf34k5. And in that section, I want to add 3 text fields like https://prnt.sc/rf34nz. How can I add ...
user avatar
  • 710
0 votes
1 answer
471 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 ...
user avatar
  • 291
0 votes
1 answer
126 views

Magento 2 admin fieldset form input float issue

I have created admin form with fieldsets. The issue is it isn't accepting float values and rounding them to integer values. $fieldset->addField( 'free_over', 'text', ...
user avatar
1 vote
1 answer
65 views

How to add a field using xml from existing fieldset created using php

I have a module where I'm overriding some of it's feauture to match what I need. So everything is working but I need to add an editor wysiwyg field into the existing form using an xml (uicomponent) ...
user avatar
1 vote
1 answer
251 views

Magento 2 : Label not display after add field with custom type

In admin form, I created custom field type and then, add html content by custom phtml file. But, after that label not display with custom field type. Custom Field Type : $fieldset->addType( '...
user avatar
  • 137
0 votes
1 answer
829 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:...
user avatar
0 votes
0 answers
37 views

Field Labels missing from my magento 2.3 site

Suddenly the labels for all of the fields of my magento 2.3 site is blank. https://prnt.sc/p00avw How to solve this? Please help
user avatar
  • 710
1 vote
1 answer
861 views

Magento2. fieldset.xml how does it work and when to use it

How does fieldset.xml work and when to use it?
user avatar
2 votes
0 answers
42 views

How to add fields to new custom module page in magento 2

Here the registration fields i need this fields to new custom module pages how to do ?? can i inherit this all fields need fields 1.phone no 2.company 3.street address note: this all fields ...
user avatar
  • 1,047
1 vote
1 answer
181 views

Magento2 select field value

I am having a form, and a select type field which is rendering good and have correct options but when I am editing an existing record it won't point to the corresponding value. CODE $fieldset->...
user avatar
  • 85
1 vote
0 answers
29 views

Custom Customer Attributes not showing in user account - Magento 2

I have created 3 custom customer attributes. So far I have them saving and displaying correctly in the account creation page and for the admin in the backend. In the users account on the frontend ...
user avatar
  • 407
2 votes
0 answers
179 views

Magento 2: How to add array of input fields in admin panel?

I wanna display an array of input fields in Cart Prices Rules page under Condition's tab like this: I have a similar example which does this in stores/configuration section but I wanna achieve this ...
user avatar
  • 1,043
1 vote
1 answer
52 views

html display as plain text in backend order details shipping method fieldset

Here is the code which will override default sales model order to display additional info in shipping information fieldset <?php class Custom_Test_Model_Sales_Order extends Mage_Sales_Model_Order{...
user avatar
  • 2,098
0 votes
1 answer
61 views

Add Content to Backend Editing Forms

I've build a module that creates a new manageable entity to Magento, including the Backend Forms. What I now want to do is to display custom content above the form editing segment and below the title....
user avatar
1 vote
1 answer
131 views

Multiselect Dependent Field Custom Module

I have two Multi select Drop downs admin. i tried to make it dependent but not success. Below is code :- Multiselect 1:- $fieldset->addField('mainfiled_id', 'multiselect', array( '...
user avatar
1 vote
2 answers
184 views

How to use getFieldset for customer in magento2?

I have used below code in magento1 to get customer attributes. $customerAccount = Mage::getConfig()->getFieldset('customer_account'); foreach ($customerAccount as $code => $node) { ...
user avatar
  • 1,749
1 vote
0 answers
61 views

Toggle data in xml for ui_configuration

I want to be able to enable/disable the following ui_configuration fieldset via configuration conditions. Much like an ifconfig. I know I can provide a boolean item named 'disabled' in ordered to ...
user avatar
1 vote
2 answers
1k views

Changing a fieldset label on an ui-components form

I have a form built with ui-components. And when changing a field, I'm trying to change the label of the fieldset that contains that field. Here is what I have (the significant part) THe fieldset ...
user avatar
  • 196k
0 votes
1 answer
381 views

$fieldset->addField not showing value

This is my code: $fieldset->addField( 'pdf_url', 'file', ['name' => 'custom_url', 'label' => __('Custom Url'), 'title' => __('Custom Url'), 'required' =...
user avatar
  • 21
1 vote
0 answers
101 views

Magento 1.9 : Update native field properties

I've just finished building an extended password policy module, which allows for customisable control over the rules for creating/updating a password. The general idea is that you can set the minimum ...
user avatar
  • 63
0 votes
1 answer
2k 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 ...
user avatar
  • 2,418
0 votes
0 answers
374 views

An Error while add a complex component modal as insertlisting for add dynamic row in my ui-component admin form

Facing an Error while add a complex component modal as insertlisting for add dynamic row in my ui-component admin form: Error is as below: "Warning: DOMDocument::loadXML(): xmlParseEntityRef: no ...
user avatar
  • 1,228
1 vote
1 answer
239 views

Magento 2.2.2 Admin Form Multiselect Box Issue

My Admin Ui Component Form was working fine , but all of a sudden , the Multiselect box went out of proportion from the rest of the field . Does anybody faced the same issue or anyone know how to fix ...
user avatar
  • 1,712
0 votes
1 answer
1k views

Magento 2: How to use multiple fieldsets using uiComponents?

I want to have multiple fieldsets under the same tab using uiComponents. There is something similar under Stores -> Attributes -> Product but it's created using an old deprecated method. Is ...
user avatar
  • 347
2 votes
1 answer
322 views

Magento 2 admin end drop down dependencies?

In Magento 2 at admin end from my custom module I have two options 1) Level and 2) Segment in the drop down. As well I have another multiselect dropdowns like Levels and segments Now if i choose ...
user avatar
2 votes
1 answer
1k views

Change the position of fields in new address option of magento 2

Can anyone please suggest, how to reorder the fields in the Overview and payment page, while adding a new billing and shipping address. Please refer the image below. Any help would be greatly ...
user avatar
4 votes
0 answers
710 views

Magento 2.1: Adding Custom Css to Admin Ui Component Form

I invested a couple of hours to get a solution to figure out , that how can we customize the M2 admin form - for the sake of clarity please see the below screenshot: The default admin form fieldsets ...
user avatar
  • 1,712
0 votes
2 answers
408 views

magento 2 admin config text fields side by side

How to add 2 or 3 text fields inline at the admin configuration of Magento 2? As I checked everywhere, I am able to add text fields one by one. How Can I do this as my admin config fields look like ...
user avatar
  • 3,036
10 votes
4 answers
8k views

Magento 2 form field toggled type

I want to create a toggle input option in magento 2 like this: but i don't know what type of field is that, right now i'm using select dropdown like this: $fieldset->addField( '...
user avatar
  • 1,474
3 votes
1 answer
3k views

Make required field to Gift Option in Magento 2

I enable gift option from magento 2 admin. Now i want to make required. field on cart page. I found that template is coming from vendor/magento/module-gift-message/view/frontend/web/template/gift-...
user avatar
  • 729
5 votes
0 answers
2k views

Magento2: Adding custom fields on checkout are not associated with the form

I'm trying to add some custom fields on the checkout. I looked around the internet and always I found an example adding some information on shipping address. But what I want is a fieldset independent ...
user avatar
  • 1,433
3 votes
1 answer
4k views

How to Make First and Last Name Optional for addresses?

I have a Magento 2.15 site that almost exclusively sells B2B. We don't have many customers that are just individuals. 99% of them are businesses. So when checking out, the people that order for their ...
user avatar
  • 163
10 votes
4 answers
11k views

Disabling a UI component field upon condition in Magento 2

I have a UI component defining some fields. How do I disable the field upon a certain condition? In other words, use <item name="disabled" xsi:type="boolean">true</item> only when a ...
user avatar
4 votes
0 answers
619 views

Magento 1.9 : Add form field to Admin Credit Memos

I need to add custom dropdowns to the Credit Memo create form. I read that you should be able to add a simple field without having to rewrite core code. The following line fails in the Observer: $...
user avatar
  • 141
0 votes
0 answers
857 views

$fieldset->addType() show extra textbox in admin form Magento 2

I used this code for add custom field type on admin form $fieldset->addType('uploadedfile', '\Vendorname\Modulename\Block\Adminhtml\filerenderer\Renderer\FileIconAdmin'); $fieldset->addField( ...
user avatar
  • 21.7k
1 vote
0 answers
156 views

Create Add Products input form like in Create new order for Magento 2 using Generic Form

I have a custom extension that need product grid input form like in create new order like this: my custom extension have database structure to connect with the product id, so if i want to edit the ...
user avatar
  • 2,374
3 votes
4 answers
6k views

Disable country field in checkout Magento 2

I tried to disable the country field in checkout but i can't. I already disable few fields like company on checkout page by adding this this <item name="visible" xsi:type="boolean">false</...
user avatar
  • 2,602
8 votes
5 answers
13k views

Magento 2.1 Ui Component : Hide and show field base on dropdown field

I have a dropdown which shows day's status ;either close or open selectable form a dropdown. If the status is close , I want to collapse and hide the open and close timings within that particular ...
user avatar
  • 1,712
7 votes
2 answers
3k views

Magento 2: How to set radio input value using ui form

I need to create gender radio input using magento ui component form <field name="gender"> <argument name="data" xsi:type="array"> <item name="config" xsi:...
user avatar
7 votes
1 answer
8k views

Magento 2 Field dependency in ui form

I have created a ui component form. I want to display some fields based on status value. Display other fields only if status is 1. How Can I achieve it? Here is my code <field name="status"> ...
user avatar
3 votes
2 answers
4k views

How to add fieldset in Magento custom admin form when field select value changed

I have a select field like this in my costum magento admin form $fieldset->addField( 'category_id', 'select', array( 'id' => 'lazadaCategory', 'label' => ...
user avatar
2 votes
0 answers
503 views

How to automatically google map on fill address then checkout street address ,city ,state, and zip code fiil in may form for magento2

Hiii For magento2, We want to google map on fill address then checkout street address ,city ,state, and zip code fiil in field form for magento2
user avatar
  • 31
2 votes
2 answers
1k views

Validation in form create by $fieldset

How to add 2 or more validation in $fieldset when create. Example: $fieldset->addField( 'tax_class_id', 'select', [ 'name' => 'tax_class', ...
user avatar
1 vote
1 answer
1k views

Magento 2 - How to make added checkout fields inline similar to the default checkout fields

I want to make the additional checkout fields imported from BSS OrderDeliveryDate extension, date, time slot and special instructions inline so that the styling matches the default checkout fields. ...
user avatar
0 votes
0 answers
26 views

How to add computed value to the field?

How to add computed value into the field: $fieldset->addField( 'percentage', 'text', array( 'label' => Mage::helper('edpa_adpan')->__('Drop/Rise %...
user avatar
  • 867