Announcements
Hello all,
I have a button labelled 'Paste'. OnSelect I want this button to paste a value into DataCardValue29 on the same screen. The variable (TOO) has been set previously. The code I am trying is below and compiles but doesn't paste.
DataCardValue29.Text = TOO;
I tried using UpDateContext but without success.
Thank you in advance.
Rob
Hi @rob4681 you can use Set Function to set a variable like so:
Set(VarPasteText,TOO)
Then have the DataCardValue29 text property to:
VarPasteText
Please click Accept as solution if my post helped you solve your issue. ✔️ This will help others find the solution to this problem. It also closes the item. Remember, you can accept more than one post as a solution.If the content was useful in other ways, please consider giving it Thumbs Up. 👍ThanksAndrew
Am I right in thinking this will update the DataCardValue29 every time? I have already set the TOO variable on a different canvas. I want the option,
If the paste button is pressed: pass the text of the TOO variable to DataCardValue29
If the paste button is not pressed: Manual text entry to DataCardValue29 is possible or can be left blank.
Thanks again.
@rob4681 If you put the set on select of the button this will only paste this when the button is selected not evetime you change the TOO variable you could add in a if statement to check that the paste text is blank:
DataCardValue29 text property to:
If(IsBlank(VarPasteText),"",VarPasteText)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 914
11manish 627
Valantis 598