Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
FormAPI - field validation
smigster
I have a DCT that may potentially have to handle many replicants... enough that all would not be visible at one time for the user to inspect without scrolling. Thus, it is imperative that I check all entries before saving to be sure that there are no duplicates.
I know how to iterate through fields in a form using Javascript but I can't quite find the handle to the 'dcreditForm' inside the DCT framesets. Could anyone provide me the reference to 'dcreditForm' that will allow me to check the fields?
Thanks in advance...
Find more posts tagged with
Comments
smigster
Follow-up.... The FormAPI docs have IWDatacapture.getRootItems() and IWItem.getChildren() functions. Are these meant to address an inability to or proscription against accessing form fields directly for validation purposes?
Migrateduser
I would first use IWDatacapture.getItem() to retrieve a reference to the replicant. From then, use getChildren() to retrive a list of children and iterate through that list.