Add a Set Device action

Use the Set Device action to switch the form factor (Desktop, Phone or Tablet) between a desktop, phone or tablet form. For example, you can view a desktop form in a phone and vise versa. You can override the actual form factor of the device to view it in a Desktop, Phone or Tablet for a single session or for a set period of time.

When an event with a Set Device action executes, it retrieves the form in the specified form factor until the action is called again to switch to a different form factor, or the session or the set period expires.

  1. On the Form Modeling bar, click Actions.
  2. On the Actions page, click Add Generic Add.
  3. On the Type list, select Set Device.
  4. Enter a Name and Description for the action.
  5. Optionally, configure a unique action for each language separately. See Configure multilingual actions for a form or control for more information.
  6. Consume a string variable or enter a static value in the Device Type box.

    The static value or the value of the variable must be desktop, phone or tablet.

  7. For Persistence Period, select either option:
    • This Browser Session Only: The form reverts to the actual form factor when you close and reopen the browser.
    • Configurable Period: Set the period in days, hours and minutes. The form reverts to the actual form factor when the configured period expires.
  8. Click OK.

    The newly created action is added to the table.

  9. Click Save.
  10. Associate the action with the control to trigger this action. To call the Set Device action upon form load, associate the action with the form. See Associate an action with a form or control for more information.