Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Disable Checkboxes based on Condition

Lets consider I'm having two sites X and Y. Based on my selection of site the following check boxes should enable/Greyout.

Initially all should unchecked as shown in the below snippet.

If i select the Site X then A and C should enable (i can Check A or C or both) to check and B should be greyout.

If i select the Site Y then A and B should enable (i can Check A or B or both) to check and C should be Greyout.

Could you please help me with some sample code.

Note: Site will be passed through a ri variable.

Thanks.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    In the vanilla a!checkboxField(), you can't enable/disable individual items inherently.  Depending on the severity of your use case, there are a few different possible workarounds, though they can be quite a bit more of a pain to implement.  One of these is to stack a few different checkboxFields each having one checkbox; another option is to have a selectable grid where you control the checkbox availability on a row-by-row basis.

Reply
  • 0
    Certified Lead Developer

    In the vanilla a!checkboxField(), you can't enable/disable individual items inherently.  Depending on the severity of your use case, there are a few different possible workarounds, though they can be quite a bit more of a pain to implement.  One of these is to stack a few different checkboxFields each having one checkbox; another option is to have a selectable grid where you control the checkbox availability on a row-by-row basis.

Children