question

BrownfieldPamela-6377 avatar image
0 Votes"
BrownfieldPamela-6377 asked RaytheonXie-MSFT commented

checkbox on sharepoint list

Need to create a checkbox on the list as in the pic below .
SharePoint has out of box checkbox on a task list only.
I need to create one for other list that is not a task list. Any ideas how to do this?


129899-image.png


office-sharepoint-server-development
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BrownfieldPamela-6377 avatar image
0 Votes"
BrownfieldPamela-6377 answered

129900-screenshot-2021-09-07-094547.jpeg



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RaytheonXie-MSFT avatar image
0 Votes"
RaytheonXie-MSFT answered RaytheonXie-MSFT commented

Hi @BrownfieldPamela-6377 ,
You can try following code to add checkbox to sharepoint list

 <script language="javascript" type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>  
 <script type="text/javascript">  
     $(document).ready(function() {
                 AddCustomUserActionToECB();
             }); 
      
     function AddCustomUserActionToECB() {  
       $(".ms-headerCellStyleIcon.ms-vh-icon.ms-vh-selectAllIcon").after("<input type='checkbox'>");    
     $('.ms-cellStyleNonEditable.ms-vb-itmcbx.ms-vb-imgFirstCell').after("<input type='checkbox'>");
         }  
 </script>  


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @BrownfieldPamela-6377 ,
would you please provide us with an update on the status of your issue?

0 Votes 0 ·

Hi @BrownfieldPamela-6377 ,
I am checking to see if the problem has been resolved.

0 Votes 0 ·