Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Forum for the discussion around technical documentation, user documentation, website & testing
  • Page:
  • 1

TOPIC:

Variables documentation 3 years 4 months ago #7465

  • A511197
  • A511197's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 133
  • Thank you received: 10
Hi there,

I'm looking for clarity on what should be added in the answer field and 'correct' field when setting up a variable MCQ, see attachment. I gave an end user the variable guide but they came back to me to say the guide doesn't mention what goes in these fields. Could someone clarify and possibly update the guide just so it's absolutely clear.

many thanks,
Alison
If you can use Lego, you can use Xerte
Attachments:

Please Connexion or Create an account to join the conversation.

Variables documentation 3 years 4 months ago #7470

  • Fay
  • Fay's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 229
  • Thank you received: 92
Hi Alison
There are two options for how to do this:
1. Create a fourth variable (e.g. called 'd') with the fixed value of
[a]+[b]+[c]
and then reference the new variable in the answer field e.g. [d]
2. Dynamically calculate the answer directly in the answer field without the need for a new variable to be created. This can be done in this format:
[{[a]+[b]+[c]}]
where the [{ }] indicate that the variable sum within should be calculated rather than just shown on screen as separate variables.
Option 2 is a newer feature that I think has only been available since 3.9 so isn't in the variable guide that was written before then. I'll add info about how to do this & make how you would do option 1 a bit clearer. Thanks for flagging this up
Fay
The following user(s) said Thank You: A511197, Menno

Please Connexion or Create an account to join the conversation.

Last edit: by Fay.

Variables documentation 3 years 4 months ago #7471

  • A511197
  • A511197's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 133
  • Thank you received: 10
Hi Fay,

Thank you for this. I got it working using the first option but the second option is good to have too! It's been a long time since I used variables.

bw,
Alison
If you can use Lego, you can use Xerte

Please Connexion or Create an account to join the conversation.

Variables documentation 2 years 11 months ago #7781

  • Menno
  • Menno's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 1
Hello everyone,

Does someone have an overview of interactive pages that work with variables.

Best,
Menno

Please Connexion or Create an account to join the conversation.

  • Page:
  • 1
Moderators: Fayronmingdonhelenmd
Time to create page: 0.048 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search