question

SravanthiYelamakuri-2731 avatar image
0 Votes"
SravanthiYelamakuri-2731 asked MichaelHan-MSFT edited

checkbox issue

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


office-sharepoint-online
code.txt (2.4 KiB)
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.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered MichaelHan-MSFT edited

Hi @SravanthiYelamakuri-2731,

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.






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.