PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, November 10, 2022

[FIXED] How to validate radio button in magento?

 November 10, 2022     magento, magento-1.7, radio-button, validation     No comments   

Issue

In my custom module I have a form which has radio buttons.

When I click the submit button it does not validate the radio button.

How to validate that using the Magento default validate class.

Thanks


Solution

i got the answer,

use validate-one-required-by-name in the class name of the radio button.

Cheers

Edit:

or

use validate-one-required on the last radio/checkbox in the group

Thanks to Rahul Tripathi



Answered By - MeenakshiSundaram R
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing