Send email with custom subject to selected records

Send email with custom subject to selected records

Hello Zoho team!
I want to send an email with custom subject to selected records in a view.
I have viewed https://help.creator.zoho.com/Sample-Code.html#Email_Notification but I want that the subject of the message could be user edited.
Thanks.