I want to give validation on extension field which is created from custom component.Here I am attaching screen short of it.
So please share me link how can I do it? If I can do it directly from javascript like below
configString=document.getElementById(„Conv1ServersideTagging.config.containerConfig“).value;
regionId=document.getElementsByClassName(„sw-single-select__selection-text“)[1].innerText;if(regionId=="") { alert("Please select value in Region"); this.isLoading = false; if(document.querySelector('[name="Conv1ServersideTagging.config.region"]').classList.contains('error')) document.querySelector('[name="Conv1ServersideTagging.config.region"]').classList.remove('error'); else document.querySelector('[name="Conv1ServersideTagging.config.region"]').classList.add('error'); return false; } if(configString=="") { alert("Please enter value in Google Tag Manager (Server) Container Config"); this.isLoading = false; if(document.querySelector('[name="Conv1ServersideTagging.config.containerConfig"]').classList.contains('error')) document.querySelector('[name="Conv1ServersideTagging.config.containerConfig"]').classList.remove('error'); else document.querySelector('[name="Conv1ServersideTagging.config.containerConfig"]').classList.add('error'); return false; }
Is it accept by showare team or not?