Can i add formats to the answers automatically?

More
3 weeks 4 days ago #175579 by FranciscoSalinas
FranciscoSalinas created the topic: Can i add formats to the answers automatically?
I have been able to setup almost everything by researching old topics and the manuals, but this is driving me crazy and I need your help guys!

I want to be able to automatically add symbols while the answer is being typed. Example:

The user types only the numbers: 3312809046
And the answer should be displayed as being typed: (33) 1280-9046
So it should be: (xx) xxxx-xxxx

My other problem is adding automatically commas and a suffix at the end
The user only types: 10000
And it should be displayed as: 10,000 ha
So: xxx,xxx,xxx ha (comma every 3 numbers)

Thanks in advance!

Please Log in or Create an account to join the conversation.

More
3 weeks 3 days ago #175603 by Joffm
Joffm replied the topic: Can i add formats to the answers automatically?
Hi,
maybe this is worth reading:
https://www.limesurvey.org/forum/can-i-do-this-with-limesurvey/113762-text-masket-input

there is a reference to jquery.maskedinput

Here you find a lot of jquery snippets:
https://www.jqueryscript.net/tags.php?/input%20mask/

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in or Create an account to join the conversation.

More
3 weeks 3 days ago #175631 by FranciscoSalinas
FranciscoSalinas replied the topic: Can i add formats to the answers automatically?
Thanks

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!