> For the complete documentation index, see [llms.txt](https://atd-dts.gitbook.io/atd-knack-operations/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://atd-dts.gitbook.io/atd-knack-operations/knack/style-guide.md).

# Application Style Guide

Style guide on colors and usage

## Table of Contents

* Banner Image
* Knack Naming Conventions (Pages/Views, Fields, and Objects)
* Colors
* Layout
* Button Styles
* Links

## Banner Image

For how to create a new application banner visit the Apps Wiki page under Knack Settings section. [How to create a new banner](broken://spaces/HbrSOUumoiMv4QwIpjp5/pages/lHsnb1usJHQ8W53cFxAG)

## Knack Naming Conventions

* No **Special Characters** or **Double Spaces**
* Try not to exceed 63 characters for any name
* Use **singular names** over plural names, for example: 'Comment Table' instead of 'Comments Table'

### Page/View Naming Conventions

* Use a unique and descriptive name that no other page will use since the page URL is sourced from its page name
* Use `Title Case`
* Use **action verbs** where appropriate
* For example: Instead of an 'Add Attachment' page, use 'Add Attachment to TIA Review' instead

### Field Naming Conventions

* Do not begin a field with a number. For example: use 'Five Day Work Week' instead of '5 Day Work Week'
* Do not use generic names such as 'ID', instead use descriptive names like 'productID'
* Use `Title Case` for fields that will be exposed to end-users in the app
* The use of # or % symbols in field names is acceptable if exposed to end-users
* Use `camelCase` for fields that are only on the backend and not exposed to the user. For formulas and calculations for example use: 'countTasksCompleted' or 'sumOrangeDistrictTransactions'
* Use the (default) `lower_case_object_name` for connection fields, unless they are directly exposed to the user, in which case, use `Title Case`.
* Field names should not be renamed in a production application without following a change management process. This is critically important if the application has been integrated with external systems.

### Object Naming Conventions

* Use `snake_case`
* Order objects **alphabetically** in Knack
* Renaming objects should follow a change management process, however renaming objects will not break API integrations.
* In the TPW Forms app, prepend objects with the acronym for the program or division that owns them and the word `PROGRAM` or `DIVISION`, e.g. HR\_DIVISION\_awards\_and\_recognition\_nominations

## Colors

All colors must follow [WCAG 2.1 Contrast](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html) ratios

> ### Success Criterion (SC)
>
> The visual presentation of [text](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html#dfn-text) and [images of text](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html#dfn-image-of-text) has a [contrast ratio](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html#dfn-contrast-ratio) of at least 4.5:1, except for the following:
>
> #### **Large Text**
>
> [Large-scale](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html#dfn-large-scale) text and images of large-scale text have a contrast ratio of at least 3:1;
>
> #### **Incidental**
>
> Text or images of text that are part of an inactive [user interface component](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html#dfn-user-interface-component), that are [pure decoration](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html#dfn-pure-decoration), that are not visible to anyone, or that are part of a picture that contains significant other visual content, have no contrast requirement.
>
> #### **Logotypes**
>
> Text that is part of a logo or brand name has no contrast requirement.

### Example Colors

This assumed `#363636` is the default color of font text used in web pages.

<table><thead><tr><th width="162.39996337890625" align="center">Background HEX</th><th width="153" align="center">Foreground HEX</th><th width="190">Compare</th><th width="120.60003662109375">Name</th><th data-hidden>HTML Code</th><th data-hidden>Font Awesome Icons</th></tr></thead><tbody><tr><td align="center"><code>#ffabac</code></td><td align="center"><code>#363636</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYMIxyg2HYfZtUWqNpO%2F-MYMgSYGFKidjR1JSuSv%2Fimage.png?alt=media&amp;token=beb88bf5-cd9d-47b1-a8d6-1746c70e7185" alt=""></td><td>Red</td><td>------------</td><td>------------</td></tr><tr><td align="center"><code>#80d07e</code></td><td align="center"><code>#363636</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYMIxyg2HYfZtUWqNpO%2F-MYMem5JRMegsG7oPEe2%2Fimage.png?alt=media&amp;token=367b320b-7cef-4024-8f59-9562eb367ede" alt=""></td><td>Green</td><td>------------</td><td>------------</td></tr><tr><td align="center"><code>#f6fa6b</code></td><td align="center"><code>#363636</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MqgdYMyMU2z7Bgs0H%2F-M_MsNn2X79-3tf3-BZ1%2Fimage.png?alt=media&amp;token=97f1b691-73ae-433d-9d6b-ba3a0289a876" alt=""></td><td>Yellow </td><td>------------</td><td>------------</td></tr><tr><td align="center"><code>#8397FF</code></td><td align="center"><code>#363636</code></td><td><div><figure><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzNSSXajDFpzOv2IhIv%2Fuploads%2F20tugtiOW0rOTbxEMC5y%2Fimage.png?alt=media&amp;token=e719015b-5ef7-4c54-9b7f-7633a5798c3c" alt="Color Contrast Ratio 4.51:1  Dark Grey(#363636) and Light Blue (#8397FF)"><figcaption></figcaption></figure></div></td><td>Blue</td><td>------------</td><td>------------</td></tr></tbody></table>

### Signs & Markings Data Tracker Colors & Icons

<table><thead><tr><th>HEX Code</th><th width="161.5999755859375">Swatch</th><th width="105.60009765625">Name</th><th>HTML Code</th><th>Font Awesome Icons</th></tr></thead><tbody><tr><td><code>#E41A1C</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYMhpX9R_rzFVEZNFGL%2F-MYMi5cclFtIncDealQG%2Fimage.png?alt=media&amp;token=0eb3217b-b6d8-4538-a02a-0d52c3748f56" alt=""></td><td>Need To Be Issued </td><td><code>&#x3C;i class="fa fa-exclamation-triangle">&#x3C;/i></code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYQ1-b8fQdyfiScLDPC%2F-MYQ2x-vB4L77fFRYcBh%2Fimage.png?alt=media&amp;token=aea2d5b8-29d0-4b34-8d3e-25e49744a037" alt=""></td></tr><tr><td><code>#367DB7</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYMhpX9R_rzFVEZNFGL%2F-MYMiZBEJlWlq0GNhQUy%2Fimage.png?alt=media&amp;token=9b1dbb3a-2a9d-4cff-83e9-cc383b8dc12b" alt=""></td><td>Issued </td><td><code>&#x3C;i class="fa fa-truck">&#x3C;/i></code></td><td><p></p><p><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYQ1-b8fQdyfiScLDPC%2F-MYQ3HepYSVIKEdbgmu5%2Fimage.png?alt=media&amp;token=15fd0128-3ed0-4f83-8f61-2878e10989d1" alt=""></p></td></tr><tr><td><code>#ADADAD</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYMhpX9R_rzFVEZNFGL%2F-MYMk4bQZYcXBA4oqv7a%2Fimage.png?alt=media&amp;token=d6d194e2-dbd6-496a-be13-5471252a74a6" alt=""></td><td>On Hold</td><td><code>&#x3C;i class="fa fa-clock-o">&#x3C;/i></code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_M6xPrsvNa5JIvMidQ%2Fimage.png?alt=media&amp;token=b7aca286-ad9b-426d-bc38-3490f334c39b" alt=""></td></tr><tr><td><code>#974DA2</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYMhpX9R_rzFVEZNFGL%2F-MYMjgfn9bUYx_ajFw54%2Fimage.png?alt=media&amp;token=dd4a224c-d858-459d-bb5b-ca7f05582172" alt=""></td><td>Needs GIS </td><td><code>&#x3C;i class="fa fa-map-marker">&#x3C;/i></code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_M22JGan7F_jMzCEFb%2Fimage.png?alt=media&amp;token=4e856424-3006-4f3b-b3a9-ccb190114068" alt=""></td></tr><tr><td><code>#4CAE49</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYMhpX9R_rzFVEZNFGL%2F-MYMjrzhI8AvlK8azoaS%2Fimage.png?alt=media&amp;token=833b051b-ef3b-4383-9f9c-36dbd357eae1" alt=""></td><td>Final Review</td><td><code>&#x3C;i class="fa fa-flag-checkered">&#x3C;/i></code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_M5ZK2VpHn00asrVl8%2Fimage.png?alt=media&amp;token=cdc402a2-d0fb-4164-8c04-31ccfabae2fb" alt=""></td></tr><tr><td><code>#777777</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYMhpX9R_rzFVEZNFGL%2F-MYMkFhOfeizZwNJDCID%2Fimage.png?alt=media&amp;token=aa08179e-5660-46a7-9db0-06df44f545ba" alt=""></td><td>Closed</td><td><code>&#x3C;i class="fa fa-checked-circle">&#x3C;/i></code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_M79xKD2Ttk47tCYS7%2Fimage.png?alt=media&amp;token=c1c28671-51a1-4f46-b6b7-b887c71f469b" alt=""></td></tr><tr><td><code>#777777</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYMhpX9R_rzFVEZNFGL%2F-MYMkFhOfeizZwNJDCID%2Fimage.png?alt=media&amp;token=aa08179e-5660-46a7-9db0-06df44f545ba" alt=""></td><td>Cancelled</td><td><code>&#x3C;i class="fa fa-times">&#x3C;/i></code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MchF2RelZQCtOUFv_%2F-M_Mf2EA-V28itU8p5rk%2Fimage.png?alt=media&amp;token=4ba18d1b-be24-49d4-91b5-41dea8704bbb" alt=""></td></tr></tbody></table>

### Arterial Management Data Tracker Colors & Icons

<table><thead><tr><th>Background HEX</th><th width="154">Swatch</th><th>Name</th><th>HTML Code</th><th>Font Awesome Icons</th></tr></thead><tbody><tr><td><code>#777777</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MYMhpX9R_rzFVEZNFGL%2F-MYMkFhOfeizZwNJDCID%2Fimage.png?alt=media&amp;token=aa08179e-5660-46a7-9db0-06df44f545ba" alt=""></td><td>Unassigned, In Progress, Assigned, Submit, Closed, Cancelled</td><td><code>&#x3C;i class="fa fa-asterisk">&#x3C;/i></code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_M8sCy2e1YOttoAv0z%2Fimage.png?alt=media&amp;token=d6392839-24a8-498e-86a4-873da43c0cca" alt=""></td></tr><tr><td><code>#FF9B9C</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzNSSXajDFpzOv2IhIv%2Fuploads%2FqosxNTbXSFz39jvdftOz%2Fimage.png?alt=media&amp;token=aa463e2d-9cc7-41b8-95c8-ea68a2bbe885" alt="" data-size="original"></td><td>Unscheduled</td><td>N/A</td><td>N/A</td></tr></tbody></table>

### Service Request Colors

<table><thead><tr><th width="148">Background HEX</th><th>Swatch</th><th>Name</th><th>HTML Code</th><th>Font Awesome Icons</th></tr></thead><tbody><tr><td><code>#cd7070</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_M-6EqHKIG7xqkEu2o%2Fimage.png?alt=media&amp;token=43737341-ce96-42ef-8cd9-b2b82448213a" alt=""></td><td>New</td><td>------------</td><td>------------</td></tr><tr><td><code>#5c68ff</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_M-QKBKSKnBze-kuWu%2Fimage.png?alt=media&amp;token=167bdd3f-787d-4e14-a2eb-f230008d9119" alt=""></td><td>In Progress</td><td>------------</td><td>------------</td></tr><tr><td><code>#67b36a</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_M-_sC3CKHF7N3o4_K%2Fimage.png?alt=media&amp;token=f9d2b3e7-0a7b-48ea-8e25-63cbd04eecd6" alt=""></td><td>Repairs Completed</td><td>------------</td><td>------------</td></tr></tbody></table>

### Finance and Purchasing Colors & Icons

<table><thead><tr><th width="137.79998779296875">Background HEX</th><th>Swatch</th><th>Name</th><th>HTML Code</th><th>Font Awesome Icons</th></tr></thead><tbody><tr><td><code>#ff9b9c</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MggaNXmjJeeWWAXKZ%2F-M_MnV7tI9NmyOM8gSZd%2Fimage.png?alt=media&amp;token=2e466640-4c92-4169-9419-2f0cc2648d29" alt=""></td><td>Not Submitted</td><td>------------</td><td>------------</td></tr><tr><td><code>#377eb8</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MggaNXmjJeeWWAXKZ%2F-M_MnKYnPsdSHqXxXZPe%2Fimage.png?alt=media&amp;token=84ebc13e-1993-4fcc-b8e4-3870e29659d6" alt=""></td><td>Waiting for Approval</td><td>------------</td><td>------------</td></tr><tr><td><code>#ff9b9c</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MggaNXmjJeeWWAXKZ%2F-M_MnDxpqKyNQex9s709%2Fimage.png?alt=media&amp;token=de5e667a-a5e9-4cf6-b3d5-d38a497bc23b" alt=""></td><td>Returned</td><td>------------</td><td>------------</td></tr><tr><td><code>#6a6565</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MggaNXmjJeeWWAXKZ%2F-M_Mn-clIsLujgVwM-se%2Fimage.png?alt=media&amp;token=91b82a39-7a61-44ca-b132-5ab36a1ad98b" alt=""></td><td>Rejected</td><td>------------</td><td>------------</td></tr><tr><td><code>#41ae76</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MggaNXmjJeeWWAXKZ%2F-M_MncqxDzObfo86BgVL%2Fimage.png?alt=media&amp;token=7cbafa5b-827c-4052-b440-276450df4712" alt=""></td><td>Budget Review</td><td><code>&#x3C;i class="fa fa-money">&#x3C;/i></code></td><td><p></p><p><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_MCTUlH68ux_RIfzVw%2Fimage.png?alt=media&amp;token=5a17be0b-d451-4e0f-95cc-0506c711bdd4" alt=""></p></td></tr><tr><td><code>#41ae76</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MggaNXmjJeeWWAXKZ%2F-M_Mo-IDk4I9IVAG0b8_%2Fimage.png?alt=media&amp;token=d3fdcb54-f870-4b39-b965-4d994e59c728" alt=""></td><td>Processing| Purchasing</td><td><code>&#x3C;i class="fa fa-cogs">&#x3C;/i></code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MggaNXmjJeeWWAXKZ%2F-M_Mpucmh1MQdnKdeVV2%2Fimage.png?alt=media&amp;token=130d2555-f72c-46a8-b62e-a3b7f2d29ee9" alt=""></td></tr><tr><td><code>#41ae76</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MggaNXmjJeeWWAXKZ%2F-M_MnrQ727yTUWZdvylm%2Fimage.png?alt=media&amp;token=2be38f96-d7b6-4cf0-90b3-5de3c142d2ed" alt=""></td><td>Processing| Accounts Payable</td><td><code>&#x3C;i class="fa fa-credit-card">&#x3C;/i></code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_MCdlcaep7NfnFKjeM%2Fimage.png?alt=media&amp;token=acf71828-2b5c-4285-81ea-54a7b1df416a" alt=""></td></tr><tr><td><code>#f5901f</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MggaNXmjJeeWWAXKZ%2F-M_MnmKUiZ4YASSakcTw%2Fimage.png?alt=media&amp;token=fd942d94-d2be-4e0c-bef6-588796e031f7" alt=""></td><td>Pending Invoice</td><td><code>&#x3C;i class="fa fa-clock-o">&#x3C;/i></code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_M6xPrsvNa5JIvMidQ%2Fimage.png?alt=media&amp;token=b7aca286-ad9b-426d-bc38-3490f334c39b" alt=""></td></tr><tr><td><code>#6a6565</code></td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MggaNXmjJeeWWAXKZ%2F-M_Mp5FKNr-GzfSOkP6V%2Fimage.png?alt=media&amp;token=84089606-f229-429f-802c-2b6174104452" alt=""></td><td>Cancelled</td><td>------------</td><td>------------</td></tr><tr><td>------------</td><td><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_MggaNXmjJeeWWAXKZ%2F-M_MpAz5mv7lvHgWbq2L%2Fimage.png?alt=media&amp;token=e27f069f-8eee-4649-a092-cfe2a2c4b3b6" alt=""></td><td>Closed</td><td>------------</td><td><code>#ADADAD</code> <img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M_LzIqehO8GhwGuKdYO%2F-M_M79xKD2Ttk47tCYS7%2Fimage.png?alt=media&amp;token=c1c28671-51a1-4f46-b6b7-b887c71f469b" alt=""></td></tr></tbody></table>

## Layout

### Form Layout

* Follow one column form layout (typically best responsive layout, optimized for tablet/phones)
* Use default settings for layout
* Add Attachments, Add Comments&#x20;
  * (Setup: `Display page in modal popup`)
    * If modal popup, can remove the title of the form as it is redundant

### Button Layout

* Depending on business process we do two things
* Add `menu`, add `new page` for form/button (cleaner look, not as efficient)
* Add `form directly onto page` (not as clean of a look, but usually highly efficient for user especially if they have to enter lots of information)
* More about BUTTON STYLES

## Button Styles

### Delete Buttons

Color: `#EE0202`

<figure><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzNSSXajDFpzOv2IhIv%2Fuploads%2FKB6Iz1zXoLX3wzBXxrKU%2Fimage.png?alt=media&amp;token=c2cb1583-3788-49a1-9c6b-ed2302cf6d73" alt=""><figcaption></figcaption></figure>

#### Out of the box "buttons"

* Add Menu>Link to a **new page**
* Add Menu>Link to a **existing page**
* Choose **icon** for button
  * Knack references[ Font Awesome 4.7.0](https://fontawesome.com/v4.7.0/icons/)

#### HTML Buttons

![CSS Code - screen shot](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M942Ykw3EIdfcbnuztn%2F-M945bEW8a6Q8e2AUMM1%2Fimage.png?alt=media\&token=8d31e271-ef22-45f1-86a8-29e5be6537b5)

#### CSS Code:&#x20;

{% code overflow="wrap" lineNumbers="true" %}

```css
.block { 
    display: block; 
    width: 20%; 
    border: none; 
    background-color: #4CAE49; 
    color: white; 
    padding: 5px 5px; 
    font-size: 20px; 
    cursor: pointer; 
    text-align: center; 
}
```

{% endcode %}

* `width` changes the width of the HTML Button
* `background` HTML color code&#x20;
* `padding` is the top and bottom border of the HTML Button
  * first number: `5px` (top)
  * second number: `5px` (bottom)
* `font-size` can change font to different size

#### Trigger function and Details

* Used a trigger function from a Details page and replaced the Link Text with HTML
* In Trigger configuration page, html goes here into this field: `Link Text`

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M942Ykw3EIdfcbnuztn%2F-M944nbQ24DG9ipoSsmX%2Fimage.png?alt=media\&token=a5227fc4-369d-44fa-ad27-3de7722ec3b5)

Enter into `Link Text` field:

`<h2><button class="block><i class="fa fa-plus-circle"></i><strong> New Submission</strong></button></h2>`

Looks like this in the live app

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M942Ykw3EIdfcbnuztn%2F-M944vE8R8Tpc276kbVS%2Fimage.png?alt=media\&token=cbdf99d2-017a-44e6-90d1-7fbaaee94a12)

## Links

### Out of the box "links"

**Option 1:** Add Menu>Link to a **URL**

**Option 2:** Add Rich Text

* Add text for link
* Click **link** icon on toolbar
* Click **Insert link**
  * Enter **URL**
  * Enter **Text**
  * Select **Open link in new tab**

### Using field labels & instructions to add links

#### Example 1: Form Title or Instructions

**Option 1:** Link, Link Text and Icon

`<a href="https://atd.knack.com/parking#verify/"> Look up address <i class="fa fa-search"><i></a>`&#x20;

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M948fcejVin9W-SFJpK%2F-M94IQx-_MnXarZu7YRw%2Fimage.png?alt=media\&token=57b09eb0-8495-4d8a-88b6-43761fa53429)

**Option 2:** Form field label text, link that is an icon

Number of Resident Decals `<a href="https://atd.knack.com/parking#permit-costs/"></i class="fa fa-info-circle"></i></a>`

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M948fcejVin9W-SFJpK%2F-M94JuFcdjp_YUeYbnj9%2Fimage.png?alt=media\&token=b0686349-491d-4363-b702-6d2b200f550d)

**Option 3:** Link and icon that opens in new tab

`<a href="https://purchweb.austintexas.gov/search/RTMATSSelect.cfm" target=_blank> Contract Agreement </i class="fa fa-external-link-square"></i></a>`

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-M94K5eNrrjPX6-bPExB%2F-M94SNh0o0qm5y_nMEFX%2Fimage.png?alt=media\&token=7499846d-9f5e-47c7-b557-dfeb8456fa9e)
