• 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: Online Survey With Random Questions Group Variable

Online Survey With Random Questions Group Variable 12 years 5 months ago #20333

  • sakisdem
  • sakisdem's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
My first question is about departments:

butcher shop
Fruit
Department sausage / cheese cutter (Delicatessen)
fish market
Packaged food and cleaning


Then i have 5 questions for each departments:

For the butcher shop i have the folow questions

The meat was fresh - i name it meet1
The meat quality was - i name it meet2
The butcher serve you well on that you needed - i name it meet3
The butcher gave you advice about baking - i name it meet4
There was good variety in terms of types of butcher - i name it meet5

etc.

What to i do to make each departments questions a group & waht i must do to display only one group evrey time (if user select 3 or 4 departments the form must display only one randomly)

Thanks a lot!
The administrator has disabled public write access.

Online Survey With Random Questions Group Variable 12 years 5 months ago #20335

  • matt
  • matt's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 14
You could use conditional fields. Ok, if the user selects one department or more it would not be a random selection, it will show the selection.
Read more about conditional fields
Last Edit: 12 years 5 months ago by matt.
The administrator has disabled public write access.

Online Survey With Random Questions Group Variable 12 years 4 months ago #20545

  • sakisdem
  • sakisdem's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
i already use the conditional fields but is not the right for me
I wand to make a group of questions and then to display it in a random selection
The administrator has disabled public write access.

Online Survey With Random Questions Group Variable 12 years 4 months ago #20578

  • sakisdem
  • sakisdem's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Can anyone help me?
Ther is some way to and a new contition for random questions?
The administrator has disabled public write access.

Online Survey With Random Questions Group Variable 12 years 4 months ago #20593

  • sakisdem
  • sakisdem's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Is really important to me if someone can help me...
Thanks in advance!
The administrator has disabled public write access.

Online Survey With Random Questions Group Variable 12 years 4 months ago #20594

  • sakisdem
  • sakisdem's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
I already do this but I don’t know if is correct…
<?php
$meetgroup[ ] = "meet1";
$meetgroup[ ] = "meet2";
$meetgroup[ ] = "meet3";
$meetgroup[ ] = "meet4";
$meetgroup[ ] = "meet5";
 
$fruitgroup[ ] = "fruit1";
$fruitgroup[ ] = "fruit2";
$fruitgroup[ ] = "fruit3";
$fruitgroup[ ] = "fruit4";
$fruitgroup[ ] = "fruit5";
 
$delicatgroup[ ] = "delicat1";
$delicatgroup[ ] = "delicat2";
$delicatgroup[ ] = "delicat3";
$delicatgroup[ ] = "delicat4";
$delicatgroup[ ] = "delicat5";
 
$fishgroup[ ] = "fish1";
$fishgroup[ ] = "fish2";
$fishgroup[ ] = "fish3";
$fishgroup[ ] = "fish4";
$fishgroup[ ] = "fish5";
 
$pfcgroup[ ] = "pfc1";
$pfcgroup[ ] = "pfc2";
$pfcgroup[ ] = "pfc3";
$pfcgroup[ ] = "pfc4";
$pfcgroup[ ] = "pfc5";
 
 
        $answers = a1(a10, a11, a12, a13, a14) ;     // could be $_POST['answers']
        $random_group = $answers[array_rand($meetgroup, $fruitgroup, $delicatgroup, $fishgroup, $pfcgroup)];
        echo $random_group;
?>
The administrator has disabled public write access.

Online Survey With Random Questions Group Variable 12 years 4 months ago #20598

  • sakisdem
  • sakisdem's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Really Nobody?
The administrator has disabled public write access.

Online Survey With Random Questions Group Variable 12 years 4 months ago #20599

If you haven't sent this question in to Support, it would probably be the thing to do. Many people who use the forum are not programmers so it would be very difficult for them to help on this issue. (The people who have responded so far are the ones who do have the background in creating complex forms.)

I've had support help me with some issues and then found the solution to that issue added to the program in a future release. It helps all if we give support the chance to see the things we need.

K
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!