'One button to navigate and clear collection powerapps

i can't find formula, which allows after press one button, clear collect data and navigate to other screen. I try: Navigate(Screen3; ScreenTransition.Fade) And Clear(Collection) But i have error.



Solution 1:[1]

You don't have to use "And", it's only usable for conditions. Instead use a semi-colon between your functions

Clear(Collection) ; Navigate(Screen3; ScreenTransition.Fade)

You can chain as much functions as you want

Please find it this doc some explanation (in Formula chaining) : https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/functions/operators

Have a good day

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nackoo