Dashboards & Visualizations

can we persist the value entered in the textbox on a view ?

ranjyotiprakash
Communicator

I have a view in my app which has a text box, based on the value entered by the user the graphs are generated. I want to persist the value entered in the textbox so that whenever the user returns at that page it gets populated with the same entered value.

Is there any way to do this or is there any other way so that i can get a user input and generate graphs based on the input.

Thanks !!1

0 Karma
1 Solution

MHibbin
Influencer

So you have a form.

You should populate the form with a "default" value, if you are using simple XML this is just something like...

<input type="text" token="username">
    <default>Cosmo</default>
</input>

You should then use the "allowSoftSubmit" option/param for the "SubmitButton" module, unfortunately (or maybe not) this is only available in advanced XML (unsure what format you are using).

Hope this helps get you on the way.

Cheers,

MHibbin

View solution in original post

0 Karma

MHibbin
Influencer

So you have a form.

You should populate the form with a "default" value, if you are using simple XML this is just something like...

<input type="text" token="username">
    <default>Cosmo</default>
</input>

You should then use the "allowSoftSubmit" option/param for the "SubmitButton" module, unfortunately (or maybe not) this is only available in advanced XML (unsure what format you are using).

Hope this helps get you on the way.

Cheers,

MHibbin

0 Karma

ranjyotiprakash
Communicator

Hi MHibbin, I am using advanced XML and I want to persist the value entered by the user in the text field . and is it possible to show the default value set to the text field on the UI in textbox ?

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...