Hi, I need to display a checkbox component with 4 choices but 2 not selectable b

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

Parents
  • 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".
Reply
  • 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".
Children
No Data