Hi All, I just wanted to know if there is any way to display text boxes upon clicking any of the buttons in my dashboard. I uploaded pic for your reference. Upon clicking any of the button, i want to display 2 text boxes. And later i would like to provide input in those text boxes and search for the logs. <dashboard version="1.1" script="customview.js" theme="dark">
<label>Search Dashboard</label>
<row>
<panel>
<html>
<h1 style="text-align: center;">Choose from the below options to get started :)</h1>
<!-- Centered button container -->
<div style="display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px;">
<button id="proxySearch" onclick="showTextBoxes()" style="background-color: #007bff; color: white; width: 150px; height: 50px; font-size: 18px; border: none; border-radius: 5px;">Proxy Search</button>
<button id="WAFsearch" style="background-color: #007bff; color: white; width: 150px; height: 50px; font-size: 18px; border: none; border-radius: 5px;">WAF Search</button>
<button id="DNSsearch" style="background-color: #007bff; color: white; width: 150px; height: 50px; font-size: 18px; border: none; border-radius: 5px;">DNS Search</button>
<button id="Emailsearch" style="background-color: #007bff; color: white; width: 150px; height: 50px; font-size: 18px; border: none; border-radius: 5px;">Email Search</button>
</div>
<div id="mychart"></div>
</html>
</panel>
</row>
</dashboard> I first wanted to know how to show text boxes upon clicking any of the button. I know we have to use js for this kind of activity, but can anyone suggest how it needs to be done?
... View more