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)
refer form elements in replicant field?
motlnt
Hi All,
My env:TS 6.5
win2003
I am facing issue with identifying the form elements in 6.5.
This code works fine in 552.
This function is to display error message on replicant fields.
problem is:it only identifies the textarea field and shows the error message related to it properly but it does not identify the other fields as testfield or radio buttons.
I am getting
e.g.
[does not work with this]nameElem = CONTENT_BUCKET/0/NME_DYN_CONTENT_LINK_TEXT(this is a text field)
[works with this]nameElem=CONTENT_BUCKET/0/DYN_TEXT (textarea field)
===========================================================
var element = form.elements[nameElem];
if ( mhrObj.isNull(element) ) {
// added for replicant textarea with visual format
var nameTextAreaElem = nameElem.replace(/\//g,"_");
if ( ( ! mhrObj.isEmpty(nameTextAreaElem) ) && ( ! mhrObj.isNull(form.elements[nameTextAreaElem]) ) ) {
return form.elements[nameTextAreaElem];
}
else {
return null;
}
} else {
return element;
}
===========================================================
Find more posts tagged with
Comments
There are no comments yet