Question

FSM : Mobile : Dont show certain screen when Back button is clicked

  • 19 April 2023
  • 1 reply
  • 45 views

Userlevel 5
Badge +15

Hi Team,

Navigation is from custom Screen 1 to custom Screen 2

Screen 1 needs to be shown only once & not when the user click Back button from Screen 2.

Can this be achieved, please provide any pointers or samples for the same.

 

NOTE : We tried using the Workflow script & the refresh script, both dont seem to get a chance to do the validation.


1 reply

Userlevel 6
Badge +26

Hey @CKOppBox 

There is no straight forward solution for this. Need to be a bit creative.

Just quickly thinking of the requirement - 

  • On screen 1 refresh script populate a value on the task(?) record.
    So on the first time the script is triggered the value is populated.
    • e.g. user_defX = 1 (default can be 0)
  • On the same script have a condition that if user_defX = 1 go to screen ‘MY_SCREEN’
    • Or try using the workflow condition script with the same condition.
  • If you need to access the screen again, let say on another device, make sure to return the value to it’s original value. e.g. when task change the assigned user.

Need to test and play a little bit with the scripts and conditions. 

Let us know if that worked for you.

Cheers!

Reply