Lightning Forms provides you with the ability to add actions to buttons or form load events.
Creating Actions with Lightning Forms
Actions Can be created as command bar buttons within your form, embedded form buttons, or form load Actions
Lightning Forms include actions such as Send Email, Close Form, Save Form, Update List Item, Move Document, Custom Script, and much more. The actions can be grouped into conditions to control the logical flow of the actions. Learn how you can use actions in buttons or form load events.
Use the videos and documentation below to add logical flow to your SharePoint list forms.