Main Menu
Contact
Popular Plugins
Sign In

Skip h(tmlspecialchars)

The Text field type has an option to skip the specialchars/htmlspecialchars function, which is normally called for security reasons (if one enters HTML into a Text field). Use it by adding a "skip_h" key into your "view" array, and set its value to true or false.

"name" => [
    "type"     => "Text",
	"label"    => t("Name"),
	"view"     => [
		"skip_h" => true,
	],
],

Placeholder

For your form, you can have a "placeholder" within the text field. Let's say you want to give a brief description of what the user should be entering, instead of adding that into the label/description (to keep your form compact). Add a "placeholder" key into your "config" array, like so:

"name" => [
	"type"     => "Text",
	"label"    => t("Name"),
	"config"     => [
		"placeholder" => t("My custom placeholder text.."),
	],
],

Max Length

For maximizing the length of your text input, use the "max_length" as key into your "config" array. Set it to a value, ranging from 1-255. Since text only allows a maximum of 255, you can not exceed it. Use a "TextArea" instead if you would require anything above 255.

"name" => [
	"type"     => "Text",
	"label"    => t("Name"),
	"config"     => [
		"max_length" => 100,
	],
],

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