Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there,
I have an issue here, hope you guys can help.
Request:
Example, i have 1 text object to display 2 different message. When i click on button 1 - it will show 'Hello World' , when i click on button 2, it will show 'Hello Heaven'.
Problem:
Sorry of my screenshot. i use color instead. but ultimately i want to to display different text, when i click on different buttons.
I have created variable called - vbutton1. and definition = 1.
Button1 = i put 1, Button2 , i put 2
in the text object expression , i put if($(vbutton1) = 1,blue(),red())
so when click on button 2, it didnt change to RED. no response at all.
Please help guys!
Rgds
Jim
hI @jim_chan
Please follow the below steps
1. Create variable in my case i have created as vTest
2. Drag a button to the sheet
3. Go to action and navigation and select 'set variable value' from the drop-down
4. give the button a value 1 for button 1 and do the same for the second button and except set value 2 for second button.
drag a text box and put the below expression
if(vTest=1,'Red','blue')
Hi @jim_chan ,
In button property you should replace variable from vAvgSaleBLB to vbutton1.
No no... that just an example. Doesn't matter it is vbutton1 or vAvgSaleBLB. My point is, the whole thing didn't work.
Or can you show me, how to create buttons to change text in 1 text object ?
Rgds
Jim
ooh.. in that case please remove the = sign from the variable you have set
eg - just put 1 instead =1
Hi there,
I don't really get you. Put 1 instead of =1 ?
if($(vbutton1) = 1,blue(),red()) how ?
hI @jim_chan
Please follow the below steps
1. Create variable in my case i have created as vTest
2. Drag a button to the sheet
3. Go to action and navigation and select 'set variable value' from the drop-down
4. give the button a value 1 for button 1 and do the same for the second button and except set value 2 for second button.
drag a text box and put the below expression
if(vTest=1,'Red','blue')
haloc @jim_chan
Button1 = i put 1, Button2 , i put 2
make changes in button='1',button='2'
add siglecout
Hi there,
Sorry for my late reply. i will try it out today bro. and update you.
RGds
Jim