Umbraco Forms
CMSCloudHeartcoreDXP
15.latest
15.latest
  • Umbraco Forms Documentation
  • Legacy Documentation
  • Release Notes
  • Installation
    • Installing Umbraco Forms
    • Licensing
  • Upgrading
    • Upgrading Umbraco Forms
    • Version Specific Upgrade Notes
  • Editor
    • Creating a Form - The basics
      • Form Settings
      • Form Advanced Options
      • Form Information
      • Overview Of The Field Types
        • Date
        • File Upload
        • reCAPTCHA V2
        • reCAPTCHA V3
      • Setting-up Conditional Logic on Fields
    • Attaching Workflows
      • Workflow Types
    • Viewing And Exporting Entries
    • Defining And Attaching Prevalue Sources
      • Prevalue Source Types Overview
  • Developer
    • Property Editors
    • Preparing Your Frontend
    • Rendering Forms
    • Rendering Forms Scripts
    • Themes
    • Custom Markup
    • Email Templates
    • Working With Record Data
    • Umbraco Forms in the Database
    • Extending
      • Adding A Type To The Provider Model
        • Setting Types
      • Adding A Field Type To Umbraco Forms
        • Excluding a built-in field
      • Adding A Prevalue Source Type To Umbraco Forms
      • Adding A Workflow Type To Umbraco Forms
      • Adding An Export Type To Umbraco Forms
      • Adding a Magic String Format Function
      • Adding A Server-Side Notification Handler To Umbraco Forms
      • Adding a Validation Pattern
      • Customize Default Fields and Workflows For a Form
    • Configuration
      • Forms Provider Type Details
    • Webhooks
    • Security
    • Magic Strings
    • Health Checks
      • Apply keys and indexes
      • Apply keys and indexes for forms in the database
    • Localization
    • Headless/AJAX Forms
    • Block List Labels
    • Field Types
    • Storing Prevalue Text Files With IPreValueTextFileStorage
  • Tutorials
    • Overview
    • Creating a Contact Form
    • Creating a Multi-Page Form
Powered by GitBook
On this page
  • Get values from textfile
  • Umbraco Documents
  • SQL Database
  • Umbraco Data Type Prevalues

Was this helpful?

Edit on GitHub
Export as PDF
  1. Editor
  2. Defining And Attaching Prevalue Sources

Prevalue Source Types Overview

PreviousDefining And Attaching Prevalue SourcesNextProperty Editors

Last updated 5 months ago

Was this helpful?

There are some default prevalue source types that can be used. In this article, we will give a quick overview of them:

Get values from textfile

Upload a textfile that contains the prevalues. Each prevalue should have its own line in the file. Once the file has been uploaded, you can find it in ~/wwwroot/App_Data/UmbracoForms/Data/PreValueTextFiles/{GUID} where the {GUID}is replaced with the pre-value ID.

Umbraco Documents

Allows to use content nodes from a specific source as prevalues. You can apply the following settings in the Details section:

  • Select which Value field should be used for the value of the prevalue.

  • You can define the root node by either

    • Choosing a node directly from the Content tree or

    • Using XPath

  • Enable Use current page as root instead of choosing a specific root node. The preview is not available when this setting is enabled.

  • Select a specific Document type, if the selected root node contains a different Document Type.

  • Enable List all Descendants of the selected root node to list all levels of descendants.

  • Select Order by from the drop-down list to display how the prevalue list should be ordered.

  • Select your preferred Cache option for caching the list of prevalues when rendering in a form.

SQL Database

You can provide the following details in the Details section:

Connect to a OleDB compatible database table and construct a prevalue source from it. Once selected, it will be editable from the Forms interface.

The following configurations need to be set in the Details section:

  • Connection string (either choose one from your web.config or add another from a textfield).

  • Connection String from configuration

  • Table Name

  • Key Column

  • Value Column

  • Caption Column

  • Select your preferred Cache option for caching the list of prevalues when rendering in a form.

Umbraco Data Type Prevalues

Choose an Umbraco Data Type to use its configured prevalue collection.

In the example below, the prevalue collection from a Data Type called Home - Font - Radio button is used:

Get values from textfile
Umbraco Documents
SQL Database
Data Type prevalues