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

Community site session details

Session Id : Flum2ozjMY7rfYuTjNh7Cw
Power Apps - Building Power Apps
Unanswered

Add a 'timer' / delay to OnSelect

Like (0) ShareShare
ReportReport
Posted on 9 Aug 2019 03:50:05 by

Greetings!  Seeking help for question here.

With a SUBMIT button I have set it to:

1. submit form

[it will also update the HTML text based on the form content]

2. run a flow to create a pdf file based on the HTML text

 

Problem come here is the pdf created reflects the not the most recent submittion of form but an elder version.

When I seperated one and two into two seperate button it works file. Seems to be a time lag between 1 & 2.

 

To work around this, is there a way to create step 1.5 to somehow lenghten the execution and allow the complete update of new data?

Categories:
  • galdezanni Profile Picture
    175 on 23 Apr 2020 at 17:09:29
    Re: Add a 'timer' / delay to OnSelect

    Hi,

     

    Look this...

     

    https://www.c-sharpcorner.com/article/how-to-add-delay-or-wait-until-in-powerapps/

     

    I hope it helps you...

  • Community Power Platform Member Profile Picture
    on 09 Aug 2019 at 05:07:06
    Re: Add a 'timer' / delay to OnSelect

    And I wonder if there is a cascating way to activate a onselect. ie. click button 1, activate timer, once timer end activate button 2 automatically? Just not good at how to make it happen this way.

    I belief a 5 second delay in between shall be okay for data to be saved and refreshed.

  • leyburn19 Profile Picture
    2,157 on 09 Aug 2019 at 05:06:40
    Re: Add a 'timer' / delay to OnSelect

    No I was suggesting as you say.  But what then is your filter?  Is it finding the record you need to display

  • Community Power Platform Member Profile Picture
    on 09 Aug 2019 at 05:04:09
    Re: Add a 'timer' / delay to OnSelect

    With current setting I do use a filter inside concat inside HTML text to filter the recored to add to the HTML text. But do you suggest to add another filter outside the HTML text?

    Is this achievable? I thought HtmlText would only accept " string " in between but not  a formula on top?

  • leyburn19 Profile Picture
    2,157 on 09 Aug 2019 at 04:59:02
    Re: Add a 'timer' / delay to OnSelect

    If your submit is before the HTML,  it will save but then your HTML may have blanks as the form refreshes.  If you submit after the HTML then the HTML is not based those in the form as they are not yet saved (Checken and egg)

     

    When I do this I uses a filter in the HTML that is based on something Filter(Source,ID=Last(Source).ID) - (not sure on the syntax but it is something like that. after teh submit

     

    If the ID is already Known as you may be editing,  then I use a variable that gets populated with the ID eg" Filter(Source,ID=VarID)

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete