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
1081 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hello i am using the event rules specifically click wherein i am using a radio b
himanshug
over 11 years ago
Hello i am using the event rules specifically click wherein i am using a radio box with two option sand on click of each a separate section is to appear .I am getting stuck at a point where i want to select both options and see both sections . Can you please help me with this ....
OriginalPostID-75979
OriginalPostID-75979
Discussion posts and replies are publicly visible
Parents
0
srinivasank
Certified Associate Developer
over 11 years ago
We generally use checkbox for multi selection. If you want to use check box for your usecase then try the below js code.
function checkCheckBoxValues(checkId,hiddenId)
{
/*hiddenId contains the section ids to be show/hide*/
var x= document.getElementsByName(checkId);
var a = FormAPI.getValue(hiddenId).id;
var b = new Array();
c=a.split(";");
var count = 0;
for (var i=0;i<x.length;i++)
{
if(x[i].checked == true)
FormAPI.show(c[i]);
else
FormAPI.hide(c[i]);
}
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
srinivasank
Certified Associate Developer
over 11 years ago
We generally use checkbox for multi selection. If you want to use check box for your usecase then try the below js code.
function checkCheckBoxValues(checkId,hiddenId)
{
/*hiddenId contains the section ids to be show/hide*/
var x= document.getElementsByName(checkId);
var a = FormAPI.getValue(hiddenId).id;
var b = new Array();
c=a.split(";");
var count = 0;
for (var i=0;i<x.length;i++)
{
if(x[i].checked == true)
FormAPI.show(c[i]);
else
FormAPI.hide(c[i]);
}
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data