Welcome, Guest
Username: Password: Remember me

TOPIC: Masks

Masks 2 years 10 months ago #67962

  • felipe
  • felipe's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
How do I create masks for the fields?

For example, money mask. R$100.000,00

Thanks.
The administrator has disabled public write access.

Re: Masks 2 years 10 months ago #67987

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4141
  • Thank you received: 768
  • Karma: 349
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: Masks 2 years 9 months ago #69053

  • dabul
  • dabul's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
I tried to use this manual:

docs.limesurvey.org/Workarounds%3A+Manip...vey#Text_input_masks

With this informations:

"Text input masks-second method
Tested with: 1.91RC6+, FireFox 4.0

There may be instances where you would like to place a mask on a text input - for example only allowing respondents to enter the correct characters for a North American phone number ((###) ###-####) or a US social security number (###-##-####). The jQuery meioMask plugin by fabiomcosta is no longer supported but an alternative exists. The DigitalBush Masked Input Plugin is updated and simple to implement in LimeSurvey digitalbush.com/projects/masked-input-plugin/(external link). See digitalbush.com/projects/masked-input-plugin/(external link) for more details on features and options.

Implementation for this demo was as follows:

Visit digitalbush.com/projects/masked-input-plugin/(external link), download the latest plugin script and save it as jquery.maskedinput.js in the template folder.
Link to the script by placing <script type="text/javascript" src="{TEMPLATEURL}jquery.maskedinput.js" charset="utf-8"></script> within the <head> tag of startpage.pstpl.
Turn off $filterxsshtml to allow insertion of JavaScript in the questions. (See documentation here)
Create the text input questions that the masks are to be applied to
In the source of the help section of the first question of the group that contains the masked inputs, add the following code. (See How to use script here)


<script type="text/javascript" charset="utf-8">
$(document).ready(function($) {
$("#answer55431X1X5").mask("999-99-9999",{placeholder:"#"});
});
</script>



Replace the "#answer55431X1X5" with your survey ID, group ID, and question ID. You can change the mask format and change or eliminate the placeholder if you wish. If you have multiple questions in the same group, simply copy and paste the line that begins with "$" and change the code to what is needed for your application."


But i have no sucess.

You guys have a video, how i can put masks in some questions?

I using the the site www.LimeService.com/.

Anyone could help me???

Obs:I looked at youtube but i didnt find anything about masks in limesurvey.
The administrator has disabled public write access.

Re: Masks 2 years 9 months ago #69057

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6277
  • Thank you received: 802
  • Karma: 241
Hello,
dabul wrote:
....

I using the the site www.LimeService.com/.

...
You have to contact limeservice support, i think you have to deactivate XSS protection.

Denis
The administrator has disabled public write access.

Re: Masks 2 years 9 months ago #69063

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 249
Shnoulle wrote:
Hello,
dabul wrote:
....

I using the the site www.LimeService.com/.

...
You have to contact limeservice support, i think you have to deactivate <a href='docs.limesurvey.org/tiki-index.php?page=...al+settings#Security'>XSS</a> protection.

Denis
Can't you deactivate the XSS filter at global settings -> security yourself even when using Limeservice? Please check.

Please aslo post a link to a test survey so we can have a look.

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.

Re: Masks 2 years 9 months ago #69084

  • dabul
  • dabul's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Yes, I desactived.
I need any video about to put masks.

Anyone have any video????

Thanks...
The administrator has disabled public write access.

Re: Masks 2 years 9 months ago #69102

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 249
There is no video for that but the documentation at the workarounds should be pretty clear?!

What issue in detail do you have problems with?

How about a link to a demo survey?!

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.146 seconds
Donation Image