checkbox issue

Sravanthi Yelamakuri 1 Reputation point
2021-10-29T10:50:58.517+00:00

I have 4 checkboxes in react SPFX webpart like checkBox1 , checkBox2, checkBox3 and checkBox4 user may select any multple check boxes after user selected the multiple checkboxes we need to store the values in SharePoint list like

Suppose if the user selected checkBox1 and ceckBox3
checkBox1value,checkBox3value3145021-code.txt

i have used this code but i dont want to use submit button here.Instead of that just clicking checkbox it should save the checkbox value in sharepoint list

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,728 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-11-01T02:19:42.473+00:00

    Hi @Sravanthi Yelamakuri ,

    For your scenario, you have to use a submit button.
    Since you are adding an item to the list, we cannot know if the user has selected the values without submit button.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.


    0 comments No comments