Field Actions
Field Actions act on another field on the same form - changing its value, its visibility, whether it can be used, or the choices it offers. They are the most common actions on any form that reacts to what the user does.
Set Field Value
Puts a value into another field.
Field - The field to update.
E-form Field - Only needed when the target is an embedded E-form field: it names the field inside that form to update, rather than the embedded field itself.
Value - What to put in it. {FieldName} references and [variables] are replaced when the action runs, so a value can be built from elsewhere on the form.
This is the workhorse action. Beyond filling fields in, it is how one field triggers another: setting a Multi-Action field to any non-blank value runs it, setting a Modal Window to open or close opens and closes it, and setting a Toolbar to an option number clicks that option. Clearing a field is done by setting it to nothing.
Set Field Visible / Hidden
Shows or hides another field.
Field - The field to change.
Setting - Set Visible, Set Hidden, Toggle, or Unset - Allow Dynamic Properties, which hands the field back to its own conditions. Toggle hides the field if it is showing and shows it if it is hidden, so one button can open and close a section of the form.
That last choice is worth understanding. A field with a Visible When or Hidden When condition normally decides for itself; this action overrides that decision, Toggle included, until it is unset. Use Unset to give control back rather than leaving a field pinned open or closed.
Where the rule is a permanent one - this section is only for internal users, this question only applies when that box is ticked - a condition on the field itself is simpler than an action, because it applies from the moment the form loads without anything having to run.
Set Field Enabled / Disabled
The same, for whether a field can be used.
Field - The field to change.
Setting - Set Enabled, Set Disabled, Toggle, or Unset - Allow Dynamic Properties. Toggle disables the field if it can be used and enables it if it cannot.
Disabling is the gentler alternative to hiding: the user can still see what is being asked but cannot answer it yet, which reads better than a field appearing out of nowhere.
Set Field Focus
Puts the cursor in a field.
Field - The field to focus.
Use it after clearing a form for the next entry, after an error so the user lands on the field that needs fixing, or when a modal window opens so the user can start typing straight away. On a form used all day for repeat entry it saves a click every time.
Set Option Field Options
Replaces the choices in an option list while the form is open.
Field - The Option List, Multi-Option, Radio Button or Simple List to fill.
Options - The choices, in the same delimited or JSON shape an option list's Dynamic Source accepts. Begin the value with ADD: to append to the existing choices instead of replacing them.
This is how a list changes in response to something the user has entered - choose a department and the list of approvers is rebuilt for it. The choices usually come from a variable or a REST call earlier in the same sequence, with the result put into this action's value.
For a list whose choices depend on another field but do not otherwise change, the option list's own Filter Options By setting does the same job with no actions at all, and keeps working when the form is reopened. Reach for this action when the choices genuinely have to be fetched.
Scan Code
Opens the device's camera and puts the text of the code it reads into a field.
- Field - The field to put the text in. Any field can take it, including a Hidden field. On a Button field this setting is called Update Field.
- Dialog Title - The heading on the camera window, such as Scan the asset tag. {FieldName} references and [variables] are replaced when the action runs. Leave it blank to show Scan Code.
Which codes the camera reads is set for the whole form by Code Scanning in the form's Main Options: QR Code, Data Matrix, PDF417 and Aztec by default, and also Code 39, UPC-A, EAN-13 and ITF-14 when the form is set to read barcodes. Main Options also lists where each kind of code is used.
The text goes into the field the same way Set Field Value puts it there, so the field reacts just as it does to that action.
In a Multi-Action the next action waits until a code has been read. That is what makes this action useful: scan an asset tag, then run an Action Set that looks up the asset and fills in the rest of the form. If the user closes the camera without reading a code, the actions after it do not run, so a look-up never runs with nothing to look up. A please-wait message the Multi-Action shows is hidden while the camera is open.
Start it from something the user clicks - a Button, a Toolbar or Button Bar option, or a Multi-Action that a button runs. Browsers can refuse to open the camera when nothing was clicked, so do not run it from a Timer or when a field gets focus.
The camera window shows a box with a cross in the middle. The user holds the code inside the box; when a label carries several codes, the one under the cross is read. The code is read twice before it is used, so the user should hold it steady for a moment.
A code that holds several values, such as an ID and a location, or the back of a driver's license, goes into the field as one piece of text. Split it into separate fields afterwards, for example with an Action Set.
The camera only works when the site is opened over a secure (https) connection; anywhere else the camera window says so instead. The first time, the browser asks the user to allow the camera. On a phone or tablet the back camera is used. While the camera window is open, a picture of the area inside the box is sent to DocMgt about every two seconds to be read; the pictures are not saved.
To let users scan straight into the Text field they are filling in, with no button to set up, turn on that field's Scan Code button setting instead - see Input Fields.