Questions tagged [fieldsets]
The fieldsets tag has no usage guidance.
67
questions
1
vote
1
answer
58
views
<optgroup> in admin form field
I have an admin form with a few select fields declared in my _prepareForm method like the example below:
protected function _prepareForm()
{
$form = new Varien_Data_Form(array(
'id' => '...
0
votes
1
answer
68
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
0
votes
2
answers
401
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
1
answer
489
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
0
answers
255
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" ...
1
vote
0
answers
180
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
3
answers
1k
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
1
answer
711
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 ...
0
votes
1
answer
224
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',
...
1
vote
1
answer
127
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
1
answer
349
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
1
answer
1k
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
0
answers
39
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
1
answer
1k
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
0
answers
65
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
1
answer
307
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
0
answers
54
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 ...
2
votes
0
answers
258
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
1
answer
57
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
1
answer
65
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
1
answer
172
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(
'...
1
vote
2
answers
216
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
0
answers
90
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
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 ...
0
votes
1
answer
507
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
0
answers
103
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
1
answer
3k
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
0
answers
397
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
1
answer
240
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
1
answer
2k
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
1
answer
392
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
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 ...
4
votes
0
answers
874
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
2
answers
569
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 ...
10
votes
5
answers
9k
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(
'...
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-...
5
votes
0
answers
3k
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
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 ...
10
votes
4
answers
13k
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
0
answers
662
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
0
answers
953
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
0
answers
161
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
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</...
8
votes
5
answers
14k
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
2
answers
4k
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:...
7
votes
1
answer
10k
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
2
answers
5k
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' => ...
3
votes
0
answers
543
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
3
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',
...
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. ...