I want to create a data hook (after Query) that takes the text currently in a column called “description,” copies it to “descriptionUse” and changed the font size. Everything else should be the same and both fields are rich text. The code I am currently trying (borrowed from some other sources, so apologies if it doesn’t make sense) is as follows:
const modifyTextWithNewStyle = (text)=>‘
{text}
’
export function Opportunities_afterQuery(item, context) {
Yes, you should edit it from the page code itself. I recommend console.log the text element to check its HTML code. This way, you’ll know how exactly you should edit the text element HTML . It’s a similar scenario to this one , only that here you want to change the font size instead of underline the text and the event is different (onClick event I assume, it depends on your use case).