You can add effects to several of Internal’s components to customize your internal tool’s behaviors. We recently added new effects to submittable components such as buttons, forms, bulk actions, and other submittable components. Read on for details.
When can an effect be called?
There are two separate situations where you can call an effect tied to buttons, forms, bulk actions, and other submittable components.
- On Successful Submit: The effect is called if values are successfully submitted.
- On Failed Submit: The effect is called if the values failed to be submitted.
Available Effects
Auto-Update by Key (on successful submit only)
This effect updates components that have been bound to a form’s inputs by requesting updated data using the components’ function’s keys.
Refresh a Component
This effect allows you to specify a component within the same Space that should be refreshed upon successful submission of data as well as upon failed submission of data.
For example, this may be helpful if you need to rerun a query and display the results in a Card List after a form was successfully submitted.
Display a Message
This effect displays a success message upon successful submission of data as well as a failure message upon failed submission of data. By default, this effect is applied to submittable components and shows the system generated message. Optionally, you can add a custom message. The message will be displayed in green on success and red upon failure.
More Effects
We have plans to introduce more effects in the near future. If you have a specific effect you’d like to see, please contact us and let us know.