Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to create a question with a equation?

  • torilee93
  • torilee93's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 7 months ago #205886 by torilee93
Hello,

Sorry if this seems like a very simple question.
I have one question type set up as a numerical input called dogweight
And another question set up as a equation type. Called PV. In the equation I put PV: dogweight/0.025

After I save and test this I do not get a result. Am I missing something? It's probably something obvious :lol:

Thank you for your help and time.

- Tori
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #205887 by holch
Replied by holch on topic How to create a question with a equation?
Did you use "{}" around the equation?
Code:
{dogweight/0.025}

This works for me (needs to be in the question text of your equation question of course)

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The following user(s) said Thank You: torilee93
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #205888 by holch
Replied by holch on topic How to create a question with a equation?
Also: What means "I do not get a result"? You should at least see the text "dogweight/0.025" written in your equation question. Otherwise you have put the equation in the wrong place.

Do not put the equation into "Logic" --> "Equation", but in the "Question" field, where normall the text of the question goes.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The following user(s) said Thank You: torilee93
The topic has been locked.
  • torilee93
  • torilee93's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 7 months ago #205893 by torilee93
Replied by torilee93 on topic How to create a question with a equation?
@holch

Thank you so much! My issue was I was putting it in the "Equation" area. After moving it to the Question field it works.

- Tori
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose