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 [fieldsets]

The tag has no usage guidance.

2
votes
0answers
31 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
32 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
21 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
66 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
30 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
17 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....
0
votes
0answers
30 views

Are <fieldsets> a must?

I'm applying a custom discount for each individual product which isn't necessarily a fixed amount. I think I need to sum up this value with all values in both discount_amount and base_discount_amount ...
1
vote
1answer
42 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
71 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) { ...
0
votes
0answers
27 views

Add a generic field in admin form

Does someone know or have already done how to add a generic field in form admin and NOT in Stores configuration something like in : Catalog->product->{Click on edit product}->Customizable Options. ...
1
vote
0answers
24 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
1answer
306 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
161 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
92 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
181 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
223 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
715 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
108 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
609 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
279 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
48 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 ...
6
votes
1answer
3k 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
691 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 ...
5
votes
2answers
3k 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
407 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
592 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
125 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
2k 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</...
6
votes
5answers
5k 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
2k 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
402 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
540 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
532 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
5k 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
1k 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( ...
5
votes
4answers
5k views

Convert from quote item to order item is not working

There is custom field in quote_item table same as sales_order_item both column name and type are same. I want to convert quote_item table to sales_order_item table. so I have used fieldset.xml to ...
1
vote
2answers
3k views

How to make the address field “company” required?

I simply would like to make the field "company" on the onepage checkout a required field. Would be happy for some help? I tried it already but it didn't work, so probably I have to change or add some ...
0
votes
1answer
105 views

Adding Install script and new drop down field in Page CMS

Ok so been trying for a couple of days now, I have written a small module to include a dropdown for CMS PAGES in magento. The dropdown is to allow me to include and exclude pages from a sitemap. So ...
0
votes
1answer
1k views

how to select multiple images with magento form field

I have the question i am posting is sily and asked many times on this forum but no wer the answer posted by others was solved my issue. my question is i have fieldset of file and need to upload ...