This script helps to use N/ui/message in the serverside script (Using a User event script). For showing alert, we have to create a new Inline Text field using the user event script. Write client script for UI message in HTML format. Apply script to the created field.