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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard