Dashboards & Visualizations

How to use js change format menu value?

guo_dc
Explorer

I plan to develop a customize visualization. I edit a formatter.html 

<form class="splunk-formatter-section" section-label="Data Series">
<splunk-control-group label="Data Type">
<splunk-select id="dataTypeSelect" name="{{VIZ_NAMESPACE}}.dataType" value="Custom">
<option value="Custom">Custom</option>
<option value="XBar_R-X">XBar R - X</option>
<option value="LineChart">LineChart</option>
<option value="Pie">Pie</option>
<option value="Gauge">Gauge</option>

</splunk-select>
</splunk-control-group>
<splunk-control-group label="Option">
<splunk-text-area id="optionTextArea" name="{{VIZ_NAMESPACE}}.option" value="{}">
</splunk-text-area>
</splunk-control-group>...


I wish to change dataType, then textarea option have diffenent value to appear in format menu. Menu Option  have many choice, How to modify  visualization_source.js content to get this?

Labels (2)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...