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 Platform Community / Forums / Power Apps / Populate last submitte...
Power Apps
Unanswered

Populate last submitted values in a form for text and selection fields

(0) ShareShare
ReportReport
Posted on by 6

I have a form where users will input requests which are then linked to a Sharepoint list. The form has some text columns and some radio button selections. However, users have mentioned how in a batch of requests, only a few inputs change, so it would help to be able to auto-populate the form using their last submission.

 

Currently, I have managed to partially resolve this issue (for text fields only) using another thread. Thanks @RandyHayes !

However, the radio button selection fields do not auto-populate and I would like to seek help for this.

 

Thanks in advance 🙂

Categories:
I have the same question (0)
  • v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @he-man-123 ,

     

    Please try this in the DefalutSelectItems in the DataCardValue for the Choice Column.

     

    If(
     !IsBlank(Form2.LastSubmit.ID), LookUp(Choices([@'YourDataSource'].ChoiceColumnName),Value = Form2.LastSubmit.ChoiceColumnNam.Value,Form2.LastSubmit.ChoiceColumnNam),
     ThisItem.ChoiceColumnNam
    )

     

    vhanytianmsft_0-1692673607504.png

    Hope this will help you,

    Best Regards,
    Tina

  • he-man-123 Profile Picture
    6 on at

    Hi Tina, thanks for getting back to me. 

     

    I don't have DefaultSelectItems so I did as you suggested in Default in the DataCard. However, I receive the following error: 

    heman123_0-1692685912289.png

     

    Any idea on how to resolve this?

  • v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @he-man-123,

     

    It is seems that the formula you write mistake in the LookUp of the Second parameter.

    If(
    !IsBlank(Form2.LastSubmit.ID),

    LookUp(Choices([@'YourDataSource'].ChoiceColumnName),

    Value = Form2.LastSubmit.ChoiceColumnName.Value,

    Form2.LastSubmit.ChoiceColumnName),
    ThisItem.ChoiceColumnName
    )

     

    Hope this will help you,

    Best Regards,
    Tina

  • he-man-123 Profile Picture
    6 on at

    Hi Tina,

     

    I was looking online and was able to find this fix too. While it shows no errors, when I run the powerapp, it does not remember my last submit choice for the field.

     

    Could I clarify if it is correct to try this in Default of the DataCard?

    Alternatively, when I try this in the Default of the RadioButton, I get the following:

    heman123_0-1692686896474.png

     

     

    Do let me know what I am doing wrong and how to troubleshoot 🙂

  • v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @he-man-123 ,

     

    If you use Radio Control for showing the Choices options.

    We made a sample for you.

    If(
     !IsBlank(Form2.LastSubmit.ID), LookUp(Choices('0822-1'.Choice),Value = Form2.LastSubmit.Choice.Value,Form2.LastSubmit.Choice.Value),
     ThisItem.Choice.Value
    )

    vhanytianmsft_0-1692688594679.png

     We deduce that you have some formula in the OnSuccess so that the Canvas App cannot remember your last Submitted.

     

    Hope this will help you,

    Best Regards,
    Tina

  • he-man-123 Profile Picture
    6 on at

    Hi Tina, thanks once again.

     

    The following is my OnSuccess formula, which is working on remembering the LastSubmit text values:

    Set(currItem, Form1.LastSubmit); Set(glbCurrentRecord, Self.LastSubmit); Navigate(FirstScreen); Notify("Form submitted successfully",NotificationType.Success)

     

    Your provided formula doesn't seem to work:

    If(
    !IsBlank(Form1.LastSubmit.ID), LookUp(Choices('DataSource'.Choice), Value = Form1.LastSubmit.Choice.Value, Form1.LastSubmit.Choice.Value),
    ThisItem.Choice.Value
    )

     

    Appreciate your help.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard