There are 4 options displayed as Checkbox. And I would like to get which options are selected by user.
-
The 4 options are represented by 1, 2, 4, 8.
Option 1 --> 1
Option 2 --> 2
Option 3 --> 4
Option 4 --> 8 -
The sum of selected Options will send to backend.
e.g. 1: If user selects Option 1 & Option 4, backend will recive 9(1+8) in this case.
e.g. 2: If user selects Option 1 & Option 3 & Option 4, backend will recive 11(1+2+8) in this case.