Abbreviate Text - Abreviar Texto

I need to abbreviate a word in a note, when uploading a photograph it will be named, for example: 2565698796312 and I want to abbreviate the name to the first 4 digits, that is to say 2565

Necesito abreviar una palabra en una nota, al subir una fotografía esta se nombra, por ejemplo: 2565698796312 y quiero abreviar el nombre a los primeros 4 dígitos, es decir a 2565

Hello,
https://getodk.github.io/xforms-spec/#fn:substr may help you.

1 Like

Esta me funciono substring-before("1999/04/01","/") vuelve 1999 .

Agradecido. por tu ayuda.

1 Like