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

Variables documentation 4 months 2 hours ago #7465

  • A511197
  • A511197's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 118
  • Thank you received: 9
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 Log in or Create an account to join the conversation.

Variables documentation 3 months 4 weeks ago #7470

  • Fay
  • Fay's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 193
  • Thank you received: 66
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

Please Log in or Create an account to join the conversation.

Last edit: by Fay.

Variables documentation 3 months 3 weeks ago #7471

  • A511197
  • A511197's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 118
  • Thank you received: 9
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 Log in or Create an account to join the conversation.

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

Search