I'm new to customizing themes in LimeSurvey, but thought I'd share a tip.
The default behavior (at least for the bootswatch theme) is to display the regex validation text in
red if the entry is invalid, and
blue (with same text) if it is valid ie.:
Code:
Please check the format of your answer.
I thought some users might find this a bit confusing: what I wanted is for the invalid regex text to
only appear if the text entry was invalid (in this case for an email address). If a regex valid email address was entered, I wanted no message to appear.
To make this happen, in my custom bootswatch theme, I added the following entry to my custom.css file:
Code:
.ls-em-success
{
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
This has the effect of making the validation message
disappear when the entry (email) address is valid.
I hope this might help someone, and apologies if there's a more logical or straightforward way to do this!
Pete