Main Menu
Contact
Popular Plugins
Sign In

This field type is slightly different from the rest, since it's static code you'd want to add to your view file. No value has to be entered in your form, as it's static. So, we would want to use the "view" key to add some HTML (or CSS, PHP or whatever code you want to add).

"divDangerOpen" => [
	"type" => "StaticCode",
	"view" => [
		"code" => '<div class="alert alert-danger">',
	],
],

You don't need the "label", but you could use it to describe what your code is doing. In this example, I used a declaring name for the field: "divDangerOpen". Be aware that you don't use "divDangerOpen" again in the same config, as this has to be unique. So most obvious would be to create a "divDangerClose" somewhat later in the config file.

Use, by you or one client, in a single end product. The total price includes the item price and a buyer fee.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Concrete5 buyer fee: $32.70
Add to Concrete5 Cart

Use, by you or a client, in 5 single end products. The total price includes the item price and a buyer fee.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Concrete5 buyer fee: $130.80
  • Save an extra: $109.00
Add to Concrete5 Cart

Use, by you or a client, in x/xx single end products.

Upon request, quote will be made and sent to you via email.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Saves extra $$
Request Quote
Released 4 years ago
Updated 3 years ago
Requires concrete5 5.7.5.3
Current version 0.9.7
Skill level Bleeding Edge

Buyer Rating:

5 average based on 2 ratings More information

Got something to say? Need help?

View support forum