Skip to content

Admin note: Thanks for your interest in developing for the Ninja Forms plugin and add-ons. Most of the Codex documentation provided here is applicable, but due to updates of the plugin and add-ons please be aware that you may find some outdated material that will need to be adapted for use with Ninja Forms in its current, more modern, state. The code here is provided as a courtesy to you but is considered as-is, and unfortunately we aren't able to provide assistance with any custom development. We are hoping to add updates to the resources provided here in the future.

Ninja Forms Developer Resources
Ninja Forms Developer Resources

DEVELOPER

  • About
  • Codex
  • About
  • Codex
  • Docs
  • Duplicate Field Fix Utility
  • How Ninja Forms Works
  • Join us on Slack
  • Test Page
  • Test Page
  • The Three Podcast
  • THREE FAQs & Pre-Release Signup
Ninja Forms Developer Resources
Ninja Forms Developer Resources
  • About
  • Codex
  • Docs
  • Duplicate Field Fix Utility
  • How Ninja Forms Works
  • Join us on Slack
  • Test Page
  • Test Page
  • The Three Podcast
  • THREE FAQs & Pre-Release Signup

Pre-populating Fields on Display

Filter: Render Default Value

apply_filters(‘ninja_forms_render_default_value’, $default_value, $field_type, $field_settings);

For the “Checkbox” field, see Dynamic Default Value for the Checkbox Field.

For List Field Types, see Dynamic List Fields.

Post navigation
← Previous Documentation
Next Documentation →
  • Form Object API

    • Settings
    • Fields
    • Forms
    • Actions
    • Submissions
    • Objects
  • Developing Add-Ons

    • Adding Metaboxes
    • Data Conversion
    • Registering Plugin Settings
    • Custom Field Templates
    • Payment Gateways
    • Registering Actions
    • Registering Fields
    • Settings Configuration
  • WordPress Hooks

    • Plugin Settings
    • Field Templates
    • Field Value
    • Field Display
    • Form Display
  • Extending the Form

    • Dynamic Field Settings
    • Listening to Submit Response
    • Pre-populating Fields on Display
    • Field View Rendering
    • Start/Stop Submission
    • Field Submission Data
    • JavaScript Overview
    • Custom Field Templates
    • Client Side Field Validation
  • Integration Guides

    • Collecting Payments
    • CRM Integrations
    • Newsletter Integrations
  • Marketplace

    • Compatibility
    • Licensing
    • Versioning
  • Developer Mode

    • Mock Data
    • Version Switching
  • Advanced Setting Types

    • HTML
    • Field Select
    • Option Repeater
  • Extending the Builder

    • Merge Tags
    • JavaScript Overview
    • Content Drawer
    • Application Domain
  • Coffee

    • Aeropress
    • Chemex
  • Setting Types

    • Field List Toggles
    • Settings Configuration
  • Form Processing

    • Submission Processing Hooks
    • Action Timing and Priority
    • Custom Form Action
  • Permissions

    • Forms
    • Submenus
    • Submissions
  • Getting Started

    • Form Processing Actions
  • Examples

    • Limit Checkbox List Selection
  • Working with jQuery

    • Changing Field Values
  • Add-ons

    • Conditional Logic
  • Collaborating Developer Guidelines

    • Collaborating Developer Requirements
  • Tutorials

    • Creating Merge tags
    • Filter Email CSV Name
    • Filter Email “From” Address
    • Adding Attachments to Emails
    • Dynamic List Fields
    • Dynamic reCAPTCHA Language
    • Dynamic Default Value for the Checkbox Field
    • Dynamic MIN Setting for the Number Field

Copyright © 2011-2026

Go to ninjaforms.com →