web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

update comment box

(0) ShareShare
ReportReport
Posted on by 184

i added input box - it should copy changes made in other input box and update ..

it should keep old record also..

 

on default of input box : i added below code

DataCardValue63.Selected.Value &"-"& varDate &Char(10)&Char(10)&  DataCardValue63.Selected.Value &"-"& varDate

 

but it is showing same comment repeating twice but not showing old comment

 Not started-10/112021
Not started-10/112021 

Categories:
  • WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    Hi @Ungarala1 ,

    It is doing exactly what you are asking it to do - showing the same text string on two lines

    DataCardValue63.Selected.Value & "-" & varDate 
    & Char(10)& Char(10) & 
    DataCardValue63.Selected.Value & "-" & varDate

    What do you mean by "keep old record"?

     

     

     

  • RusselThomas Profile Picture
    4,014 on at

    Hi @Ungarala1 ,

    To keep track of values, you'll need to store them somewhere so you can add to them.  If not in your source, then in a collection or a variable.   

    To demonstrate, we'll use a variable to hold the data, but you can adapt this to your scenario in whichever way is more applicable.  Create a new screen, add an input control, a button and a text label.  The input is to create new comments, the button is to submit the new comments, and the text label is to show you all the comments you've inputted so far.  

    On the button, set it's OnSelect: property to;

     

    Set(Comments, Comments &Char(10)&Char(10) & TextInput1.Text)

     

    On the text label, set it's Text: property to;

     

    Comments

     

    Type stuff into the input, hit the button and see if that's the behaviour you're looking for.

    The key is to add the new input to the previous comments whenever you update the comments.  Basically each time we're saying Comments = Comments & TextInput.Text 

    If this is what you're looking for, you should be able to adapt this to your scenario - if you need more help with that, you'll need to share a bit more info and explanation on the screen you're working on - screenshots help 🙂

    Hope this helps,

    RT

  • Ungarala1 Profile Picture
    184 on at

    I Need like this

     Not started-10/112021
    In progress-10/1/12021 

     

    when ever i select dropdown list of other column (datacardvalue63)... it show lastest and old comment

  • WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    @Ungarala1 , 

    Yes, but as @RusselThomas has said, you need to store the "old comment" in a Variable

  • Ungarala1 Profile Picture
    184 on at

    error.JPG

     

     

    this this idea, your concept is working for single input box, but here i need to copy inputs from 2 boxes and paste in Timeline box ..as mention in timeline format.. i need same format.

  • WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    @Ungarala1 ,

    Due to time zone, I will depart here and leave you with @RusselThomas -

  • RusselThomas Profile Picture
    4,014 on at

    Hi @Ungarala1 ,

    So yes, it was a conceptual demonstration because there wasn't really enough information in your question to apply it more practically. So, based on your screenshot (which helps a lot, thank you 🙂) we can see that you're not actually duplicating the input source as your initial question suggested, but concatenating status and date.  Perhaps we should clarify some understanding here - I suspect there may be a language barrier we need to work with, but helping to clarify this will help me understand how best to help you.  

    • You're using an INPUT control, and you're setting its Default: property to the status & date.
    • This is giving you "Completed-7/9/2021" in the input control.
    1. Are you wanting or expecting users to edit this information, overwrite it, or add to it - or is it supposed to be automated and "read only" from the user perspective? (Why are you using an input control for this?)
    2. You have an existing list of comments in the timeline box, separated by "|".  What is the Default: property of the Timeline box?
    3. It sounds like you want to update the timeline box by adding the latest comment - in other words, append "Completed-7/9/2021" to the existing contents of the Timeline box, separating it with "|" - is that correct?
    4. If so, what action is doing this?  How are you updating what's in the timeline box?  Is there a button somewhere, or aren't you updating it and you just want the input to contain what's already in the timeline box PLUS the new status & date?

    Kind regards,

    RT

  • Ungarala1 Profile Picture
    184 on at
    1. Are you wanting or expecting users to edit this information, overwrite it, or add to it - or is it supposed to be automated and "read only" from the user perspective? (Why are you using an input control for this?)--when ever user change 'status' in dropdown & 'current status since date' it automatically update comment in Timeline and previous status change also to be kept in box.
    2. You have an existing list of comments in the timeline box, separated by "|".  What is the Default: property of the Timeline box? Parent.Default
    3. It sounds like you want to update the timeline box by adding the latest comment - in other words, append "Completed-7/9/2021" to the existing contents of the Timeline box, separating it with "|" - is that correct? YES
    4. If so, what action is doing this?  How are you updating what's in the timeline box?  Is there a button somewhere, or aren't you updating it and you just want the input to contain what's already in the timeline box PLUS the new status & date?: after changing using save button to submit form in sharepoint
  • RusselThomas Profile Picture
    4,014 on at

    Hi @Ungarala1,

    Thanks for that, it's starting to make a little more sense.

    Ok, so please check the timeline CARD Default: property.  It should read something like

    ThisItem.Timeline

    or whatever your timeline column name is.  I'll assume it's called "Timeline" for now.  The timeline box is inside the card, and Parent.Default means the box is getting its default from the card.  

    It's also worth noting that showing the comments is different to updating the comments.  You can achieve what you want simply by changing the Timeline card Update: property to 

    ThisItem.Timeline & "|" & DataCardValue63.Selected.Value & "-" & DataCardValue39.SelectedDate

    This will work, although you won't see the result until after it's actually submitted and updated.  If you want the Timeline box to actually show this so you can see it before you hit Submit, then you can set the timeline box Default: property to the same formula as above.  Now you'll see what it looks like before you submit it.

    When the form is submitted, it will append the status and the date to the existing comments.

    If you want some other control to show it, (like the input control) you can likewise set their defaults.

    Hope this helps,

    RT

  • Ungarala1 Profile Picture
    184 on at

    without changing this datacard value, when i saved.. it is creating duplicate everytime.

    DataCardValue63.Selected.Value & "-" & DataCardValue39.SelectedDate

     

    Completed-7/9/2021|Completed-7/9/2021|Completed-7/9/2021|Completed-7/9/2021

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard