Welcome to the LimeSurvey Community Forum

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

Function in 'Maximum value' changes on second saving

  • Baarceri_122875
  • Baarceri_122875's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
6 years 2 months ago #164540 by Baarceri_122875
Hi there,
I am using LimeSurvey Pro. I have been using the following function in a 'Maximum value' advanced setting for a Numerical input field:
Code:
date('YYYY', time())

For some reason, when I first save and preview the question, it works as intended. When I re-edit the question (editing other aspects), it then changes itself to:
Code:
date(
...and goes all kinds of wrong in the preview.

Any idea why? How can I make it more stable? I don't want to have to keep re-editing that function and saving.

Regards,
Will
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 2 months ago #164543 by ollehar
Which version of LS are you using? Can you upload your lss file, please?
The topic has been locked.
  • Baarceri_122875
  • Baarceri_122875's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
6 years 2 months ago #164545 by Baarceri_122875
Replied by Baarceri_122875 on topic Function in 'Maximum value' changes on second saving
Hi Olle,
I am just using the online editor. I am using Opera browser to access it. Let me know if you still want the lss file. I am simply typing the code above into the Maximum value box, online.

Will
The topic has been locked.
  • Baarceri_122875
  • Baarceri_122875's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
6 years 2 months ago #164546 by Baarceri_122875
Replied by Baarceri_122875 on topic Function in 'Maximum value' changes on second saving
Hi Olle,
It's not doing it anymore! I have no idea why. I'll let you know if the problem reappears!

Thanks
Will
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose