How to hide a choice option from list edit,where a business rule is not working

Ramakanth Kandr
Giga Contributor

I am able to hide a choice option on the form using a client script,but not on list edit.
A business rule is not working in this scenario.

7 REPLIES 7

msm4
Mega Guru

Hi Ramakanth,



This might help you.Client script for blocking edits in list view



BR,


Smitha.


amlanpal
Kilo Sage

Hi Ramakanth,



Please have a look at this thread: Re: Hiding choice list values?



I hope this helps.Please mark correct/helpful based on impact


Thanks for the responses,but its pretty simple if we use a onCellEdit client script using saveAndClose as a callback function



function onCellEdit(sysIDs, table, oldValues, newValue, callback) {


  var saveAndClose = true;


  //alert('testfirst');


  if (newValue == '1')


  {


  alert('Cannot move back to Open state');


  saveAndClose = false;


  }


callback(saveAndClose);


}





Mark the answer as correct if its helpful