input field validationSOLVE
Nov 21, 2019 7:24 AM
I am not really familiar with HubL, I would like to validate input field for presence of text in the banner headder, if there is a text apply styling (transparent background) , if there is no render just a banner. Something like that in JaveScript:
const banner = document.getElementById("banner-text"); banner.children.textContent.length === 0 ? banner.style.background = "none" : false;
I would appreciat help.
Solved! Go to Solution.