Check out the LimeSurvey source code on GitHub!

Workarounds:Text input masks

More
5 years 11 months ago #55751 by rafael_ur
I'm trying to mask a question and does not work. I followed the steps of the workarounds:
1.Visit www.meiocodigo.com/projects/meiomask/ , download the latest plugin script and save it as jquery.meiomask.js in the template folder.
2.Link to the script by placing <script type="text/javascript" src="{TEMPLATEURL}jquery.meiomask.js" charset="utf-8"></script> within the <head> tag of startpage.pstpl.
3.Turn off $filterxsshtml to allow insertion of JavaScript in the questions. (See documentation here)
4.Set up the template to use custom onload functions. (See the workaround here)
5.Create the text input questions that the masks are to be applied to
But no check is OK, no check point 2 and 4. How I can check?

Please Log in to join the conversation.

More
5 years 11 months ago #55752 by holch
Probably there is a conflict with the version of Jquery that Limesurvey is using. I had a similar problem with another Jquery plugin for custom radio buttons and check boxes. Have a look if you can find the post, because seems like tpartner has posted a solution for this. Not sure if it is your case, but it could.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 years 11 months ago #55759 by tpartner
I don't think it's a conflict - my demo is runnung on 1.90.

I've cleaned up the workaround a bit, getting rid of all of the custom onload crap. Try it again using the new instructions - docs.limesurvey.org/Workarounds%3A+Manip...ipt#Text_input_masks .

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
5 years 11 months ago #55786 by rafael_ur
I tried again and works
Thanks,
Rafael

Please Log in to join the conversation.

More
5 years 11 months ago #55797 by tpartner
:cheer:

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
5 years 11 months ago #55853 by Mazi

rafael_ur wrote: I tried again and works
Thanks,
Rafael

You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form