Questions tagged [addfield]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
24 views

How to show saved values of custom fields when product edit

I have added some custom fields to my product edit page and it is working now. But I want to show the saved values in the edit. Now i am able to show the values in text fields. but i don't know how to ...
1
vote
1answer
77 views

Showing a custom field in reviews on the front end Magento 2

I have created various new fields in Magento 2.3.1 in the review_details table They are created and in my UpdateSchema and added to the table, $installer->getConnection()->addColumn( $...
1
vote
1answer
17 views

Add custom Form to Review and Payments page

There are many examples online about adding a custom form with custom fields to the shipping-step, but I would like to know how to add a custom form with fields to the billing-step page.
0
votes
1answer
77 views

How to add custom filed type in admin form in magento 2? time range picker

I want to create the custom time range picker type in Magento 2 admin form like below image
1
vote
0answers
101 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 ...
0
votes
0answers
189 views

How to add input field in check money order payment method in magento 2?

I want to add custom input field in check money order payment method . when this field is empty and you have to click on place order button then this fields is required.when after fill required field ...
1
vote
1answer
972 views

Custom Field in Product Edit form in magento2 admin

I am trying to add custom text field in product edit form in admin panel. I have used below code in etc/adminhtml/di.xml <virtualType name="Magento\Catalog\Ui\DataProvider\Product\Form\...
1
vote
2answers
675 views

How to set required field ''State/Province' of add new address in My Address Book, magento 2?

Using magento 2.2, I want to set required on field State/Province in Add New Address in 'my address book'.
1
vote
1answer
1k views

Magento 2 Adding field to Account information tab at admin panel

I have added new customer attribute 'Company' (not to customer_address) and I need to render this in customer_form ui-component at the "Account information" tab. It's already in customer collection ...
0
votes
1answer
759 views

Add value to hidden field Magento 2 admin

I am trying to add a hidden field with a value to my Magento 2 admin form. I used the following code: $fieldset->addField('order_id', 'hidden', ['name' => 'order_id', 'value' => 'Test']); ...
1
vote
1answer
27 views

How to recover error time to change field type in adminhtml form

Give the solution for this error... this error comes when I go to add new item or edit item in admin panel fieldset->addField('dateadded', 'date', array( 'label' => Mage::helper('...
0
votes
1answer
25 views

Getting Element with the id 'X' already exists on the cms pages from adminpanel in Magento 1

I am using this eventadminhtml_cms_page_edit_tab_content_prepare_form to add an extra field in the cms view page. This is the code from my observer: $model = Mage::registry('cms_page'); $...
2
votes
0answers
39 views

Magento 2 : I have add new field to cusotmer group but value not save

I have add new custom fields to customer group (adminhtml) but value not save. For add new field into customer group I have override below file: Block/Adminhtml/Group/Edit/Form.php $form = $this-...