Questions tagged [form-validation]

Denotes question related to form validation. form validation contain frontend forms, adminhtml forms, UI components based forms

Filter by
Sorted by
Tagged with
0
votes
2answers
626 views

Take values input form Magento view.phtml

I have a problem with Magento. In practice, I'm working on the page view.phtml of product display. In the form of the page that shows this action: <form action="<?php echo $this->...
5
votes
1answer
6k views

How to make the second address field required during checkout?

I have config set to display 2 lines for address during checkout (Configuration → Customer → Customer Configuration → Name and Address Options): Number of lines in a street address: 2 How can I make ...
1
vote
2answers
2k views

I need to add some form validation for telephone field on admin side for magento

I need to add some form validation for telephone field on admin side for magento. I am looking for correct file to work on There's already some validation for required fields on the admin ...
0
votes
1answer
316 views

Validation passed than

We want to display a div when the validation is passed for that field. We verify the validation direct after hitting the next field, For example when a customer enters their first name, we want to ...
1
vote
2answers
344 views

My field Zip still stay unrequired in my customer form

I try to put a required-entry to my field "zip" but the <label> <em>*</em> still shows as display:none. If someone can help me it would be great =) <li class="fields"> &...
1
vote
1answer
10k views

How to write mobile number length validation in magento by prototype

I want to create mobile number validation in magento. Number should to be not less then 10 (7428832128).... i need to write this by prototype... basically i don't know how to write this....
2
votes
1answer
1k views

Magento Validation for multiple fields

I was looking for validation for multiple fields. There are a lot of tutorials/articles with single field validation. But how to create fully-working validation for combined fields - 2 (or more fields)...
3
votes
1answer
536 views

URL Key for product doesn't accept hyphens

When editing a product I migrated over from a woocommerce store and NOT changing the URL Key I get the following error. Hyphens are a must in URL Keys, what can I do Thanks! EDIT: Disabling the ...
23
votes
9answers
20k views

CE1.9.1 Please make sure your password match issue during User registration

I am encountering this issue in CE1.9.1. When a User registers (doesn't matter if it's during checkout or from the Create an Account link) the user keeps getting the password mismatch error even ...
1
vote
2answers
2k views

Where does the validation for onepage billing.phtml take place?

I'm looking for the validation of billing.phtml for onepage so that I can remove a field from being 'required' I've tried the Abstract.php file and a copy of it I made but no change as of yet
1
vote
1answer
2k views

Custom form validation using ajax.updater in magento

I am trying to add custom form validation. This is what i am using. <?php /* include file in magento scope */ include_once 'app/Mage.php'; Mage::app(); $basePath= Mage::getBaseUrl(...
0
votes
2answers
2k views

Server Side validation in model

Building my own module and it works perfectly at the moment. My next step is to add server side validation to the data being inputted by admin in the module form. I am validating the data in my ...
0
votes
1answer
638 views

Changing the validation rules for all forms

I want to change the rules in all magento forms, to accept just English characters. So any non-english character in magento form should not be accepted. any suggestion how I could do it?
1
vote
1answer
2k views

Using Javascript to validate response in the text box

I am new to Magento. I have the following requirements. A page has a text box where the customer enters an id. Once the id is entered, I need to check whether this id is available in the OMS using a ...
2
votes
1answer
196 views

Anything in Magento that could cause a Google “cloaking” ban?

This question is specific to Magento, but as an FYI, here is a link to Google definition of cloaking: https://support.google.com/webmasters/answer/66355?hl=en One of our Magento stores has been ...
3
votes
2answers
3k views

I want to load ajax loader image after clicking save button

I am using magento 1.9 version. After clicking save or any button then I want to show progress by ajax loader. I found a div having ID "loading-mask". If i will change its style display:none to block ...
2
votes
2answers
1k views

Patching/rewrite files in lib/Varien

I would like to know people's thoughts on the best way to patch/rewrite Varien lib files. Specifically whey looking into a couple of issues one with checkboxes and one with image type inputs I found ...
0
votes
1answer
536 views

How to add addition script to existing validation class

I need to increase the validate-password class length to 8 characters. How can I add that script in that validate-password class? Note: I don't want to create a new validation class I don't want ...
1
vote
1answer
1k views

Problem with save Qty for Item's Status to Become Out of Stock

I'm running a Magento Shop version 1.7 and have a problem with saving qty for an item's status to become "Out of Stock" from 0 to 2. When I click on the button "save config", the browser is loading ...
0
votes
1answer
3k views

email validation on create an account page

I want my "create an account" form to only accept .gov emails. If the user doesn't have a .gov email, they cannot create an account. Is this possible?
2
votes
1answer
1k views

How to Validate Checkbox in Magento

In Form I have added code for checkbox as follows. $fieldset->addField('title', 'checkboxes', array( 'label' => Mage::helper('custommodule')->__('Title'), 'class' => '...
3
votes
1answer
678 views

Change scope of validation rules of customer attribute property from global to website

How can I change the scope of the customer attribute property "validation_rules". This attribute exists in customer_eav_attribute (containing min_text_length and max_text_length). Adding it to ...
4
votes
1answer
281 views

setElementsRelation method in VarienForm

There's a setElementsRelation in VarienForm JS class. The idea of this method is quite interesting but all calls in template files are commented out. Does anyone have any idea if it is just a sort of ...
0
votes
1answer
208 views

How to apply magento default form validation in homepage?

I have one form in hader.phtml of magento.I have added the following line after form and used class="required-entry" for applying validation. In all other pages validtaion is working.But in homepage ...
0
votes
2answers
3k views

reset form fields in billing form - onepage checkout

I already implemented this with success. My only problem now is to reset also the input fields. For example the user logs in checks out his order. He gets to the billing page, where his data is ...
1
vote
3answers
8k views

Add confirmation pop-up to admin form “Save” button

I have custom module which adds admin form. There is a button "Save" in the form container that saves the entire form and adds some data to the database. I would like to avoid situation that user ...
2
votes
2answers
2k views

Show loading image after clicking submit button magento prototype

I want to show loading image after clicking the submit button using prototype. I want loading image appear after successful validation. I used this code var dataForm = new VarienForm('form-validate', ...
0
votes
1answer
605 views

Rewrite server-side validation of product form when add to cart

I’m implementing a PERL upload on the product page of Magento, with a progressbar, in AJAX with instant upload on the product page. This upload replaces the standard “file” custom option. My upload ...
2
votes
3answers
5k views

Adding products from wishlist to cart is giving me 404

I am using magento v1.8.1 and foundation template as the basic theme/tempalte. The problem is: When I make a wishlist and shared it with the magento default functionality(I haven't done anything to ...
0
votes
1answer
2k views

What could be causing - Uncaught TypeError: validOptions[i].toLowerCase is not a function?

I am trying to add some additional jQuery functionality to Magento but my script fails to run and in the browser console I notice this error: Uncaught TypeError: Object function each(iterator, ...
2
votes
1answer
841 views

Custom Currency validation - Magento using validate.js

I am looking for a way to all for custom currency validation using native magento validate.js I have a form which allows users to add custom prices to a text field. I am using the following classes ...
2
votes
4answers
13k views

How to make last name optional in Magento 1.8

I've updated database directly to make is_required on lastname = 0. Removed the js validator for lastname in core. Removed required field in frontend in widget/name.phtml. However, The "Last name ...
2
votes
1answer
487 views

“Privacy” is a required value

I am getting the following error while completing the second step (billing address) on checkout page: "Privacy" is a required value. I cannot see any Privacy field. could you please suggest me what ...

1 2 3 4 5
6