How to validate that a particular radio button is selected when the page has multiple radio buttons?

View: New views
2 Messages — Rating Filter:   Alert me  

How to validate that a particular radio button is selected when the page has multiple radio buttons?

by Satish Ingle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I have one page in my application which have multiple radio buttons with same name attribute but different value attribute. I want to validate that anyone of them is selected when the page gets loaded. I am using 'for' loop to verify this since the no of radio buttons on the page is not fixed. I am using ie-validate-radiobutton tag for this.

But the problem is how do I provide the value attribute in this tag dynamically?

Thanks in advance,


Regards,

Satish Ingle

Re: How to validate that a particular radio button is selected when the page has multiple radio buttons?

by jameleon-users mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


What values are you looping through and how does the test what to validate?

One possibly way would be to have a CSV file that lists the values you want selected, loop through it and use the ${} notation in your ie-validate-radiobutton tag.

-Christian



----- Original Message ----
From: "jameleon-users@..." <jameleon-users@...>
To: jameleon-users@...
Sent: Wednesday, July 8, 2009 11:28:38 PM
Subject: [Jameleon-users] How to validate that a particular radio button is selected when the page has multiple radio buttons?


Hi All,

I have one page in my application which have multiple radio buttons with
same name attribute but different value attribute. I want to validate that
anyone of them is selected when the page gets loaded. I am using 'for' loop
to verify this since the no of radio buttons on the page is not fixed. I am
using ie-validate-radiobutton tag for this.

But the problem is how do I provide the value attribute in this tag
dynamically?

Thanks in advance,


Regards,

Satish Ingle
--
View this message in context: http://www.nabble.com/How-to-validate-that-a-particular-radio-button-is-selected-when-the-page-has-multiple-radio-buttons--tp24404236p24404236.html
Sent from the jameleon-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Jameleon-users mailing list
Jameleon-users@...
https://lists.sourceforge.net/lists/listinfo/jameleon-users



     

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Jameleon-users mailing list
Jameleon-users@...
https://lists.sourceforge.net/lists/listinfo/jameleon-users