String Function request

How can I create a substring in Kobo or xlsforms? I have a variable 25 characters long. All I need is to get the first 3 characters from it and convert them to upper case. Eg.
var1=‘yogoslavia north-east’ and when I use substring I want it to be YUG

Welcome to the community, @langsonb! What did you extract yogoslavia north-east to make it YUG? Could you explain it a bit so that the community should be able to help you out?

Hello @langsonb,
You may have a look in the XForm documentation: https://getodk.github.io/xforms-spec/#fn:substr

1 Like