Add $devicecontext to the Form Calculation and Constraint Arcade Profiles

570
0
06-04-2022 01:32 PM
JustinReynolds
Occasional Contributor III

This is similar to $editcontext.editType.

Add $devicecontext property to the Form Calculation and Constraint Arcade Profiles (e.g. $devicecontext.deviceName). 

Some possible items of interest:

  • $devicecontext.deviceName
  • $devicecontext.deviceSoftwareVersion
  • $devicecontext.deviceModelName
  • $devicecontext.deviceModelNumber
  • $devicecontext.deviceSerialNumber
  • $devicecontext.deviceScreenResolution
  • $devicecontext.deviceScreenDimensionX
  • $devicecontext.deviceScreenDimensionY
  • $devicecontext.deviceMobileCarrier

These could be used to scrape metadata or drive other actions in app at runtime.  Maybe they determine grid layout of form elements dynamically in a future app version that might support such things as nested group elements or horizontal arrangement of form elements that are changed based on expressions whose results are derived in part by the information above.  A single map could then deploy forms that are both tablet and phone friendly; taking advantage of any extra real-estate to improve the user experience.