Questions tagged [fieldsets]

The tag has no usage guidance.

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

Using several fieldsets in an admin form

I'm trying to build an admin form with several fieldsets. One thing I noticed is that the fileds only get populated when the fieldset name is equal to the key returned in my DataProvider, which ...
0
votes
2answers
40 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( '...
2
votes
1answer
69 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 ...
1
vote
1answer
52 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" ...
0
votes
0answers
10 views

Custom Field Label Not Showing

I'm using the following code to add custom fields to my CMS pages: cms_page_form.xml <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/...
0
votes
0answers
19 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 ...
0
votes
0answers
22 views

Not getting value of Condition rule in Save

I created a few fields in condition rule in UI component, now I am getting other fields value but not my condition rule field. I follow the answer to add the condition rule field. Here is a ...
0
votes
0answers
31 views

Magento 2 - How to use swticherConfig for hiding a fieldset, not a field

As we all know switcherConfig can be used to show/hide fields inside a form or fieldset, How can we use it to hide fieldset not just a field.
0
votes
3answers
55 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 ...
0
votes
1answer
105 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 ...
1
vote
1answer
38 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', ...
0
votes
1answer
41 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) ...
1
vote
1answer
131 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( '...
0
votes
1answer
374 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:...
0
votes
0answers
32 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
1
vote
1answer
440 views

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

How does fieldset.xml work and when to use it?
2
votes
0answers
35 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 ...
1
vote
1answer
66 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->...
1
vote
0answers
26 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 ...
1
vote
0answers
119 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 ...
1
vote
1answer
46 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{...
0
votes
1answer
53 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....
1
vote
1answer
77 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( '...
0
votes
2answers
140 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) { ...
1
vote
0answers
40 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 ...
1
vote
2answers
635 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 ...
0
votes
1answer
287 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' =...
1
vote
0answers
95 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 ...
0
votes
1answer
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 ...
0
votes
0answers
286 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 ...
1
vote
1answer
236 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 ...
0
votes
1answer
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 ...
2
votes
1answer
206 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 ...
2
votes
1answer
948 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 ...
3
votes
0answers
541 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 ...
0
votes
2answers
141 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 ...
8
votes
3answers
5k 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( '...
2
votes
1answer
2k 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-...
4
votes
0answers
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 ...
3
votes
1answer
3k 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 ...
8
votes
3answers
7k 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 ...
4
votes
0answers
552 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: $...
0
votes
0answers
742 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( ...
1
vote
0answers
148 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 ...
3
votes
4answers
4k 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</...
8
votes
5answers
9k 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 ...
7
votes
2answers
2k 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:...
6
votes
1answer
5k 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"> ...
3
votes
2answers
3k 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' => ...
2
votes
0answers
441 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