Questions tagged [required]
The required tag has no usage guidance.
25
questions
0
votes
1
answer
20
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 ...
0
votes
0
answers
59
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.
0
votes
1
answer
40
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\...
3
votes
1
answer
49
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 ...
1
vote
1
answer
208
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?
2
votes
1
answer
57
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?
1
vote
2
answers
61
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=&...
0
votes
1
answer
357
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 ...
2
votes
1
answer
61
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.
2
votes
2
answers
134
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 ...
0
votes
1
answer
232
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 ...
0
votes
0
answers
81
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
3
votes
0
answers
216
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
0
votes
2
answers
530
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....
1
vote
1
answer
222
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 ...
0
votes
1
answer
537
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 ...
0
votes
2
answers
674
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 ...
3
votes
2
answers
3k
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 ...
0
votes
1
answer
381
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 ...
0
votes
1
answer
971
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 ...
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'.
0
votes
1
answer
49
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 ...
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 ...
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-...
2
votes
0
answers
238
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 ...