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.
- On the Form Modeling bar, click Actions.
- On the Actions page, click Add .
- On the Type list, select Set Device.
- Enter a Name and Description for the action.
- Optionally, configure a unique action for each language separately. See Configure multilingual actions for a form or control for more information.
-
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.
-
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.
-
Click
OK.
The newly created action is added to the table.
- Click Save.
- 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.