I want to add an option of my client being able to raise a support ticket (enquiry or bug) from their login.
An easy way i can think of is adding this code
new frappe.views.CommunicationComposer({subject: frappe.defaults.get_user_default("Company")+" | Support Ticket | "+ frappe.datetime.nowdate() ,recipients: "support@mycompany.in",message:"Describe your issue or request in detail with screenshots if necessary" ,doc: {doctype: "User",name: frappe.session.user} })
to help help_links.js like this
The Result should be something like this (works from console, the button is added in the help menu as well, but the code inside needs correction.
.Any pointers? if i can run the above code snippet inside the help_links.js, it would be perfect.