Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Validation regex for checking blank space
kisnak
Hi ,
The regex(validation-regex="[^ ]+") I wrote to check for a blank space is working fine for "text" item ,but the same is not working for "textarea" item.
The regex I wrote will not allow the user to save the dcr if he tries to enter only space bar.
anyway I am pasting the code below for both the items
Headline
Please insert the headline
validation-regex="[^ ]+" />
Short text
Please insert short text
<br> cols="60"<br> rows="5"<br> required="t"<br> validation-regex="[^ ]+"<br> wrap="virtual"<br> external-editor="visualformat"/><br></item></item>
Find more posts tagged with
Comments
Migrateduser
The textarea field might already start off with a newline character (\n), so you may want to check that, as well.