Forum Discussion
PMAnalytics
3 years agoFrequent Visitor
Possibility to store values via the frontend (Visual)
Hi, is it possible that the user can enter a value via the frontend (directly in the visual)? The value should be saved permanently afterwards. So instead of loading a value via the sidebar, he/s...
spandl
3 years agoHelper I
You can add the field into the capabilities file and then hide it.
After that, create an input field in the visual and use `powerbi.VisualObjectInstancesToPersist` to save the value.
I don't know anymore where I got this example from, but below you can find a code snippet that worked for me.
```
const objects: powerbi.VisualObjectInstancesToPersist = {
merge: [
{
objectName: 'mapConfiguration',
selector: undefined,
properties: {
mapJSONCustom: customJSON,
},
}],
};
this.host.persistProperties(objects);
```