Welcome, Guest

Radiogroup: certainly simple ...
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Radiogroup: certainly simple ...

Radiogroup: certainly simple ... 1 year, 9 months ago #16358

Hello
I create a radio group with 2 values: YES and NO. I need to take the value of the checked radio in order to verify that the correct one is selected.
But I miss something as it is not working:

I create this script:
function ff_autorisation_yes (element, value)
{
   var value_autorisation=ff_checkedValue(element.value);
   
   if (value_autorisation == 'NO')
   {
        if (message=='') message = element.name+" need to be YES.\n";
        ff_validationFocus(element.name);
        return message;
    } // if
    return '';
}

I use ff_checkedValue as it mention "Get value of the currently checked radiobutton.".
I think, I miss something in the if but I don't see which part ...
Could someone help me?
Thank you in advance
  • frlobe

Re: Radiogroup: certainly simple ... 1 year, 8 months ago #16723

As far as i know in the current version of Breezingsforms there is no very easy way to get the value of a radiogroup.
The stored value will always be the one which is '1' by default, not the one you click on.

There is a workaround for this, but you will have to contact Markus for that.
  • nononsense
  • OFFLINE
  • Junior Boarder
  • Posts: 25
  • Karma: 1

Re: Radiogroup: certainly simple ... 1 year, 8 months ago #16739

Thank you for your answer. I will contact Makus.
  • frlobe

Re: Radiogroup: certainly simple ... 1 year, 8 months ago #17714

Same here, in my case i want someone to choose either "yes" or "no" but they must choose one. It's a required field.

The solution is here: crosstec.de/forums.html?func=view&ca...=6&start=12#6706

Simply choose "ff_anychecked"
  • IPN
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
Last Edit: 1 year, 8 months ago by IPN.
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.31 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint