Skip to content

Commit 5e89775

Browse files
Update adding-a-fieldtype.md
Changed reference to preValues , based on experience in umb 13.8.1
1 parent bc646f9 commit 5e89775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

13/umbraco-forms/developer/extending/adding-a-fieldtype.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The final step involves building the HTML view which will be rendered in Umbraco
128128
/>
129129
```
130130

131-
In the HTML you can access settings via `field.settings`, e.g. `{{field.settings.Caption}}` to render a "Caption" setting. It is also possible to access prevalues via `field.parsedPreValues`.
131+
In the HTML you can access settings via `field.settings`, e.g. `{{field.settings.Caption}}` to render a "Caption" setting. It is also possible to access prevalues via `field.$preValues`.
132132

133133
For built-in field types, Umbraco Forms look for this file in the virtual folder: `App_Plugins\UmbracoForms\backoffice\Common\FieldTypes\`. It will expect to find a file with a name matching the class's name, i.e. `mycustomfield.html`. To add custom fields and themes, **create a folder at the specified path** (also known as the virtual folder). This is because the client-side code is included in the Razor Class Library. As a result, these files are available as if they're stored at a specific location on disk.
134134

0 commit comments

Comments
 (0)