tl_jacob
tl_jacob11h ago

App: Required input fields

What is the recommended way of validating input fields when a button is clicked and before the underlying script/flow is called? For example, I have an app with: - several text inputs - a button that triggers a script using the values from the text input fields - each of the text inputs should be non-empty for the script to run correctly I want to validate that the text inputs are non empty when a user clicks a button but BEFORE we call the script.
2 Replies
rubenf
rubenf4h ago
@tl_jacob why not use "live" validation instead and put the constraint on the form itself?
tl_jacob
tl_jacobOP3h ago
ah I haven't tried the form UI component! I've just been adding text inputs to containers. Thanks @rubenf !

Did you find this page helpful?