How Can We Help?

Add a button that opens the attachment panel

You are here:

Adding a button to the form that opens the attachment panel is very simple. All you need is only 3 steps:

  1. Configure section ‘HTML text’ property: 
    <div id="my-button"/>

     

  2. Create a rule in logic with the following code: 

     

    var buttonId = "toggle-workflow-panel-button";
    
    if (!document.getElementById(buttonId)) {
        // 1. Create the button
        var button = document.createElement("button");
        button.id = buttonId;
        button.innerHTML = "Click me!";
        
        // 2. Append somewhere
        var container = document.getElementById("my-button");
        container.appendChild(button);
        
        // 3. Add event handler
        button.addEventListener ("click", function() {
            togglePanel("attachments");
        });
    }

     

     

  3. Start using it. 

     

For more information please navigate here and check openPanel() / togglePanel()

Table of Contents

Newsletter sign-up