I want to have a button that updates a label. But does not just replace what is in th elabel but adds on to it.
So for example when you first enter the screen the label should be blank.
Then the user selects a value and presses the button this value is then written to the label and a , put after that value.
Then they choose another option from drop down list press the button and that adds it to the label...
So label now looks like option1, option2,
then it could go on and on..
On the next screen is a form and I then want to prepopulate a card on that form with the final results of that label.
I tried to use UpdateContext(newobjectives) where newobjectives is the name of the label, but cant seem to work out which value you would pass to the label.
Solved! Go to Solution.
On the on visible set a variable like updatecontext({varbuttontext:""}) or Set(varbuttontext,"")
Then on the onselect to the button set the variable. EG:
If(varbutton="",Set(varbutton,Dropdown?.Selected.Value,),Set(varbutton,varbutton &"," &Dropdown?.Selected.Value,)
Dropdown selected.value might be dropdown.selected.result if it is created witha distinct function
Now make label text property to equal varbutton
On the on visible set a variable like updatecontext({varbuttontext:""}) or Set(varbuttontext,"")
Then on the onselect to the button set the variable. EG:
If(varbutton="",Set(varbutton,Dropdown?.Selected.Value,),Set(varbutton,varbutton &"," &Dropdown?.Selected.Value,)
Dropdown selected.value might be dropdown.selected.result if it is created witha distinct function
Now make label text property to equal varbutton
Thank you that worked a treat
User | Count |
---|---|
194 | |
123 | |
87 | |
48 | |
40 |
User | Count |
---|---|
277 | |
165 | |
139 | |
80 | |
76 |