Style Example - Form

Style Example - Form

Description

This Stylesheet has been designed to give a webform-like feel to the pages, with a minimalist and segmented design approach to provide a functional Workflow that is still aesthetically appealing. If lots of content or data capture is present within the process, the agent can either scroll through each section, or that part of the process could be split into multiple pages.

Separate "wells" (elements with a contrasting background colour to the main background, used to visually group the content) can be created by using a Table Break control between each desired section. If no Table Break controls are used, all content placed on the page will be contained within a single well. Having one or more wells in the Workflow allows for a vibrant and modern background to be present within the Workflow without impacting readability or usability for the agents due to colour clashes; for this reason, a neutral and plain background is recommended for these wells.

At the bottom of this article, a sample Workflow is available that makes use of the demonstrated stylesheet. Users of Intelligent Agent can download and import this into their own instance of the platform. This Workflow has been designed with a fairly narrow body to the form, and the wells will remain aligned with the centre of the screen if the screen is re-sized. This type of design works nicely when Intelligent Agent is embedded within another application or window, where screen real-estate could be limited due to telephony controls or other content outside of the Intelligent Agent frame.

CSS

The below code would need to be saved as a Stylesheet within your Intelligent Agent system, and then a Workflow created that was assigned this Workflow. There are also some style definitions for Text Label controls that need you to define Additional Classes in their field styling tabs.
  1. /* Defining common style variables */
  2. $theme_cyan: #00dbde;
  3. $theme_magenta: #fc00ff;
  4. $box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.075);

  5. /* Vibrant background of the Workflow */
  6. #scriptBody {
  7. background-image: linear-gradient(
  8. 45deg, /* Angle of the gradient */
  9. $theme_cyan, /* The first colour */
  10. $theme_magenta /* The second colour */
  11. );
  12. }

  13. /* Defining the well styling. Using a Table Break control will automatically create additional wells in the final Workflow */
  14. #vart table:not(:last-child) {
  15. background-color: white;
  16. border-radius: 10px;
  17. padding: 30px;
  18. margin: 15px;
  19. }

  20. /* Giving all controls that contain a Button element a default style that reverses the main background */
  21. .button {
  22. background-image: linear-gradient(
  23. 45deg, /* Direction of the gradient */
  24. $theme_magenta, /* The first colour */
  25. $theme_cyan /* The second colour */
  26. );
  27. width: 400px; 
  28. color: white;
  29. font-size: 20px;
  30. border-radius: 50px;
  31. font-weight: bold;
  32. }

  33. /* Styling any default Text Box controls */
  34. .control-text-box {
  35. input {
  36. color: #666;
  37. border: none;
  38. background-color: transparent;
  39. box-shadow: $box-shadow;
  40. width: 500px;
  41. }
  42. }

  43. /* Styling any default Textarea controls */
  44. .control-text-area {
  45. textarea {
  46. color: #666;
  47. border: none;
  48. background-color: transparent;
  49. box-shadow: $box-shadow;
  50. width: 500px;
  51. height: 150px;
  52. }
  53. }

  54. /* Custom Class for Text Labels, designed to be used at the top of each well section. This could be for text to be read out, or instructions */
  55. .Header {
  56. width: 500px;
  57. text-align: center;
  58. font-size: 30px;
  59. font-weight: bold;
  60. }

  61. /* Custom Class for Text Labels, designed to be placed above input controls such as Text Box or Textarea */
  62. .LabelAboveInput {
  63. width: 500px;
  64. text-align: left;
  65. font-size: 18px;
  66. }

Sample Workflow Download

Download here - Please note this Workflow was created in version 6.0.53.54981, and should not be imported into an earlier version of Intelligent Agent!
    • Related Articles

    • Style Example - Bootstrap & Variable Width

      Minimum Width Full Screen Description This Stylesheet contains 3 main sections; A left aligned panel which contains general instructions or notes to the User, the controls that form this panel would tend to be present on every page of the Workflow as ...
    • Script Styling Examples using CSS

      With the release of version 6.0.53 of Intelligent Agent, it is now possible to control the default styling for a Script using a CSS Stylesheet. This allows for styling to be applied to both default/built-in classes and for the creation of custom ...
    • Technical Roadmap - 2022 Q2

      Overview Below is the latest update to the Awaken Technical Roadmap. This roadmap covers all products in the Awaken suite. The roadmap is broken into 3 delivery groups: Now - Items have been fully scoped in development and testing at the moment or ...