Highlight the Form Section Name

SN_Learn
Kilo Patron
Kilo Patron

Hi all,

 

I am trying to highlight the form section's name because when the form section is highlighted with certain color the background name of the form section is not clearly visible.

Attached screenshots for reference.

 

Below is the onChange Client script

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue === '') {
        return;
    }

    if (g_form.getValue('u_workaround_status') == 'Available') {

        var tabs = document.getElementsByClassName('tabs2_tab');
        tabs[1].style.backgroundColor = '#738678';

    }
	else{
		var tabss = document.getElementsByClassName('tabs2_tab');
        tabss[1].style.backgroundColor = 'white';
	}
	
}

SN_Learn_0-1711090559006.pngnormal 'Workaround'

SN_Learn_1-1711090588011.pngafter Highlighting it, workaround is not clearly readable

 

 

 

Could anyone please assist to achieve this? Thanks.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.
1 REPLY 1

Murthy Ch
Giga Sage

Hi @SN_Learn 

Why are you trying to highlight the tabs?
Also, SN don't recommend DOM.

 

Thanks,
Murthy