Showing posts with label field. Show all posts
Showing posts with label field. Show all posts

21 Jan 2014

Magento: different form fields in admin form part two

For First Part Please take look
Magento : different form fields in Admin form part one
In this article I am going to show how to add different form fields that you can use in admin forms e.g : text,button,radio..etc. app/code/local/MyNamespace/MyModule/Block/Adminhtml/Mymodule/Edit/Tab/Form.php

13 Jan 2014

Magento: Submit custom form with magento’s built-in ajax with validation

/* Magento: Submit custom form with magento’s built-in ajax with validation */
Suppose I have created a custom form and I want submit that form through through ajax funtionality with magento’s own validation style.As you know for validating(not leaving blank) a field in magento we simply use a class called class="required-entry".So I have used required-entry class to validating my form. Below is my custom form which I have placed inside view.phtml file for giving product information through email to customer. If customer will click the link “get product details” then this form will be appeared and then he can fill up the form and submit for getting details.

10 Jan 2014

Magento :Custom Form With Default Validation

/* Magento :Custom Form With Default Validation */
When I was new in magento.I had found in registration form of customer there are some default validation . I was really getting wondered that where that is ? Now I don’t like you to be wondered .That means there are some default classes available in magento which are present in validation.js file.So please the following details then you will be understood.So I have taken the below html as an example html.

12 Nov 2013

Magento : List Of Prototype Javascript Validation Classes With Error Message



As U know there are some default classes in magento form field for validation.Like required-entry , validate-email ..etc.So I am here showing  to you all the default classes present in Magento (ver. 1.7.0.2) for  form validation .


3 Nov 2013

Magento : Different Form Fields In Admin Form Part One

In this article I am going to show how to add different form fields that you can use in admin forms
e.g : text,button,radio..etc.
app/code/local/MyNamespace/MyModule/Block/Adminhtml/Mymodule/Edit/Tab/Form.php