| @@ -108,8 +108,17 @@ | ||
| 108 | 108 | 'template' => 'inputText', |
| 109 | 109 | 'label' => __('Placeholder', 'fluentform'), |
| 110 | 110 | 'help_text' => __('This is the field placeholder, the user will see this if the input field is empty.', 'fluentform'), |
| 111 | 111 | ], |
| 112 | + 'autocomplete' => [ | |
| 113 | + 'template' => 'select', | |
| 114 | + 'label' => __('Autocomplete', 'fluentform'), | |
| 115 | + 'filterable' => true, | |
| 116 | + 'creatable' => true, | |
| 117 | + 'placeholder' => __('Select an autocomplete value', 'fluentform'), | |
| 118 | + 'help_text' => __('Tells the browser what kind of information this field collects so it can be autofilled, and lets assistive technology identify the input purpose (WCAG 1.3.5). Choose "off" to disable browser autofill, or "None" to add no attribute at all. You can also type a scoped value such as "billing postal-code". Anything outside the HTML autofill list is ignored when the form is displayed.', 'fluentform'), | |
| 119 | + 'options' => \FluentForm\App\Services\FormBuilder\AutocompleteTokens::editorOptions(), | |
| 120 | + ], | |
| 112 | 121 | 'date_format' => [ |
| 113 | 122 | 'template' => 'select', |
| 114 | 123 | 'label' => __('Date Format', 'fluentform'), |
| 115 | 124 | 'filterable' => true, |