function hidebar(executionContext){
formContext=executionContext.getFormContext();
var hidecbar=formContext.getAttribute(“vinay_hidecbar”).getValue();
if(hidecbar==Yes){
formContext.ui.headerSection.setCommandBarVisible(false);
}
else{
formContext.ui.headerSection.setCommandBarVisible(true);
}
}