choice lists - how to removeOptions from choice list options in list view.

shaunlingham
Kilo Explorer

I would like to know how to limit the options in the choice list visible in a list view. I have managed to do this on the form with the onload client script but this is not reflected in the list view.

6 REPLIES 6

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


  var saveAndClose = true;


//Type appropriate comment here, and begin script below


  var req = g_form.getReference('request', reqType);


}


function reqType(req) {     if (req.u_request_type != "Change")


      g_form.removeOption('state',-3);


}


callback(saveAndClose);


}


Hi Divya,



have you tried that script because it does not run.


I have tried your alert but this is via the ui interface and not the portal, so I did not believe it would work in the first instance.



I have also tried you code and still the issue persists.



Regards