How can we remove water template in Dynamic Link or Link type

So through my API I am getting the values and i am assigning to the options

But i am getting water mark, I dont require water mark so what can i do

“Filters applied for Name in” – should not to come


function removeText() {
    document.querySelectorAll('span').forEach(function(span) {
        if (span.textContent.includes('Filters applied for')) {
            $(span).parent().parent().parent().hide();
        }
    });
}

const observer = new MutationObserver(function(mutations) {
    mutations.forEach(function(mutation) {
        removeText();
    });
});


observer.observe(document.body, {
    childList: true, 
    subtree: true,
});

removeText();

add this code in your custom app js file or in client script

1 Like

Thanks man…!!

Worked for me

1 Like