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)
Get value of checkbox option
anud
Hi,
In my datacapture, i have a checkbox item with option value as true. Now, i need to use this value which would be set as an extended attribute for my DCT.
But when i try to retrieve this value from my .js file, no value is coming.
what is the way in which i can get this option value?
datacapture item code :
item name="isSecure" pathid="isSecure"
checkbox required="f"
option label=" " value="true"
checkbox
item
.js code:
var extendedAttrSecure = "Secure";
var isSecureAsset = "/root/Content/isSecure";
[extendedAttrSecure, IWDatacapture.getItem(isSecureAsset).getValue()]
it sets
Secure : undefined
Find more posts tagged with
Comments
Adam Stoller
[re-]read - carefully - the FormAPI manual regarding how to get values from select lists, checkbox and/or radio-button items. Then look at the code you posted. Hopefully you will be able to clearly see what you are doing wrong and learn from it.
anud
ya ....got it..
the value of checkbox will comes as index ... which is that i would get 0 as the value if the first option is checked in the checkbox...