Forum Discussion
Adding a clickable button to A sharepoint list to update a Yes/No Field
Higaneshsanap !
I really like your suggestion but when I insert the code the sliders appear dead. You still need to click the box first as if the slider is just a background and then select the check-box to either true or false. Subsequently the toggle appearance changes. I don't know if this is due to an update but I cannot make it work. Have you tried this code lately? Do you face any issues?
Hi Timotej85 I have the same issue but I figured out that I was calling on the public name of each column, once I change it to the internal name of each one the button starts to work well for me, maybe you should check it
This video helped me to undertstand better this tool
https://www.youtube.com/watch?v=JmZKkfy3Tx8
Greetings.
- ganeshsanapFeb 15, 2025MVP
eduarrdonuxus50 Yes, SharePoint JSON formatting supports internal name of columns hence you always have to use the internal name to get/update the column value.
Reference: How to find the Internal name of columns in SharePoint Online?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.