How do I force an element in dynamic page to be all capital letters.
I tried this code and it did not work:
$w.onRender(function () { //getting current item from the collection let currentItem = $w(’ #dynamicDataset ‘).getCurrentItem(); //change the text to upper case. $w(’ #elementID ').text = currentItem.fieldName.toUpperCase(); });
Hi,
It should look like this:
$w.onReady(function () {
$w('#myDataset').onReady(() => {
$w('#textElement').text = $w('#textElement').text.toUpperCase();
});
});
Good luck!
Roi
Thank you I tried it but there is a problem. It does make the letters capital but it no longer links to the database. I need to link from the database and then have it be in capital. The element is in a repeater perhaps that changes things
Hi, was this ever resolved? I have the same issue.