Questions tagged [addfield]

The tag has no usage guidance.

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

Magento 2.4.6: Generate image upload fields as per another model data count in admin form using ui_component

My simple query is how to generate a dynamic field which will created as per count of another model data in admin form using ui component. suppose I have a model xyz and data countable in this model ...
Amit Dwivedi's user avatar
  • 1,540
0 votes
0 answers
21 views

How to add category filter in using $fieldset->addField without component?

I want to know about the way of adding category chooser using $fieldset->addField. What should I do? I try as follows. Magento 2 Add category chooser without UI component but error is occurred as ...
Malcom's user avatar
  • 21
0 votes
0 answers
27 views

Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser is not working , button is not appearing

this is my code: namespace vendor\module\Block\Adminhtml\Product\Edit\Tab; use Exception; use vendor\module\Helper\Data; use vendor\module\Model\ResourceModel\Product\Source\AllProductsFormodule; ...
Arun Suryavanshi's user avatar
0 votes
1 answer
215 views

How to add a product chooser to a Magento 2 widget

I want to add product chooser field like this I am using this code but its not working anyone please help me. helper = $helper; $this->_allProducts = $allProducts; $this->...
Arun Suryavanshi's user avatar
0 votes
1 answer
74 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
srd viha's user avatar
0 votes
2 answers
876 views

Custom Admin Button OnClick Add more Group Of Fields to Section

I Created Custom IconSlider Module That Can Be controlled from Store-Configuration. Each slider Have the Same 3 Fields (Name,URL,Image). i added a few groups With that fields But every time i want to ...
Yakir56's user avatar
1 vote
1 answer
49 views

How to add AND OR AND conditions in a product collection?

ORIGINAL POST Comment ajouter des conditions ET OU ET dans une collection de produits? comment pourrais filtrer une collection de produit par: (attribut A : condition A And attribut A : condition B) ...
Abdallah JARRAY's user avatar
0 votes
1 answer
36 views

How to fusion an AND et OR filter/condition in Magento?

how to fusion this instructions: $collection->addFieldToFilter('updated_at', ['from' => $from]) ->addFieldToFilter('updated_at', ['to' => $to]) or $collection->...
Abdallah JARRAY's user avatar
7 votes
0 answers
290 views

How can I make admin form field ($form->addField()) use PageBuilder editor?

I'm using Amasty's Landing Pages extension. On the Landing Pages edit form there's a content field that uses the default WYSIWYG editor. I need to make this field use the PageBuilder editor instead. I ...
barrakuda's user avatar
  • 151
1 vote
2 answers
2k views

Magento 2 addFieldToFilter check for NULL not working

What i am doing ->addFieldToFilter('value', array(['eq' => '', array('isnull' => true)])) What i want in the query - '((value = '' )is NULL)` Can anyone help me on this Thanks.
jibin george's user avatar
1 vote
1 answer
2k views

Magento 2 : Add comment field in checkout page

I want to add the Delivery Comment field in the checkout page like this. How can I do that? Any help? Thank in advance.
MichaelHa's user avatar
  • 661
2 votes
1 answer
56 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 ...
Sanjun Dev's user avatar
1 vote
1 answer
1k 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( $...
Chris Grierson's user avatar
1 vote
1 answer
113 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.
Adam Scott's user avatar
0 votes
1 answer
204 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
Birjitsinh Zala's user avatar
2 votes
0 answers
299 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 ...
umair ayub's user avatar
  • 1,063
1 vote
1 answer
4k 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\...
Jafar Pinjar's user avatar
  • 1,929
1 vote
2 answers
3k 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'.
Bong Channarith's user avatar
1 vote
1 answer
4k 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 ...
Stepan Furman's user avatar
1 vote
2 answers
2k 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']); ...
Coen Ponsen's user avatar
1 vote
1 answer
30 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('...
sdeveloper's user avatar
0 votes
1 answer
99 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'); $...
Attila Naghi's user avatar
  • 3,983
2 votes
0 answers
108 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-...
Navin Bhudiya's user avatar