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 / making an icon appear ...
Power Apps
Unanswered

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!

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    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? 

  • BHaapi Profile Picture
    134 on at

    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.

  • Verified answer
    JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    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

     

     

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard