PowerApps: Custom List Form: Request Hide

New function that saved my day: RequestHide()

This function is used to close a PowerApp custom list form using a button and then directs you to the source page.

Scenario: I have a custom list PowerApps form that the users accesses from a classic SharePoint page with a Calendar view (Note: The calendar view only works in classic and this client likes to drag and drop items in the calendar. There is not modern replacement for that yet.)

When the user submits the form, it takes them to the all items list view. Instead, they want to go back to the Calendar page.

So I to solved this I used the Launch() function to direct the users to the calendar page. But this creates 2 problems. The form remains open and the page opens in a new tab. Too many new tabs was annoying for my client (and really for anyone).

So finally I discovered the RequestHide() function. This function acts like the cancel button and redirects you back to the source page. So if you are coming from a page that is not the all items view, it will take you back to that page.

You can also construct the URL to the form and at the &source parameter to the end of the URL so that SharePoint knows where to direct users once they are done. (example: a flow that has a hyperlink to a list item)

Now when they click the cancel or submit button they are redirected to the &source page on the URL in the same Tab!

See the video below showing you the difference in functionality when using the Launch() vs RequestHide() functions.

I have also used this function for a back button, to close the form and go back to the source URL.