Welcome to the LimeSurvey Community Forum

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

Validate ExpressionScript on email template

  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 2 months ago #240564 by Jmantysalo
If I modify some email template of a survey and click "Validate ExpressionScript" -button, it validates the saved version, not the one I just wrote. Hence I must first click Save and then validate-button. To me this feels like a small bug. What others thinks, should I make a bug report?

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 2 months ago #240590 by holch
If it is not saved, it doesn't exist for Limesurvey, so it can't validate. It is just some text in a text box. If you leave the page, the code is gone as well.

I don't see this as a bug. Limesurvey is not autosave.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 2 months ago #240906 by DenisChenu
Replied by DenisChenu on topic Validate ExpressionScript on email template
The Expression validation is done via PHP only.

You can report it as bug, but : what is the real desired behaviour.

I think have a "Validate" saving current value is a bad solution … we must save only if it's clearly show "Save and validate"

Best can be construct a temporary POST send it to expression to validate it … but really complex to do.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.

Please Log in to join the conversation.

  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 2 months ago #240907 by Jmantysalo
Replied by Jmantysalo on topic Validate ExpressionScript on email template

Best can be construct a temporary POST send it to expression to validate it … but really complex to do.
OK, then it's not worth it.

(From usability point I think it should clearly be so that the user writes, checks, corrects errors, checks, and at last saves. But this is not a big issue.)

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 2 months ago #240910 by DenisChenu
Replied by DenisChenu on topic Validate ExpressionScript on email template

(From usability point I think it should clearly be so that the user writes, checks, corrects errors, checks, and at last saves. But this is not a big issue.)
 
Yes , 100% with that. But currently : i think there are better place to make effort on Usuability …
 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Jmantysalo

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose