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 : dcxEOU1eXKUqSLUW4n0k7B
Power Apps - Building Power Apps
Answered

SubmitForm - Hiding Icons afterwards

Like (1) ShareShare
ReportReport
Posted on 8 Sep 2023 01:58:38 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

  • bozo88 Profile Picture
    25 on 08 Sep 2023 at 03:40:44
    Re: SubmitForm - Hiding Icons afterwards

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

     

     

  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on 08 Sep 2023 at 03:03:34
    Re: SubmitForm - Hiding Icons afterwards

    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 

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete