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.

"someContent" => [
    "type"     => "Textarea",
	"label"    => t("Some content"),
	"view"     => [
		"skip_h" => true,
	],
],

New line to blank rule (nl2br)

Use the "nl2br" as key in your "view" array and set its value to true or false. By default, it's set to false. So whenever set to true, every new line (mostly done by hitting enter in your textarea), will be converted to a blank rule (br).

"someContent" => [
    "type"     => "Textarea",
	"label"    => t("Some content"),
	"view"     => [
		"nl2br" => 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:

"someContent" => [
    "type"     => "Textarea",
	"label"    => t("Some content"),
	"config"     => [
		"placeholder" => t("My custom placeholder text.."),
	],
],

Rows

The default "rows" value for your textareas is set to 5. You can change it to any other numeric value you like, as long as it's above 0 (so yes, 1 is possible too, although not most likely to be used). So if you want to keep your forms compact, don't overdo it and make high textareas. For some situations though, it's very handy to make it long(er)!

"someContent" => [
    "type"     => "Textarea",
	"label"    => t("Some content"),
	"config"     => [
		"rows" => 8,
	],
],

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