Wanted to Hide Work notes section from New Record

BobbyShaikh
Giga Contributor

From Create New Record I would like to hide Work notes section. It only should visible whenever user create create the records.

 

Thanks in Advance

1 ACCEPTED SOLUTION

Thanks Vinod...  Its working now...

View solution in original post

10 REPLIES 10

vinothkumar
Tera Guru

Hi Bobby,

 

Please let me know if that works.

 

g_form.setSectionDisplay('Employee Location',false); Replace employee location with your section name

Not working

if(g_form.isNewRecord())
{
g_form.setSectionDisplay('Notes',false);
}

}

 

Check are there any mandatory fields in the notes section. If so, please make it mandatory false before hiding the section

 

if(g_form.isNewRecord())

{

g_form.setMandatory('work_notes', false);
g_form.setSectionDisplay('Notes',false);
}

}

No Mandatory..  In notes i have Activity and work notes.

vinothkumar
Tera Guru

I tried in my personal developer instance and it is working. A small note is that you have to input the section name in lower case letter in your instance and no special characters is allowed

 

if(g_form.isNewRecord())

{

g_form.setSectionDisplay('notes',false); Suppose if section name is "Notes", then you have to input as
"notes"
}


Scrreen shot Showing Section :

find_real_file.png

 

Screen shot hiding section

 

find_real_file.png