Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Visual format - Length Restriction problem
System
I have a problem while using Visual format as an external editor in my code.
Below given is the snippet from code from one of the datacapture.cfg file that I have written
<item name='Asset_Long_Desc1'>
<label>Content Summary Text</label>
<description>Enter the summary text (1) for the content</description>
<database deploy-column='t' searchable='t' />
<textarea external-editor='visualformat' rows='8' cols='50' maxlength='512' required='f' external-editor-config='lillyconnect.xml' />
I have mentioned maxlength for the text area as 512 chars . But I am able to key in more that 512 Characters. It seems that Visual format is not restricting the length of text area to 512 chars.
Is there any way I can restrict the length to 512 chars . Is there any simple way to do that or Shall I have to use form APT to do the same.
Please help.
Find more posts tagged with
Comments
Migrateduser
I believe there is a solution to this with regex.
caedmvtcau00001.pdf
Adam Stoller
Yes - you have to use a validation-regex (or perhaps FormAPI) to restrict the number of characters in a textarea as textarea's do not have a maxlength/maxsize attribute associated with them.
For a validation-regex - I believe there are some KB's on this site that can help.
For FormAPI - someone else will probably provide a solution.
--fish
(Interwoven Senior Technical Consultant)
wdk_itrace_tool_1.0.zip
Migrateduser
You are probably better off with FormAPI because you can give the user a more useful error message.