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)
formapi
System
Hi, I am using formapi to validate dates on 'onsave' event. Validation is happening, but after the alert message, getting http 500 error page in the top portion of the dct (where all links like save, save as, preview, generate) are there. I am not able to use 'onchangeitem' because i am using cgi-callout for calender to populate the date fields. Can anyone suggest me on this? thanks.
Find more posts tagged with
Comments
gsundeep
Ashish,
Would you mean to say "onItemChange" event , since i don't know of "onChangeItem" event in FormAPI.
Moreover,I would like to take a look on your "DCT" datacapture.cfg file so help you further.
Thanks,
Sundeep
Migrateduser
Sudeep,
You are right. It is onItemChange event that i was talking about. Here is the pice of code from the dct.
function init() {
IWEventRegistry.addFormHandler("onSave", validateForm); }
function validateForm() {
--here i have validate code --
result = true; // (or false)
return result;
}
Hope this is enough. Onitemchange doesn't seem to be working as the focus is not being set on the field where the date is being populated from the calender callout.
thanks