I tried many things with up until Splunk 7.x. Finally, we upgraded to 8.0.6 (8.x) and below worked. No custom stylesheets etc. needed. Just use the below code and adjust for your need as needed. If it works for you all, don't forget to thumbs up. Thanks. <form theme="light">
<label>Sample Text Box Sizing</label>
<fieldset submitButton="true" autoRun="false">
<input id="splunk_input_text_1" type="text" token="text1" searchWhenChanged="false">
<label>2 values</label>
<default>A,B</default>
</input>
<input id="splunk_input_text_2" type="text" token="text2" searchWhenChanged="false">
<label>5 values</label>
<default>A,B,C,D,E</default>
</input>
<input id="splunk_input_text_3" type="text" token="text3" searchWhenChanged="false">
<label>8 values</label>
<default>A,B,C,D,E,F,G,H</default>
</input>
<html>
<style>
#splunk_input_text_1{
width: 200px !important;
}
</style>
</html>
<html>
<style>
#splunk_input_text_2{
width: 300px !important;
}
</style>
</html>
<html>
<style>
#splunk_input_text_3{
width: 600px !important;
}
</style>
</html>
</fieldset>
... View more