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
5 replies
Subscribers
6 subscribers
Views
2321 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Hi, I need to display a checkbox component with 4 choices but 2 not selectable b
saram
over 11 years ago
Hi, I need to display a checkbox component with 4 choices but 2 not selectable by the user in some cases (I need to display not selectable ones to show to the users all the alternatives).
For ex. if my pv!selectable is "Yes" all the buttons could be checkable, if it's "No" only the first 2 on 4.
How can I reach that? Thanks...
OriginalPostID-99270
OriginalPostID-99270
Discussion posts and replies are publicly visible
0
Carlos Santander
A Score Level 2
over 11 years ago
Could you create 2 checkbox components (one with 4 choices, the other with 2 choices) that save to the same variables? You would then show/hide them based on pv!selectable.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
saram
over 11 years ago
No, my point is to show in one checkbox 4 choice but allow users to choose only between 2.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aayusha
Certified Senior Developer
over 11 years ago
You could create 2 checkbox components (one 'A' with always selectable with 2 choices and other 'B' with remaining). Now Change B's select ability according to your condition.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
saram
over 11 years ago
Yes, but it puts a space between the 2 checkboxes which is ugly...isn't there some JavaScript to help me do that?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 11 years ago
In my forms I accomplish this by running an onClick() JavaScript function that checks which values are selected against which can be selected (using a hidden field on the form - hidden by JS onLoad(), to keep track of allowable fields). The JS function can then alert the user when they select a blocked field, and then remove the selection. This does not grey out the fields that are unallowable, but they get the idea pretty quick. This also works great for requirements such as "show 10, allow up to 3 choices".
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel