• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: conditional to conditional error

conditional to conditional error 12 years 3 months ago #20936

  • martgus
  • martgus's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi , I have this problem
I have a radio with two options A and B
If I chose A , a condition show a Checkbox A with six items. And if i chose B another checkbox with six items.
Then I have for each item of the checkboxes a condition to show an input .
this is working but , if i chose A on radio and then i chosse for example tree items of the checkbox , then below i have tree imputs , and when i change my option on radio to B the checkbox hide but the input below no .
How can i hide the inputs below ?

thanks
Gus
The administrator has disabled public write access.

conditional to conditional error 12 years 3 months ago #20946

  • upbm
  • upbm's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 34
  • Thank you received: 4
Hello,
Hello,
I had a similar problem to yours that I solved as follows:
When you click in the radio button you had to reset all checkboxes (those that were checked are checked, even if the field is hidden).
Attribute fields in radio must call a javascript function that resets the checkboxes (eg put onclick = "uncheck_all()";
In the CCS-javascript section write the javascript function to uncheck the boxes:
it gives something like this:
function uncheck_all()
{
var rep = document.getElementsByName('form[case_a_cocher_A][]');
for (i=0;i<rep.length;i++)
{
   rep[i].checked=false;
}
var rep = document.getElementsByName('form[case_a_cocher_B][]');
for (i=0;i<rep.length;i++)
{
   rep[i].checked=false;
}
;

I think that will help you.
Didier
Last Edit: 12 years 3 months ago by upbm.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!