Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
1 reply
Subscribers
7 subscribers
Views
976 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I have a checkbox with 6 options i want to enable my button only if all options
vineeta6579
over 11 years ago
I have a checkbox with 6 options i want to enable my button only if all options are selected. how i can achieve this with 7.3 version.
i tried old JS syntext (window.FormAPI.getValue("myFieldId").id;) but seems like its not working anymore.....
OriginalPostID-94037
OriginalPostID-94037
Discussion posts and replies are publicly visible
0
hemalathat
A Score Level 1
over 11 years ago
Hi,
You can check the length of the checkbox values and show/hide the button accordingly.
You can get the length of the check box using split function.
Here is the sample code
function checkBox(checkBoxID,buttonID)
{
var checkBoxValue =FormAPI.getValue(checkBoxID).id;
var checkBoxLength=split(checkBoxValue,";").length;
var checkBoxValueArray = checkBoxValue.split(_AE.uiDelimiter);
FormAPI.hide(buttonID);
if(checkBoxValueArray.length==checkBoxLength)
{
FormAPI.show(buttonID);
}
else
{
FormAPI.hide(buttonID);
}
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel