Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Compute value in question

Compute value in question 2 years 11 months ago #68215

  • rafael_ur
  • rafael_ur's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 74
  • Karma: 0
Hi everybody
I have a question with multiple choice, P1, in the next question P2, I exclude the answers given in P1 y the rest options show randomly. How could I know if an item is selected in the P2 (I need to load the answer in another question, P3, which is a question of quota)

For instance,

P1 (spontaneous)
1. BMW
2. FIAT
3. RENAULT
4. MERCEDES
5. TOYOTA
It choices 1,3

P2 (random)
1. RENAULT
2. TOYOTA
3. FIAT
It selects 2

P3 (hidden)
YES-NO
Choice FIAT? -> NO

I need to compute FIAT

Thank,
Rafael
The administrator has disabled public write access.

Re: Compute value in question 2 years 11 months ago #68219

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
Can't you use conditions for this and maybe have several follow up question displayed depending on the conditions?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Compute value in question 2 years 11 months ago #68226

  • rafael_ur
  • rafael_ur's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 74
  • Karma: 0
Thank Mazi,

Probably but I have all done I only need to finish this. Is it possible.

Many thank,
Rafael
The administrator has disabled public write access.

Re: Compute value in question 2 years 11 months ago #68230

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
I this case I think some custom Javascript to read out the answer and eventually check the yes/no answer option is the only choice.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Compute value in question 2 years 11 months ago #68233

  • rafael_ur
  • rafael_ur's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 74
  • Karma: 0
Yes, I think so but I don't know to do Javascript to read out the answer in the multiple optionc with random.

Rafael.
The administrator has disabled public write access.

Re: Compute value in question 2 years 11 months ago #68237

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
Maybe our Javascript expert "tpartner" comes around to have a look...

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Compute value in question 2 years 11 months ago #68261

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4264
  • Thank you received: 802
  • Karma: 368
Rafael, are all question on the same page? Can you attach a sample survey?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Compute value in question 2 years 11 months ago #68266

  • rafael_ur
  • rafael_ur's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 74
  • Karma: 0
Hi Tony,
It is question mp2 where I put script.

Many thank,
Rafael
Attachments:
The administrator has disabled public write access.

Re: Compute value in question 2 years 11 months ago #68305

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4264
  • Thank you received: 802
  • Karma: 368
I'm not clear on what you are trying to do.

Is this correct?

- If "Fiat" is selected in p1 or p2, then mp2 = "Sí"

- Else mp2 = "No"

If so, I think you will need move mp2 to a third group because p2 may be hidden by conditions.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Compute value in question 2 years 11 months ago #68318

  • rafael_ur
  • rafael_ur's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 74
  • Karma: 0
Hi Toni, many thank for you help.

It is correct.
I need everyone to know the brand if not end the interview, so my fee is mp2 and is on the same page, mp2 is quota.
I know when you click on FIAT in P2.
I do not know if I explained.

Thank,
Rafael
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.136 seconds
Donation Image