Splunk Dev

Can I make checkbox label clickable?

DonBaldini
Path Finder

I have the below code

<input type="checkbox" token="clear_button" searchWhenChanged="true">
<label></label>
<change>
<unset token="form.clear_button"></unset>
<unset token="form.Name_Token"></unset>
<unset token="form.SO_Token"></unset>
<unset token="form.L2SO_Token"></unset>
<unset token="form.LOB_Token"></unset>
<unset token="form.Func_Token"></unset>
</change>
<delimiter> </delimiter>
<choice value="clear">Clear</choice>
</input>

When hovering over the word "Clear" to the right of the checkbox it is clickable. I just want the checkbox to be clickable - not the text and some whitespace to the right. Is this possible?

Thanks

Labels (1)
0 Karma
1 Solution

danspav
SplunkTrust
SplunkTrust

Hi @DonBaldini,

 

You can stop clicks from working on the checkbox label by using this css in your dashboard:

<row depends="$CSS$"><html><style>
.splunk-checkboxgroup label{pointer-events: none!important;}
</style></html></row>

 

Cheers,
Daniel

View solution in original post

DonBaldini
Path Finder

That works great Daniel, we had reduced the size of the container as a workaround but this is exactly what I wanted.

Thanks

Graham

0 Karma

danspav
SplunkTrust
SplunkTrust

Hi @DonBaldini,

 

You can stop clicks from working on the checkbox label by using this css in your dashboard:

<row depends="$CSS$"><html><style>
.splunk-checkboxgroup label{pointer-events: none!important;}
</style></html></row>

 

Cheers,
Daniel

Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...