Simple text function using Expression Manager

More
5 years 3 months ago #85389 by larryg
larryg created the topic: Simple text function using Expression Manager
My survey has several short multiple text fields that I'd like to shift to all UPPER CASE. License plate number for example. The field is called PLATE, and strToUpper(PLATE.NAOK) prints the plate number on the screen in upper case as the user enters it - but not in the input field itself, and the string stored in the db is in lower case.

What's the correct EM syntax for displaying upper case in the input field and saving it to the database?

Thanks in advance,
-larrry

Please Log in to join the conversation.

More
4 months 1 week ago #157258 by r0bis
r0bis replied the topic: Simple text function using Expression Manager
I think you cannot just convert the text in database from the previous question where it was entered in lowercase. However if you create a further hidden question of type short text, you should be able to use the function to get the result you want and that result should be stored in the database. So you would get an extra field (you can call it PLATE_UPPER for example) and user would never even see the question. I have not tested it yet, but it should work. manual.limesurvey.org/Expression_Manager...o_autofill_an_answer

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!