How to clear fields in list view through onCellEdit client script

peshwen
Giga Contributor

Hi All,

I want to clear field value for certain combination of status and substatus through oncelledit client script but i am unable to empty the fields please suggest.

I have used g_form.setValue() , g_form.clearvalue() functions but it is not working.

2 REPLIES 2

Mujtaba Amin Bh
Mega Guru

You can do something like this:



var saveAndClose = true;



  if(newValue == 7){


  alert('Not allowed');


  saveAndClose = false;


  } else {


  saveAndClose = true;


  }



callback(saveAndClose);


}



This will set the value to whatever it was.


Balakrishna Ko1
Tera Contributor

Hi ,


You have to create onCelledit with script include......