Hi, I want to use the long press button function to allow users to change the text of buttons. How do I do that?
Hi, @donavan.naidoofnw!
When the user long-presses the button, a text-input with a small submit button would appear.
When he/she writes into the text-input, and hits “submit” button, the main button’s text would change through these blocks -
Hope I helped you!
Good Luck!
Thanks!
Hi Kartik, thanks for this.
When I long press it comes up as undefined.
Is you text input initially empty? undefined
is the initial value when you add a new TextInput component.
You can use an IF block to handle these cases.
Here are 3 methods by which you can change the text of a button
https://x.thunkable.com/copy/51b7a00685a4950f0f735dd842d51d2a
Thank you to everyone for such quick replies. I realised i must have a text input box or someplace to get the text to change the button text. I will try to apply all of your suggestions. Thank you so much once again. Very helpful.
Hi, @donavan.naidoofnw!
Keep us posted, and don’t forget to mark the appropriate post as solution !
Thanks!