1
1
# Silverstripe UserForms Utils
2
2
3
- A collection of utilities for the Silverstripe CMS UserForms module. This
4
- includes a shortcode to insert a user form into any content area and a user form
5
- widget.
3
+ A collection of enhancements & utilities for the Silverstripe CMS
4
+ [ UserForms] ( https://github.com/silverstripe/silverstripe-userforms ) module.
5
+
6
+ These include:
7
+
8
+ - a * shortcode* with which to insert a user form into any content area;
9
+ - a * form widget* that presents a user form (requires
10
+ [ silverstripe/widgets] ( https://github.com/silverstripe/silverstripe-widgets ) );
11
+ - various new * form fields* .
6
12
7
13
## Installation
8
14
9
15
``` sh
10
16
composer require " logicbrush/silverstripe-userforms-utils"
11
17
```
12
18
13
- ## General Usage
19
+ ## Shortcode
14
20
15
21
To use the form shortcode we insert ` [userform id="x"] ` in a HTMLText area where
16
22
` x ` is the user form page ID.
@@ -23,3 +29,35 @@ when using the shortcode. This can be turned off by setting the following in a
23
29
Logicbrush\UserFormsUtils\Shortcodes\UserFormShortcodeProvider :
24
30
block_default_userforms_requirements : true
25
31
` ` `
32
+ ## Form Widget
33
+
34
+ Upon installation, the form widget will be available for insertion into any
35
+ sidebar area using the CMS interface.
36
+
37
+ You have the ability to customize display with the following options:
38
+
39
+ - **Select a form** - Choose the User Form page to be displayed.
40
+ - **Introductory text** - Specify arbitrary text that precedes the display of
41
+ the form in the sidebar.
42
+ - **Show form title?** - Choose whether to display the title of the form page.
43
+ - **Show form content?** - Chose whether to display the content of the form
44
+ page.
45
+
46
+ ## Form Fields
47
+
48
+ This module provides a selection of new field types to use with your user forms.
49
+
50
+ ### HTML5 Date Field
51
+
52
+ A field that utilizes the native HTML5 ` date` input type. This enables
53
+ browser-based input control and validation.
54
+
55
+ # ## US State Dropdown Field
56
+
57
+ A field that provides a dropdown of all US States, including DC.
58
+
59
+ # ## Signature Field
60
+
61
+ A field that collects a signature. Implemented using
62
+ [jSignature](https://willowsystems.github.io/jSignature/#/about/).
63
+
0 commit comments