Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Simple text function using Expression Manager

  • larryg
  • larryg's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago #85389 by larryg
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
The topic has been locked.
More
6 years 7 months ago #157258 by r0bis
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

r0berts
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose