Actually the scenario is that I have to disable one button(Submit Button) which is in User screen , when it is navigating from Screen 1 and when it is navigating from screen 2 it should allow to edit that button (Submit button).
Note - The button (Submit Button) is in same screen only, that is User Screen.
So how can we give condition for this case?