- Posts: 6
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Now, I'm assuming that the frontend part works as expected since the UI does not show a validation tip when the input is in correct format. Furthermore, I have gathered that the PHP uses preg_match() method, which should handle strings starting with a "<" correctly. I'm left with two guesses at this point. Either the input is somehow converted to something else than a string at some point (probably not?) or the problem is in somewhere else completely. In any case, I was thinking of circumventing the problem using some custom frontend-only validation with JavaScript that hopefully works until this might get fixed.Expression Manager provides access to mathematical, string, and user-defined functions, as shown below. It has PHP and JavaScript equivalents for these functions so that they work identically on server-side (PHP) and client-side (JavaScript).
Please Log in to join the conversation.
If you feel this is something that needs fixing, then you need to make a bug report. Otherwise it will probably never get fixed. Your case sounds pretty unique and most users might never run into this anyway, so it might not be noticed, in case it is a bug/issue rather than a "feature".In any case, I was thinking of circumventing the problem using some custom frontend-only validation with JavaScript that hopefully works until this might get fixed.
Please Log in to join the conversation.
Please Log in to join the conversation.