All documentation

Stacklar Documentation

Hidden Fields and Dynamic Values in Stacklar

Use hidden fields, dynamic defaults, merge tags, URL parameters, current user data, and context values safely in Stacklar.

Open: Stacklar -> Edit Form -> Hidden/Dynamic field settings

Choose a dynamic value source and enter its parameter or key.

Add and Configure the Field: Hidden Fields and Dynamic Values

  1. Add a Hidden field when you need to submit technical context such as campaign, source, post ID, or an internal route value.
  2. Open Dynamic field value and enable Enable dynamic default value.
  3. Choose Source: URL parameter, Current user, Current post, Post meta, or Field value, then configure the key or source field shown for that source.
  4. Set Default value on the field when a fixed fallback is required.
  5. Submit the form from a URL containing sample parameters and inspect Entries or the action payload.

Field Options

  • Enable dynamic default value: Fills the field only when it is empty and never overwrites visitor input.
  • Source: Choose URL parameter, Current user, Current post, Post meta, or Field value.
  • Source key or field: Enter the URL parameter or post meta key, or select the user, post, or form field Stacklar should read.
  • Default value: Provides a fixed fallback when the selected source is empty.

Test the Field

  • The hidden value is not displayed as a visible field.
  • The submitted payload contains the expected dynamic value.
  • No private secret, token, or license key is present in public HTML.

Frequently Asked Questions

Where do I open these settings?

Open Stacklar -> Edit Form -> Hidden/Dynamic field settings.

What should I verify after making changes?

The hidden value is not displayed as a visible field.

Official reference: WordPress block settings documentation.