Skip to main content
Solved

lock the screens in status task

  • March 7, 2024
  • 6 replies
  • 48 views

WilsonX
Sidekick (Employee)
Forum|alt.badge.img+6
  • Sidekick (Employee)
  • 23 replies

In mobile, how to lock the screens to be presented only if the status of the task is different from Open, Accepted, Enroute and Arrived?

Best answer by IniNimesK

@WilsonX if i understood your question properly, you can restrict the debrief workflow of the FSM Mobile task screen by setting the FSM app param ‘DEBRIEF_ALLOWED_STATUSES’.

It accepts comma separated list of allowed task status as its param value and will only allow navigation in the debrief screen only for those status mentioned in the app param.

6 replies

Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • 1183 replies
  • March 8, 2024

Hi @WilsonX 

What do you mean by “...lock the screens to be presented ...”?

Cheers!


Alexander Heinze
Ultimate Hero (Employee)
Forum|alt.badge.img+23
  • Ultimate Hero (Employee)
  • 1054 replies
  • March 8, 2024

Please also mention whether this is FSM Mobile or MWO.


WilsonX
Sidekick (Employee)
Forum|alt.badge.img+6
  • Author
  • Sidekick (Employee)
  • 23 replies
  • March 8, 2024

in FSM Mobile, the field technician is unable to advance to the screens in the task, follow the workflow, according to the status.


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • 1183 replies
  • March 11, 2024

@WilsonX 

You need to add a client script to disable the next button.

var taskStatus = getControlValue('task','task_status');
if(taskStatus == 'YourStatus')
setControlVisibility("BUTTON_NEXT", false);
else
setControlVisibility("BUTTON_NEXT", true);

 

Cheers!


Forum|alt.badge.img+6
  • Hero (Partner)
  • 39 replies
  • Answer
  • March 11, 2024

@WilsonX if i understood your question properly, you can restrict the debrief workflow of the FSM Mobile task screen by setting the FSM app param ‘DEBRIEF_ALLOWED_STATUSES’.

It accepts comma separated list of allowed task status as its param value and will only allow navigation in the debrief screen only for those status mentioned in the app param.


WilsonX
Sidekick (Employee)
Forum|alt.badge.img+6
  • Author
  • Sidekick (Employee)
  • 23 replies
  • March 11, 2024

@WilsonX if i understood your question properly, you can restrict the debrief workflow of the FSM Mobile task screen by setting the FSM app param ‘DEBRIEF_ALLOWED_STATUSES’.

It accepts comma separated list of allowed task status as its param value and will only allow navigation in the debrief screen only for those status mentioned in the app param.

That's right, it perfectly suits my scenario 😘

Gratitude!