Jump to content

Recommended Posts

Posted

Hi there,

Is there a way to avoid text fields getting trimmed?

I'd like the possibility to start with two blank returns in textfield.

Odd request, I know...

Posted

@joe_g

Setting 'Maximum length' to '0' (indicates no maximum) under the 'Input' tab in the textfield setup will do the trick. Works for inputfieldText, but not for InputfieldTextarea.
Setting 'Maximum length' to '0' is not meant for this and the missing trim() in InputfieldText::setAttributeValue() could be added in future PW versions.

If you need the spaces in the output in general, its better to add via template file.
 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...