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 / 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

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

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard