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
Get Updates on the Splunk Community!

New Year, New Changes for Splunk Certifications

As we embrace a new year, we’re making a small but important update to the Splunk Certification ...

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...