I have seen several solutions, but the way they are using toUpperCase() is a bit different that what I need, and I can’t seem to get it to work.
I have a single text element connected to a dataset, it’s not part of a repeater, and I can’t seem to get toUpperCase() to work on it …
If I have a static value for the element, I can use some stupid code like $w( ‘#text1’ ).text = $w( ‘#text1’ ).text.toUpperCase() … but that doesn’t work if the #text1 is connected to the dataset …
Any insight?
@wingcc or @support72353 might be able to provide some insight.
$w('#repeater').forEachItem( ($item, itemData) => {
$item('#text1').text = itemData.title.toUpperCase()
})
note: don’t need to connect the text using dataset element.(because it is connected by code)
@wingcc , thank you for responding; but this is not the solution I am looking for …
I’ve seen this solution a couple times in other posts, but, as I said, my text element is not part of a repeater; it’s a standalone text element …
I would have thought that simply using $w(‘#textID’).text.toUpperCase() would have worked, but unfortunately it doesn’t …
Still searching for a way to make a single, standalone text element, connected to a dataset, display in all caps …
Can you help @wingcc ?
@support72353 can you help?
@burkedunnweb Maybe you have to share a URL… hard to guess what you are going to achieve…
@wingcc I realize I initially put this reply in the wrong place:
Here is the URL of the page I need the capitalized text on:
https://burkedunnweb.editorx.io/alyssaserpentini/projects?category=Faux+Finishing
The “Custom Finishes” dropdown menu takes users to the “/projects” page, the contents of the “/projects” page is filtered according to the string in the query parameter of the URL (?category=).
There are two elements on the page, a text element, and a repeater. The text element is not part of the repeater, and is connected to a different dataset (it displays the URL query value). In the collection field referenced by that text item, the text is not capitalized, but I would like that text to display as capitalized.