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 / SubmitForm - Hiding Ic...
Power Apps
Answered

SubmitForm - Hiding Icons afterwards

(1) ShareShare
ReportReport
Posted on by 25

Hi

 

I have a Sharepoint List with a customized Power Apps form attached.

 

The form has a number of icons that show (Visible = true) set to show based on the input field meeting validation requirements. Further there are error message boxes who visible property is dependent on the icon type (Cancel) AND visible (true)

 

A single button "Submit" calls SubmitForm(SharePointForm1) and according to documentation if this success calls OnSuccess where  I have a series of ico_FirstName.Visible = false statements for all the icons they do not hide.

 

Regardless of where I try to reset icon to visible = false they will not hide and the error message keeps appearing.

 

All I want to do is reset a form back to default.

 

Trying to figure out how to reset the icons to visible = false on a SubmitForm (as the

Categories:
I have the same question (0)
  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    Use Context Variables: For each icon, instead of setting its Visible property directly, tie it to a context variable, like this:

     

    // For icon named ico_FirstName, the Visible property
    varIcoFirstNameVisible
    

     

     

    Initialize Context Variables: In the specific screen your form is on, for Screen.OnVisible, initialize the context variables

     

    UpdateContext({varIcoFirstNameVisible: false, varIcoLastNameVisible: false, ...})
    

     

    Form visibility of fields set to true: I presume your current logic sets the appropriate values to true, but you may want to adjust them to use the context variables instead of directly setting them

     

    Reset Form and Icons in OnSuccess: In the OnSuccess property of your SharePoint form, you can both reset the form and the visibility variables:

     

    Concurrent(
     ResetForm(SharePointForm1),
     UpdateContext({varIcoFirstNameVisible: false, varIcoLastNameVisible: false, ...})
    )
    

     

    See if it helps @bozo88 

  • bozo88 Profile Picture
    25 on at

    Thank you!!. I already have a context variable and using Concurrent in OnSuccess has solved the problem.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard