Skip to main content
1-Visitor
July 19, 2017
Question

How to set property when click different/multiple buttons?

  • July 19, 2017
  • 2 replies
  • 1498 views

Hi all,

I want to know how to trigger set property after click on different buttons:

If we have 4 buttons: a, b, c, d, there are 15 options to choose (a,b,c,d,ab,ac,ad,bc,bd,cd,abc,abd,acd,bcd,abcd) and the options will return different values.

Is it possible to set one value based on the different buttons selected?

2 replies

20-Turquoise
July 19, 2017

If I'm understanding your use case correctly, you would need to create a service that tracks the buttons selected and then assigns a value based on that. You may try looking into boolean flags. assigning it with each button click and then comparing the combination at the end.

5-Regular Member
July 20, 2017

Hi Cheung, Why don't you use the Checkbox for ABCD and then a button to upload the answer?