Check out the LimeSurvey source code on GitHub!

Masks

More
5 years 2 months ago #67962 by felipe01
How do I create masks for the fields?

For example, money mask. R$100.000,00

Thanks.

Please Log in to join the conversation.

More
5 years 2 months ago #67987 by tpartner

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 2 months ago #69053 by dabul
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.

Please Log in to join the conversation.

More
5 years 2 months ago #69057 by DenisChenu
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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 2 months ago #69063 by Mazi

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)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 2 months ago #69084 by dabul
Yes, I desactived.
I need any video about to put masks.

Anyone have any video????

Thanks...

Please Log in to join the conversation.

More
5 years 2 months ago #69102 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

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