My case:
API calls with lots of dynamic inputs. Trying to simplify for the user and make the app look clean.
Right now I have one API call in the plugin with a dynamic < input > that pulls data from a hidden input element with almost every dynamic value needed.
Can I pass in unique text I do not want the user to view when clicking a button to call the api in addition to the hidden input element? I’ve tried arbitrary text and setting state.
I’m hoping there is an easier way than creating 9 separate api calls in the plugin with multiple dynamic inputs.
If I understand you correctly, all you’re trying to do is concatenate some string ("please generate code for this example: ") with the user’s input. It’s true that the small text inputs (as you’d find in API call actions) are no good for this, but you can always use the Arbitrary Text operator to call up the “long text” input field.
So you could either do that, or do the string concatenation as a set state action, like this: