Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: How to change equation name?

How to change equation name? 2 years 11 months ago #103018

  • pawelzmuda
  • pawelzmuda's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
Hello.

I'm new here and I really new help. I want to use equation so I choose it,
in text description I wrote {sr_ocen_1.value * 4} (I wanted to multiply my variable by 4).
Then I tested my survey and finaly I got it.
But the name of this equation was {sr_ocen_1.value * 4} - and then the value (on the response preview in admin panel). How can I change in the response preview the name of equation?



Sorry for my bad english - I hope that you catch what I am saying.
The administrator has disabled public write access.

How to change equation name? 2 years 11 months ago #103020

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
Unfortunately, as far as I know, there is no way to change that.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

How to change equation name? 2 years 11 months ago #103067

  • mrli999
  • mrli999's Avatar
  • Offline
  • Expert Lime
  • Posts: 139
  • Thank you received: 2
  • Karma: 0
What is the code of this question(result)?

If the code is abcd, then you can add another new question xxxx and insert abcd in the questiontext using equation question.
The administrator has disabled public write access.

How to change equation name? 2 years 11 months ago #103069

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1896
  • Thank you received: 469
  • Karma: 118
Hi,

The following workaround is just a start to give you some idea to achieve what you need...

At the end of your admin_core.js file
(path: /scripts/admin/admin_core.js),
try to paste :
jQuery(document).ready(function() {
// $('td:contains("Old Label")').text("New label");
$('td:contains("*")').text("New label");
});

Remember that all your surveys with "*" in the question code will be affected (but you can change easily this selector), and that admin_core.js file may be changed during some software update...
BenoƮt

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The administrator has disabled public write access.
Time to create page: 1.178 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form