How to hide form section only on create form

SSA1
Giga Expert

Hi,

I am facing an issue as below.

there's a form. it has two sections .

  • Inofrmation section
  • Closure information

So, I need to hide this closure information section only when record creation.

but when existing record opens closure information section should be there.

Is anyone has an idea how to achieve this.

1 ACCEPTED SOLUTION

Chandu Telu
Tera Guru
Tera Guru

Hi 

Check the below link it give the details

https://community.servicenow.com/community?id=community_question&sys_id=8141dfe9dbdcdbc01dcaf3231f9619d5

 

function onLoad() {

 

 

  if (g_form.isNewRecord()) {

  g_form.setSectionDisplay('SectionName', false);

  }

  else{

g_form.setSectionDisplay('SectionName', true);

  }

}

Please Mark the answer if correct/helpful , if it helps

View solution in original post

5 REPLIES 5

Hi @Ankur Bawiskar 

thanks For Quick Response<

I Have Send New Post Mention as @Ankur Bawiskar 

Jagadees22