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)
Data validation
ktc327
I am looking for a method to validate data entered by a user. I would like to validate data for the c13alias field within the document profiles and in the WW component, The format would be 'AXXXXXXXX'. I am using Worksite 7.5 sp2 & version 4.3 sp2.
thanks
Find more posts tagged with
Comments
dabird
I don't have WSW 4.3 code readily available, but if memory serves me correctly, there should be a JavaScript doSubmit() function that you can hook into on the client-side. You can perform your validation using RegExp. For details on RegExp, see MSDN at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/346aa83e-a045-47ea-acae-b42c7b121534.asp
Alternatively, you can perform validation in the server-side postback. The file for document profiles is <WorkSite_Install_Directory>/scripts/DocumentProfile.asp.