Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

making an icon appear after a form is submitted

(0) ShareShare
ReportReport
Posted on by 134

I am making a rather large canvas app, it covers 12+ forms. In it, I want an icon to appear when a form is successfully submitted on a different page. Ideally, since this app will be used every month, I would like the icon to appear after a submission of the form from that user within 30 days, but a single session will still be a valuable item. 

BHaapi_0-1681407420149.png

I would like the DirectorForm successful submission to make visible the success1 icon, and otherwise have it hidden. As you might be able to infer, I will need to add similar connectors to all the other forms I have.

 

I've tried so many versions of set() but I just cant seem to get it to work right, after scrolling for answers.. I've finally decided to ask. Thank you for any help!

  • Verified answer
    JR-BejeweledOne Profile Picture
    5,836 Super User 2025 Season 1 on at
    Re: making an icon appear after a form is submitted

    I have a holiday calendar app where I am color coding a date based on the same sort of functions you are talking about.

     

    Since Power apps doesn't have cookies or anything like that what you would need to to is have a separate list and in that list you would patch the users name using User().fullname or Office365Users.MyProfileV2().DisplayName or whatever matches their name in AD or you can use their email.  Patch the date in a separate date column.   It's a pain to try to use the default Created or Modified.  You only need a single entry for each user as you will modify the date column as needed.

     

    In your App OnStart query that list for the matching user and set a variable to true or false using the formula below.   The formula will return either true or false and the variable will be set to the response.  Use the variable in the onVisible property of your icon.

     

    Here is the formula you need to verify if the date is within the current month.

     

    In the app OnStart, don't use the OnVisible of the first screen if you have multiple screens or this will re-evaluate every time you go back, adding unnecessary overhead.  Replace the LookUp filter with your own, although if you patch the user the first time using their email in a column named email, this will work exactly as it is.

     

     

    Set(varIconVisible, LookUp(PowerAppsData, User().Email = Email).DateTest >= Date(Year(Now()), Month(Now()), 1) && LookUp(PowerAppsData, User().Email = Email).DateTest <= DateAdd(
     DateAdd(
     Date(Year(Now()),Month(Now()),1),
     1,
     TimeUnit.Months
     ),
     -1,
     TimeUnit.Days
    ))

     

     

    This image shows you both date parts of the formula above, the formula in use and the date it's checking against.

     

    DateCalc.png

     

     

  • BHaapi Profile Picture
    134 on at
    Re: making an icon appear after a form is submitted

    either 30 days or the calendar month (like if you submit january 3 it will stay checked until feb 1), but just for that user. there will be multiple users at a given time.

  • mmollet Profile Picture
    3,187 on at
    Re: making an icon appear after a form is submitted

    It seems to me like you want it to pop up when the form is submitted then remain there until 30 days have passed then have it go away is that correct? 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard