Welcome, Guest
Username: Password: Remember me

TOPIC: Workarounds:Text input masks

Workarounds:Text input masks 3 years 8 months ago #55751

  • rafael_ur
  • rafael_ur's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 74
  • Karma: 0
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?
The administrator has disabled public write access.

Re: Workarounds:Text input masks 3 years 8 months ago #55752

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2852
  • Thank you received: 360
  • Karma: 125
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.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Re: Workarounds:Text input masks 3 years 8 months ago #55759

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4281
  • Thank you received: 807
  • Karma: 370
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Workarounds:Text input masks 3 years 8 months ago #55786

  • rafael_ur
  • rafael_ur's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 74
  • Karma: 0
I tried again and works
Thanks,
Rafael
The administrator has disabled public write access.

Re: Workarounds:Text input masks 3 years 8 months ago #55797

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4281
  • Thank you received: 807
  • Karma: 370
:cheer:
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Workarounds:Text input masks 3 years 8 months ago #55853

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.133 seconds
Donation Image