Welcome, Guest

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

TOPIC: Radiogroup: certainly simple ...

Radiogroup: certainly simple ... 1 year, 5 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, 5 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: 22
  • Karma: 1

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

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

Re: Radiogroup: certainly simple ... 1 year, 4 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: 4
  • Karma: 0
Last Edit: 1 year, 4 months ago by IPN.
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.48 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany