Questions tagged [custom-validation]
The custom-validation tag has no usage guidance.
17
questions
0
votes
2
answers
157
views
magento 2.4 change input field based on selcted country in shipping address form
I need to show/hide a magento input field (so NOT a custom field) based on the selected country in the shipping address form. Shipping address form is in two places: the customer account address book ...
0
votes
0
answers
4
views
custom field validation still showing after uninstall the plugin
We have added a plugin to add custom field to registration form. Now, we have removed the plugin but still showing validation for the field. FYI: The form field is removed after uninstall the plugin
0
votes
1
answer
34
views
Remove field validation and make field optional in the form
Is there a way to validate form fields, that should remain "optional" (not required)?
Even if I set "required" to false in both cases (required or not), Magento nags at the ...
1
vote
0
answers
22
views
date range validation in magento 2 ui comonent
I have created a custom module to mark order as delivered , In my ui component file located at
app/code/Namespace/Modulename/view/adminhtml/ui_component/namespace_delivery_form.xml
i have the ...
0
votes
0
answers
220
views
Custom Payment Method Isn't validate before click Place order button
Magento 2.3.5 version application using custom payment method module. This module refer from code here
view/frontend/web/template/payment/llamacoin.html
...
0
votes
1
answer
523
views
Magento 2 + Checkout Billing address Telephone Number Validation
I have created a plugin for billing address phone number validation, but it's giving me an error
Exception #0 (Exception): Notice: Undefined index: dataScopePrefix in /var/www/html/test/vendor/magento/...
0
votes
1
answer
165
views
Custom validation for Phone number in Magento 2
I have created the custom validation method to validate telephone number to accept only numbers and (- symbols. It's working when I tried with JavaScript in HTML page but not working when applied to ...
0
votes
1
answer
96
views
How to add a green border if validation is completed when submitting the form
Magento 2 has basic validation if the field is not valid.
How to add custom validation to the checkout page which will add a green border and an inscription that notifies the user of a successful ...
0
votes
0
answers
38
views
Magento 2: How to create custom validation method
I have 2 fields for Month (both fields type is number), first one is for "From Month" and second is "To Month".
I want to restrict user to enter the less no. of month in "To Month" field as ...
2
votes
1
answer
1k
views
Magento2 : Custom Sales Rule condition and validation
I am using this article to create a custom condition in the cart rule where I want to add the stock qty including other product attributes in the rule condition.
For example
if product_attribute1 = ...
6
votes
2
answers
71
views
Is anyone have an idea, how to convert XML to LayoutProcessor format?
Is anyone have an idea about convert XML to LayoutProcessor format?
I have created a layout processor as given below. I need to only those sentence which is defined in XML.
\Magento\Checkout\Block\...
1
vote
1
answer
614
views
Magento 2: Onepage checkout shipping address ZIP Code custom data validation. Zip codes from the databse
I am absolutely new with Magento. Have basic knowledge with custom modules and front-end layout updates.
I need to insert a custom validation for the ZIP Code in my checkout page (One-page checkout). ...
0
votes
1
answer
101
views
Magento 2 - Extend custom validation / add own validation rule
In Magento 1, I used the below javascript code inside of a template to add my own validation rule:
// Add new validation class for the name. Also supports names with two hypen in the name e.g. Hans-...
3
votes
2
answers
4k
views
Magento2: custom validation Error "Uncaught TypeError: Cannot read property 'call' of undefined"
In my custom validation rules shows '
Uncaught TypeError: Cannot read property 'call' of undefined'
errors!!!...
. how can i do custom logic and proper validation ?
Here is my Code
app/...
4
votes
0
answers
117
views
How to add custom validation on checkout page before shipping method rendering in magento 2
How to add custom validation on checkout page before shipping method rendering and if validation success then only show shipping methods or else show error message.
I have already implemented this ...
1
vote
2
answers
1k
views
Validation for file type not working in File Upload in Magento 2 Store Configuration
I am following below Article to upload file in store configuration:
https://www.mageplaza.com/devdocs/how-file-upload-sytem-configuration-magento-2.html
I have defined custom backend model as ...
8
votes
4
answers
4k
views
Add Custom Validation Street Address Field in backend Magento 2
I Want To Set Minimum Length Value For Street Address Field On Admin Side
I want to set min_text_length = 5 For Street Address Field In Customer Address Form
I am Trying To Update Attribute but ...