Questions tagged [addfield]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
39 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
337 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 ...
1 vote
1 answer
37 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) ...
0 votes
1 answer
27 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->...
4 votes
0 answers
133 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 ...
  • 121
1 vote
1 answer
1k 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.
1 vote
1 answer
1k 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.
  • 651
2 votes
1 answer
51 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
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( $...
1 vote
1 answer
92 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
1 answer
162 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
2 votes
0 answers
198 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,043
1 vote
1 answer
3k 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,759
1 vote
2 answers
2k 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
1 answer
3k 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 ...
1 vote
2 answers
1k 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
1 answer
29 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
1 answer
76 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'); $...
  • 3,625
2 votes
0 answers
66 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-...