Splunk Search

Multivalue input choice box length css

D2SI
Communicator

Hello there!

I am looking for a way to adjust multivalue choice box length to keep them on one line.

I have already adjusted multivalue input box :

alt text

 <html>
   <style>
     #instance_id {
     width: 50%;
     }
   </style>
 </html>

But I do have long string choices that get displayed on two lines (#2), so I am trying to adjust box choices length to have something like this (#3):

alt text

Is there a way using css / simple xml?

Thanks in advance for any hint!

0 Karma
1 Solution

thomasroulet
Path Finder

Hello,

if you are using a splunk version> = 7 and <= 7.1 (I only tested on version 7.0.1, a Splunk Web UI update has been updated to version 7.1)
you could try to add this part of css:

#instance_id .select2-search-choice {
    max-width: none !important;
}

View solution in original post

thomasroulet
Path Finder

Hello,

if you are using a splunk version> = 7 and <= 7.1 (I only tested on version 7.0.1, a Splunk Web UI update has been updated to version 7.1)
you could try to add this part of css:

#instance_id .select2-search-choice {
    max-width: none !important;
}

D2SI
Communicator

Great thanks!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...