SHORT BACKGROUND: Before the Prompt was available, I was storing the Clipboard value to the globalTaskSearch variable. So now, I want to leave the clipboard value and let the user override it if needed. This didn’t work either.
I must’ve been doing something wrong. Using variables does work fine.
If I use your example, the default value showing up on the prompt was ${ddd} instead of 123 (so in my case ${globalTaskSearch} was showing up instead of the clipboard value I stroed in the variable).
However, I tried your code now and re-did my code and both work fine. I even get null come up if the clipboard is empty. I wish I had saved the code I posted earlier so I could see what I did wrong. Funny thing is I cut and paste the code into the forum and it looks fine.
@admin@ulrich
please, as requested above. Especially:
Secondly, can we make it so that the Target text auto deletes when typing in on it, instead of having to delete it?
Also, the default value using @ fails with “Invalid attempt to destructure non-iterable instance” if the default is blank/null. This shouldn’t be the case, since variables can be used as the default value and an empty value may very well be the expected case. For example, if we’re pulling data from a source where some fields may be empty.
I can get around it with clumsy if statements but it would be much better to handle blanks in the back end (just ignore @ if there’s nothing after it).