Hello,
I want to add dependable Radio button Functionality for below example.
When i click on 'TR DEPT' in Landscape View then Filter radio buttons should be displayed with 'ALL' option being selected by default. When i select 'TR Failed' option then Filter radio buttons should not be displayed and it should be hidden.
Could you please help me with code?
Thank you
<input type="radio" token="lv">
<label>Landscape View</label>
<choice value="TRDEPT">TR DEPT</choice>
<choice value="TRFAILED">TR FAILED</choice>
<change>
<condition value="TRDEPT">
<set token="showfilter"></set>
<set token="form.filter"></set>
</condition>
<condition value="TRFAILED">
<unset token="showfilter"></unset>
</condition>
</change>
</input>
<input type="radio" token="filter" depends="$showfilter$">
<label>Filter</label>
<choice value="All">All</choice>
<choice value="PRNO">PR NO</choice>
<choice value="PRSTATUS">PR STATUS</choice>
<default>All</default>
</input>
<input type="radio" token="lv">
<label>Landscape View</label>
<choice value="TRDEPT">TR DEPT</choice>
<choice value="TRFAILED">TR FAILED</choice>
<change>
<condition value="TRDEPT">
<set token="showfilter"></set>
<set token="form.filter"></set>
</condition>
<condition value="TRFAILED">
<unset token="showfilter"></unset>
</condition>
</change>
</input>
<input type="radio" token="filter" depends="$showfilter$">
<label>Filter</label>
<choice value="All">All</choice>
<choice value="PRNO">PR NO</choice>
<choice value="PRSTATUS">PR STATUS</choice>
<default>All</default>
</input>
@ITWhisperer Thanks for the response.
When clicked on TR DEPT radio button ,'ALL' choice value is not default selected. Even if it is set to default value and initial value is true
Can you share you dashboard XML?
@ITWhisperer I have used the same code which you have shared . I just added your code in new dashboard. Default is not selected for 'ALL'
Which release of splunk are you using?
Splunk Version 7.0.0
This is working fine in 8.0.1 version of splunk. Thank You