Questions tagged [required]

The tag has no usage guidance.

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

Hardware requirements for two Magento 2 sites in 1 hosting account?

1st Magento version 2.4.2-p1 2nd Magento version 2.4.5-p1 about 2416 products on each Magento install I have two Magento 2 sites both running in a separate account as part of my 1 hosting ...
Allysin's user avatar
  • 250
0 votes
1 answer
125 views

Mandatory custom field in the payment choice process

I'm trying to add a checkbox in the payment selection process. The checkbox appears correctly. I can't get it to be handled as mandatory. What am I doing wrong? This is my code: $jsLayout['components']...
Roberto Torresani's user avatar
0 votes
1 answer
361 views

Magento 2 - Make fields in custom form required

I created a custom controller and model where users can save bank payment data information. I added a form where users can change data from the model. Is there a way to reuse the magento code to ...
Black's user avatar
  • 3,280
0 votes
0 answers
154 views

How to convert Password field to required in checkout of Magento 2

I want to convert password field to required from optional. I didn't found any settings to do that. Is any code available to do that? Please help.
Magento Team's user avatar
0 votes
1 answer
289 views

Magento 2 - How to add a required checkbox to the checkout by using uiComponents?

I try to add a new checkbox for the user agreements. The checkbox is showing in the checkout fine, but it is not required. Whats the official way to make it required? THEME\Magento_Checkout\layout\...
Black's user avatar
  • 3,280
3 votes
1 answer
155 views

Error while Creating custom attribute for Customer

So i'm creating a custom attribute for Customer, the attribute was created with success. But when i try to register a Customer, it says that "field is required" even though it's filled. So i ...
Rafael Fagundes's user avatar
1 vote
1 answer
474 views

how to set payment method selection required alert on checkout page in magento 2

Is there any solution for this? Without selecting any payment method there is nothing showing alert or required warning, how can I set there?
jykmhar123's user avatar
2 votes
1 answer
187 views

How to make product image required and minimum 1 or maximum 6 images

I am using Magento 2.3 and creating a product doesn't need any image. How do I make it required?
gill's user avatar
  • 329
1 vote
2 answers
118 views

Magneto2.3-How to make product category mandatory in Magento 2

I am using Magneto 2.3. I want the product category field mandatory. See below my code: [![enter image description here][1]][1] <div class="field"> <label class=&...
gill's user avatar
  • 329
0 votes
1 answer
763 views

Region field is not working on country change

I am facing an issue in magento 2.3.4.Whenever I tried to change country, region field hidden and gives required error. Therefore, Place order is not happening. If i have not changed country and just ...
rnegi's user avatar
  • 41
2 votes
1 answer
101 views

Magento 2 : Required Field (UiComponent) (only/any one from two)

I want to set anyone field is required from two fields [UiComponent] for example, either text field or Image anyone needs to a required field otherwise can not save.
Tirth Patel's user avatar
  • 1,039
2 votes
2 answers
179 views

How can i configure customer Middle Name/Initial as a required field in Magento 1.9?

If it is possible Customer Middle Name/Initial is required, Now I use this code to required this field but can not work <?php if ($this->showMiddlename()): ?> <?php $isMiddlenameRequired ...
Rohit Gohel's user avatar
0 votes
1 answer
418 views

Magento 2 Make Not Required field on registration Page

I have enabled address field on Customer registration page and everything is working fine and fields street address,city,state,country and zip all are now appearing on page. When I create an account ...
akgola's user avatar
  • 2,917
0 votes
0 answers
88 views

Magento 2.2.5: How to make the catalog product image as required?

I want to make catalog product image as required in magento2.2.5 Any help would be appreciated
Amy's user avatar
  • 935
3 votes
0 answers
274 views

How to translate " This is a required " in Magento 2

I want translate error message required field like this I used de_DE.csv but the get fields from data it does not translate, please help me! Thanks all
TN98's user avatar
  • 931
0 votes
2 answers
647 views

menu.js:1 Uncaught TypeError: require is not a function

I am trying to add a jquery script to my site. I have updated the require-config so it has this- var config = { paths: { slick: 'js/slick.min', slaask: 'js/customscript', menu: 'js/menu....
tjjen's user avatar
  • 883
1 vote
1 answer
565 views

How to make a field required on product edit page only if another filed is checked

I have creaed two product attributes "show member price" and "member price". By default the field Member price is non mandatory. But when the admin checks the "show member price(checkbox)" filed than ...
Flying Finner's user avatar
0 votes
1 answer
784 views

Change the name Attribute of product to not required magento 2

I want to generate the name of product based by sku. For example : when i enter 10014000 for the sku, the name of product will be Bovin phenelop 16/18 blanc 100. This information is coming from ...
Developper Magento 's user avatar
0 votes
2 answers
1k views

Magento 2.3 How to include a php file in a custom module

I am using a custom module which is including a php file from lib . But it is giving error in di:compile command as - Fatal error: Cannot declare class PDFMerger, because the name is already in ...
chanchal's user avatar
  • 417
3 votes
2 answers
4k views

Magento 2 | How to include third party library by adding at 'lib/'?

This is not about adding by composer. This is about downloading and then using it. For Example: I download TCPDF Library and follows these steps it should be installed and usable but it doesn't works ...
Ajwad Syed's user avatar
  • 1,591
0 votes
1 answer
419 views

Magento 1.9 contact form validate required not working

For some reason our select dropdown is not required and does not validate the entry. It already contains the class 'required-entry' for the select. What am I missing here? <form action="<?php ...
JGeer's user avatar
  • 1,416
0 votes
1 answer
1k views

Magento2: Add Checkout Terms and Conditions to Customer Registration Page

I am trying to include terms and conditions that are shown on the checkout on the customer registration form. I have tried various ways and managed to get it to display correctly but no matter what I ...
Chrisl2310's user avatar
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
0 votes
1 answer
93 views

Required field error in Billing Information

We always seem to be having issues with the checkout. Customer cannot get past the billing information section, they click continue and it keeps saying required field, and it won't let them go any ...
Craig's user avatar
  • 1
1 vote
0 answers
24 views

Problems on checkout with a particular product

I have one product that is a cause for concern when checking out. Whenever this product is in the cart the checkout throws many popup alerts. I'll link images to help with visuals as I go through ...
Singleton's user avatar
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-...
Rahul's user avatar
  • 739
2 votes
0 answers
242 views

Magento 2 UI Component field customize based on condition

I need to validate required-entry true/false based on condition in UI component form field. Ex. if there is new entry, field will be required and it form is with existing entry, field will be not ...
Ajay's user avatar
  • 919