Display a customized response
Last updated
Last updated
This example shows you how to display a different response following a smart action based on the number of records selected:
if the action is done on one company, the response is "Company is now live!"
if the action is done on several company, the response is "Companies are now live!"
An admin backend running on forest-express-sequelize
This directory contains the companies.js
file where the model is declared.
This directory contains the companies.js
file where the Smart Action Mark as Live
is declared.
This directory contains the companies.js
file where the implementation of the route is handled. The POST /forest/actions/mark-as-live
API call is triggered when you click on the Smart Action in the Forest UI.