Assigning Default Values / Answers to Mobile Workflow Questions

Last Updated: Friday, April 26th 2024


Having set up some questions on your workflow you can make the answer boxes default to values if required.... 
Radio Sets

The default value needs to be a number relating to the position the answer is in the options.

If your options are Red, Green and Blue and you want Red to be default value then set your Default Value to be 0

For Blue set it to 2

Yes No Questions  (incl Yes/No/NA)
Set this to the actual value i.e.  "Yes" or "No"

Text Boxes 

@@job/attribute/SignName Personnel Name (e.g. Engineer / Driver)
@@job/column/notes    This will pull through the notes entered when creating the job
@@job/attribute/JQ-{external reference of the job question] This will pull through the value from a pre-job question
@@personnel/question/{external ref of field} Value from extra question in personnel 
@@customer/question/{external ref of field}  
@@site/question/{external ref of field}  
@@contact/question/{external ref of field}  
@@job/attribute/travel-from-left
 These two will allow you to record time to next destination within the main workflow (and make it mandatory if reqd) rather than asking at the end of the job (which is optional)
@@job/attribute/travel-from-arrived
 
@@cmd/calendar/now
Todays date / time
@@cmd/calendar/edit/+ 6 months

This example sets a date field to 6 months on from current date

@@cmd/calendar/edit/+ 6 months, - 1 day, and so on

You need to make sure each change is separated by a comma and a space: (", ") otherwise the code wont be able to split it out and will get confused. It doesn't matter if you specify "day" or "days" as it will do the same thing anyway.

You can now combine this to update built in equipment date fields and equipment attributes..

e.g.

@@cmd/calendar/edit/+ 6 months|@@equipment/column/next-service-due

This will default the date to 6 months time and store it in next service due date

Or to update attribute....

@@cmd/calendar/edit/+ 12 months|@@update/equipment/attribute/{external ref from attribute}

@@job/attribute/mileage
Typically used with a Numeric Textbox question on arrival tab to record mileage to site.  Using this default value setting will also make this appear on the Time Review page if enabled.
@@job/attribute/total-mileage
Use this on a numeric textbox on the Time Review tab and it will auto-total the mileages as per above
@@job/attribute/mode-of-transport
@@job/attribute/starttravel
@@job/attribute/endtravel
@@job/attribute/startwork
@@job/attribute/endwork
If used with a date/time question, the value filled in will set the date complete column on Motivity jobs
@@job/attribute/onhold-date
@@job/attribute/onhold-arrived-date
@@job/attribute/travel-from-left
@@job/attribute/travel-from-arrived
@@job/attribute/noaccess-date
@@job/attribute/noaccess-arrived-date
@@system/unique_question_number_value
 
Use this to generate a unique number - e.g for a certificate.
You need to add a system_data question (which is hidden on the app) and set the default value to be @@system/unique_question_number_value.
There is a system setting "Unique Question Number Value" that you can use to set or alter the next number used.
@@url/ Use with the hyperlink question type.  Specify the URL (incl http / https) at the end.   In the app you'll see the question name and tapping on it will launch the app browser and go to this URL
@@equipment/attribute/{ext_ref} This will populate an equipment question with the value from the equipment's attributes.

@@personnel/column/employee_ref

@@personnel/column/first_name

@@personnel/column/last_name

@@personnel/column/full_name

@@personnel/column/position

@@personnel/column/telephone

@@personnel/column/mobile

@@personnel/column/email

Assorted information that can be pulled from personnel details onto the mobile workflow
AquaidAmalgamated LiftsStewartGreenstoneGDTLiftecAPEX LiftsNoreasterConceptCordell