Skip to content

Not sure how to use Placeholder vs Default Value pre-fill from State #13713

Answered by mikesealey
assia-zoubir asked this question in Help
Discussion options

You must be logged in to vote

Hi @assia-zoubir

Your video doesn't seem to load, but I've got some suggestions that might help.

When you run your query from elsewhere in your app, set the value in state Documentation about State here

Then for debugging purposes, create a paragraph in your app that contains what you're setting the placeholder value to be. You may find that you're not quite getting back what you expect and prop-drilling isn't working. If that's the case, cut off the last piece of the variable
eg:
JSON.parse($(State.current_task)).data[0].start_time will become JSON.parse($(State.current_task)).data[0

And keep working back until you get something you recognise.

Once you've found the right variables and pr…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mikesealey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants