Not applicable

Hi @Apoorva A H ,

Please check below code 

function onLoad() {
    //Type appropriate comment here, and begin script below
    g_form.setLabelOf('description', "label name");
	var view = getView();
	
    if (view == 'my_new_view') {
		alert(view);
        g_form.setVisible("active", true);
        g_form.setVisible('priority', false);
    }
}

 

I gone with documentation of client scirpt api, mentioned as instead of setDisplay or setVisible method you can create UI Policy for that 

SarthakKashyap_0-1725868198904.png

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 
Sarthak