Key Triggers On Form Controls
  • Updated on 02 Aug 2017
  • 2 minutes to read
  • Print
  • Dark
    Light

Key Triggers On Form Controls

  • Print
  • Dark
    Light

This tutorial demonstrates how to create and useKey Triggers on Forms and Form Controls in Decisions . With this feature designers can create key shortcuts and attach different actions like: navigating to different control, triggering action controls, running validation rules or data flows . Hotkey shortcuts may be designed to work on the whole Form or on the specific Form controls.
Example:
We begin in the Designer Folder with clicking Create Flow on Folder Actions Panel.
2018-01-03_151537-1024x594.png

Then, we Name the Flow and click Ok to proceed to the Flow Designer.
2018-01-03_151711-1024x615.png

In the Flow Designer we addShow Form step from Favorite Steps category.
2018-01-03_151751-1024x768.png

Next, we Name the Form and click Create to proceed to the Form Designer .
2018-01-03_151846-1024x768.png

In the Form Designer we add a Button (Action Control) and few Text Box controls.
Then, we select one Text Box . In the Properties panel we should be able to locate Triggers section. Under Key Triggers option we click Add New.
2018-01-03_152640-1024x414.png

Add Key Triggers window pops up.
First, we define Shortcut Key by pressing a key or a combination of keys.
Then, we pick a Trigger Type , for example GoToControl . This trigger will navigate user to the defined control.
And, in Control To Focus option we pick from available controls.
2018-01-03_153121.png

Then, we press Ok to save and continue.
2018-01-03_152945.png

Next, we add another Key Trigger . For Trigger Type option we pick TriggerAction . This type will trigger an action control on the Form (Button, Link, Sub Dialog, etc.).
triggerAction.png

In the Control To Trigger drop-down we pick our Button control.
pickActionToTrigger.png

Also, for this example we created a simple Validation Rule with no triggers. We can create a Key Trigger for RunValidation Trigger Type.
To learn how to create and use Validation Rules please click here .
runValidationRule.png

Finally, we add a Key Trigger with RunDataFlow Trigger Type.
To learn how to create and use Data Flows on Forms please click here .
runDataFlow.png

We created four Key Triggers for the first Text Box control in our Form . They will only work when user’s focus is on that control.
triggersDefined.png

We can also create Key Triggers to work anywhere on the Form if we create them inForm Properties.
triggersOnWholeFormNotControl.png

This completes our Form . We can save it and close Form Designer .
Back in the Flow Designer we connect the outcome from the Form Step to the End Step to complete our Flow .
Next, we are going to run our Flow to test our hotkeys on the Form .
runFlow2.png

Our Form pops up… We set our focus on the first Text Box.
formRuns.png

We click Ctrl + G shortcut and it moves our focus to the third Text Box .
goToControlRun.png

If we click Shift + T , trigger will try to submit the Form by triggering Button action control.
goToActionRun.png

Then, by clicking Shift + V we run a Validation Rule on third Text Box .
validationRuleRun.png

By clicking Shift + D we run aData Flow that populates second Text Box with current user Email Address.
dataFlowRun.png

Was this article helpful?