Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
JS Problem
System
I am trying to work with a selectindex value. I am able to capture it and display it in a alert box. But when I try to check to see if its the particular value thats been selected, the alert/if statement doesnt work.
// Get the month selected to determine the number of of replicants allowed (28/29/30/31)
var monthItem = IWDatacapture.getItem("/Month");
var monthOptions = monthItem.getOptions();
var monthSelectionIndex = monthItem.getValue();
// this works and shows the correct value
{
alert("Test1 " + monthSelectionIndex);
}
// does not work with "2" and / or without the return statement
If (monthSelectionIndex == 2)
{
monthdays = 31;
alert("Test2 " + monthdays);
return true;
}
Find more posts tagged with
Comments
There are no comments yet