Main Menu
Contact
Popular Plugins
Sign In

By default, this boolean field type will return "Yes" or "No" (translated to the language the site/section is). But perhaps  you'd want to have different text for that. This is possible for both view and form. The key values to use are "yes_value" and "no_value", like so:

"availableForWork" => [
	"type"       => "Boolean",
	"label"      => t("Are you available for work"),
	"config"     => [
		"yes_value" => t("Yes!"),
		"no_value"  => t("No.."),
	],
	"view"       => [
		"yes_value" => t("Oh yes, I am"),
		"no_value"  => t("Currently not"),
	],
],

The values accept a string only.

Default value (default_value)

Want to pre-populate your field with a value? Let's say you want it to set to "no" by default. It's as easy as putting that into the config. Accepted values are: true, false, 1, 0, "1", and "0". By default, no value is selected.

"availableForWork" => [
	"type"       => "Boolean",
	"label"      => t("Are you available for work"),
	"config"     => [
	    "default_value" => false,
		"yes_value"     => t("Yes!"),
		"no_value"      => t("No.."),
	]
],

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: $35.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: $142.80
  • Save an extra: $119.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 6 years ago
Updated 1 year ago
Installs 3
Requires concrete5 5.7.5.3
Current version 1.4.5
Skill level Bleeding Edge

Buyer Rating:

5 average based on 3 ratings More information

Got something to say? Need help?

View support forum