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)
"setFocus" in Teamsite
gururaj
Whether there is "setFocus()" function is there in Teamsite
This isInorder to place the curser on a particular field.
value=IWDatacapture.getItem(sibling_addr).getValue();
if(value== "")
{
alert("Please Enter Question");
IWDatacapture.getItem(answer_addr).setValue("");
IWDatacapture.getItem(answer_addr).setFocus();
}
Can I set the focus to particular field?
Find more posts tagged with
Comments
JonathonG
According to
http://YOURTEAMSITESERVER/iw/help/tst/formapi/formapi_29.html#SEC29
, the answer to your question is yes. Note the caveat about VisualFormat fields stealing focus.
IWItem.setFocus ()
Sets the focus to this item. If this item is not on the current page, the form is first redrawn at the correct page. setFocus() will have no effect if this item is currently read-only.
Note that VisualFormat textareas automatically take focus when they are redrawn. If the form has a VisualFormat textarea, calling setFocus() followed by redraw (including Templating's implicit redraw on load) has no effect.
Arguments:
None.
Returns:
Nothing.
Jonathon
Independent Interwoven Contractor