Set Field Defaults With Shortcode

Caldera Forms Banner

You can┬áset the default value of a Caldera Forms field using a shortcode attribute. In the Caldera Forms shortcode, use the field ID as the attribute and provide the default value. For example, to set the field with the ID “fld_2758980” to the default value of “42” you would use fld_2758980=”42″.

Important Notes

  • This feature requires Caldera Forms or later.
  • You can not use another shortcode to set the field default by nesting it inside of the Caldera Forms shortcode

Setting Field Default Values Dynamically