Questions tagged [fieldsets]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
39 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
0answers
8 views

calling array from di.xml into fieldset for admin panel

In Magento 2.3 I am trying to set a field to the table from another module. I injected it via the di.xml. <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory"...
0
votes
1answer
35 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
29 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
0
votes
0answers
15 views

How to add an address attribute order REST API

I m trying to add a address attribute(ex : district) in billing address field of Order API by using extention_attributes.xml, i could not add an attribute inside the billing address it adds at the ...
0
votes
1answer
44 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
32 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
44 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
25 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
105 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
33 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
31 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
61 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
90 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
31 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
435 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
222 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
94 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
1k 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
217 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
226 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
925 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
148 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 ...
1
vote
1answer
757 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
406 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
1answer
56 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
2answers
4k 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
922 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
2k 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 ...
6
votes
2answers
5k 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
452 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
656 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
138 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
3answers
3k 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</...
7
votes
5answers
6k 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
3k 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
427 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
2
votes
2answers
642 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', ...
1
vote
1answer
603 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. ...
0
votes
0answers
19 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 %...
1
vote
2answers
3k views

How do you edit checkout field labels in Magento 2?

The site I am working on is only selling to UK customers, and therefore we would like to change the labels from the Zip/Postal to Postcode and from State/Province to County. I have spent a long time ...
2
votes
1answer
1k views

Magento 2. How to upload images to pub/media

Problem I have a $fieldset. What arguments should I give to ->addField method to create an input field, that loads image to $_FILES? What was done For now I have an input field. Created by $...
11
votes
2answers
6k views

Magento 2 fieldset.xml; copy fields from quote to order

I have created a custom model to create order from quote; I am using fieldset.xml to copy quote custom codes to order. I have created custom columns in both quote and order with matching fields. When ...
7
votes
1answer
12k views

Simple Magento2 example of retrieving and displaying a custom table field?

I have a custom table in my Magento2 database and can not find a simple working example of how to connect, retrieve, and display the field data in a Magento2 page. This one mostly works but is ...
2
votes
2answers
2k views

How to add Details field for Custom option in magento admin?

For the custom options of simple prodcusts i have to add one text field for value of color. How to add it.
7
votes
6answers
3k views

How to make the fields of the fieldset multidependable?

I have a fieldset in the admin panel with one parent select (has 5 options) and 2 fields, which should be displayed in case the parent value select will be 3, 4 or 5. I have not found the examples of ...
1
vote
2answers
1k views

Magento 2 wysiwyg editor filter image

I have custom module field code is bellow for wysiwyg field:- $wysiwygConfig = $this->_wysiwygConfig->getConfig(['tab_id' => $this->getTabId()]); $fieldset->addField( ...