Not Able To Update Short Description for Draft/Review Knowledge Blocks


Description

Not Able To Update Short Description for Draft/Review Knowledge Blocks

Cause


Resolution

Make fields read only for attached Block

/nav_to.do?uri=sys_script_client.do?sys_id=cfaf30986700130038876c3b5685ef0c


function onLoad() {
 if (g_form.getValue('workflow_state') != 'published' && g_scratchpad.isBlockAttachedToArticle) {
  g_form.setReadOnly('kb_knowledge_base', true);
  g_form.setReadOnly('language', true);
  g_form.setReadOnly('short_description', true);
 }
}

If a block is used in any article, then knowledge base, language, and short_description fields will be set to read-only.