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 / Retaining text after s...
Power Apps
Unanswered

Retaining text after submiting (by toogle)

(0) ShareShare
ReportReport
Posted on by 57

I want to remain datas in form inputs after submitting the form. So I checked the forum and found some helpful info, which is not working in my case (but why)?

 

AndreasHoeppi_0-1690786754785.png

 

 

I want "Labornummer" (=Title) stay after submitting.

 

My form "Formular_AP_Messdaten" --> OnSuccess -->

 

Set(VorherigerFormularWert;Formular_AP_Messdaten.LastSubmit)

 

 

"Titel_DataCard" --> Default -->

 

If(Formular_AP_Messdaten.Mode=FormMode.New;VorherigerFormularWert.Titel;ThisItem.Titel)

 

 

My Submit-Button --> OnSelect -->

 

SubmitForm(Formular_AP_Messdaten);;NewForm(Formular_AP_Messdaten)

 

 

There is no error, but the value/data of text input "Labornummer" (Title) disappears after submitting...

Next step, I would like this "remaining value/data"-function is only avaiable if the toogle-button ist activatetd.

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

    Hi @AndreasHoeppi,

    Do you want to display the last submit title if the toggle is true?

    Please try this formula in default property of 'Title_DataCard'.

    If(Formular_AP_Messdaten.Mode=FormMode.New && !IsBlank(VorherigerFormularWert) && Toggle.Value = true;VorherigerFormularWert.Titel;ThisItem.Titel)

     

    Best Regards,

    Kyrie

  • AndreasHoeppi Profile Picture
    57 on at

    Hi @v-mingkz-msft Kyrie,

     

    exactly!

     

    I tried your formula, but its still disappearing.

     

    Those are my sytanx':

     

    My Submit-Button --> OnSelect -->

    SubmitForm(Formular_AP_Messdaten);;NewForm(Formular_AP_Messdaten)

     

    My form "Formular_AP_Messdaten" --> OnSuccess -->

    Set(VorherigerFormularWert;Formular_AP_Messdaten.LastSubmit)

     

    My form "Formular_AP_Messdaten" --> DefaultMode -->

    If(IsBlank(Galerie.Selected);FormMode.New;FormMode.Edit)

     

    My form "Formular_AP_Messdaten" --> Item -->

     

    Galerie.Selected

     

    "Titel_DataCard" --> Default -->

     

    If(Formular_AP_Messdaten.Mode=FormMode.New && !IsBlank(VorherigerFormularWert) && Toggle1.Value = true;VorherigerFormularWert.Titel;ThisItem.Titel)

     

     

    "App"  --> OnStart

     

    ResetForm(Formular_AP_Messdaten);;Refresh(AP_Messdaten)

     

     

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard