Making Dynamic Text Uppercase

I’m trying to make dynamic text on a Dynamic List page uppercase. The code I’m using works for a few seconds when the page loads but then the text reverts back to the original styling. Is it possible to keep the dynamic text uppercase?

Here is the code I’m using:

$w.onRender(function(){//getting current item from the collectionlet currentItem =$w('#dynamicDataset').getCurrentItem();//change the text to upper case. $w('#elementID').text = currentItem.fieldName.toUpperCase();});

Ok, man merkt gleich das dies deine ersten Schritte sind.

What is a → onRender? —> Maybe onReady() ?

Here your code…

$w.onReady(function(){
    //getting current item from the collectionlet 
   let currentItem = $w('#dynamicDataset').getCurrentItem();
   console.log(currentItem);
   //change the text to upper case. 
   $w('#elementID').text =   currentItem.fieldName.toUpperCase();
});

Change the (orange marked) element-IDs to your own ones.

It still isn’t working properly. I know to change the orange element IDs to my own but the dynamic text still isn’t uppercase. Is there something else I’m missing?

fieldName <---- is the ID of your DB-FIELD ?
Did you check the CONSOLE for OUTPUT-RESULTS?
What do you get as RESULTS?

By the way----> $w(‘#dynamicDataset’).onReady() <— where is it?

Don’t start to try to take data out of a dataset when it is not ready.