How to prevent user from editing score data on front end?

I want to store a score on the front end but not allow users to edit said score. Is this possible?

Hi there, @Firstlast… I’m not sure exactly what you mean, but it sounds like you are describing the use of a custom state to store the score and then probably showing the custom state’s value in a text element. Is that what you mean?

Best…
Mike

@mikeloc yes, custom states can users edit the value? I don’t want the user to change the value of the score custom state.

Custom states are sent/downloaded to the browser, so you certainly wouldn’t want to store sensitive data in them because they can be accessed via the browser’s dev tools. That being said, the values can’t be changed unless you give the user a way to change them via a workflow.

@mikeloc thanks for the clarification.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.