3 Replies Latest reply on Sep 8, 2014 12:38 PM by BKBK

    how to disable Accordion layout?

    haha1999

      Is there a same function like ColdFusion.Layout.disableTab to disable Accordion layout? Thanks!!

        • 1. Re: how to disable Accordion layout?
          BKBK Adobe Community Professional & MVP

          You could toggle between

           

          ColdFusion.Layout.expandAccordion and ColdFusion.Layout.collapseAccordion

           

          or between

           

          ColdFusion.Layout.showAccordion and ColdFusion.Layout.hideAccordion

           

          For example,

           

          <CFLAYOUT type="accordion" name="accordionHomeInformation" align="left">

              <CFLAYOUTAREA title="Home Information" name="panelHomeInformation">

          Address and other details

          </CFLAYOUTAREA>

          </CFLAYOUT>

          <CFLAYOUT type="accordion" name="accordionSensitiveInformation" align="left">

              <CFLAYOUTAREA title="Sensitive Information" name="panelSensitiveInformation">

          Abracadabra

          </CFLAYOUTAREA>

          </CFLAYOUT>

           

          <cfform>

          <!---  

              <cfinput type="button" name="ShowAccordion" value="Show Sensitive Information"

                  onClick="ColdFusion.Layout.showAccordion('accordionSensitiveInformation','accordionSensit iveInformation')">

              <cfinput type="button" name="HideAccordion" value="Hide Sensitive Information"

                  onClick="ColdFusion.Layout.hideAccordion('accordionSensitiveInformation','accordionSensit iveInformation')">

          --->

              <cfinput type="button" name="ExpandAccordion" value="Expand Sensitive Information"

                  onClick="ColdFusion.Layout.expandAccordion('accordionSensitiveInformation','accordionSens itiveInformation')">

              <cfinput type="button" name="CollapseAccordion" value="Collapse Sensitive Information"

                  onClick="ColdFusion.Layout.collapseAccordion('accordionSensitiveInformation','accordionSe nsitiveInformation')">

          </cfform>

          • 2. Re: how to disable Accordion layout?
            haha1999 Level 1

            Thanks for your reply. What I want is to set some Accordion cflayoutareas disable (not clickable) first. For example, there is a process which need 2 steps to finish. Customer can't expand step 2 before they need to finish all jobs on step 1. Thanks!!

            • 3. Re: how to disable Accordion layout?
              BKBK Adobe Community Professional & MVP

              That is what you get when you toggle between

               

              ColdFusion.Layout.expandAccordion and ColdFusion.Layout.collapseAccordion

               

              Try it and see.