- I’ll assume you import wixData, If not - you should do it
- I’ll assume you call this function from $.onReady and inside dataset.onReady if the text is retrieved from data collection. If not - you should do it.
- You’re using field labels instead of field keys. Field key never starts with a capital letter.
- No need to use ‘export’.