Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
FormAPI
System
Hi,
I want to do DCRName Validation after the user enter the name of DCR.
When i use below function it is directly going for the validation without asking the DCR Name.Could pls. suggest me which is right way to do this
I am using the following function
IWEventRegistry.addFormHandler("onSaveValid", onSave);
function onSave()
{
var dcrName = IWDCRInfo.getDCRName();
var sname = dcrName.substr(0,1);
if (sname.match(/^[A-Za-z]$/))
{
IWDCRInfo.setDCRName(dcrName);
return true;
}
else
{
alert(" DCR NAME SHOULD START WITH ALPHABETICS ");
return false;
}
}
Thanx in advance
Find more posts tagged with
Comments
There are no comments yet