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

Jaspal Singh
Mega Patron
Mega Patron

Creat an ACL of type read/write with condition in filter as Created is not empty.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

vinothkumar
Tera Guru

Create an OnLoad client script as below and it will works.

 

function onLoad(){
//Check if new record
if(g_form.isNewRecord()){
g_form.setDisplay('Work_notes', false);
}
else{
g_form.setDisplay('Work_notes', true);
}
}

BobbyShaikh
Giga Contributor

For hiding Section ?

vinothkumar
Tera Guru

For hiding the section, you have to use the API, setSectionDisplay as shown in the below screen shot. If work notes is mandatory, then we may have to make mandatory as false using setMandatory API, before hiding the section

function onLoad() {

 if(g_form.isNewRecord()) // check whether it is new record


{
g_form.setSectionDisplay('Employee Location',false);
}

}