Comment to 'Edit "Who Can Post" selection field'
  • Yes, due to editing I inserted the code with the old variables name in the one place. This one works:

    <script language="javascript">

    const aVars = [2, 5, 6, 7, 8, 'c', 's'];

    aVars.forEach(reduce_vars);

    function reduce_vars (sItem)

    {

      $(".sys-privacy-group option[value=" + sItem  + "]").remove();

    }

    </script>