Try ERPNext Buy Support Partners Foundation

Frappe Prompt Using frappe.publish_realtime Does not Execute Frappe Call in Promise

I am working on various buying workflows: Material Request, Purchase Order, Request For Quotation etc.
On the Workflow action Reject or Cancel I need it to Raise a prompt for a user to fill in the reason for cancelling or rejecting the document.
I have used and here is the invoked function and the error I am getting:



    [{ label: 'Memo',   fieldname: 'memo_text', fieldtype: 'Data', reqd:1},], 

    (values) => {{


                args: {

                    comment_type: 'Workflow',


                    reference_doctype:'Material Request',


                    content: values.memo_text 


        async: false,

        callback: function(response){




        }) console.log(values.memo_text);},

    "You  """+current_state+""" """"""  Please enter a memo(Reason for your action)","Post Memo")""", user=frappe.session.user)

Uncaught SyntaxError: Octal literals are not allowed in strict mode.
at n. (socketio_client.js:39)
at n.emit (libs.min.js?ver=1587112476.0:12150)
at n.onevent (libs.min.js?ver=1587112476.0:12151)
at n.onpacket (libs.min.js?ver=1587112476.0:12151)
at n. (libs.min.js?ver=1587112476.0:12151)
at n.emit (libs.min.js?ver=1587112476.0:12150)
at n.ondecoded (libs.min.js?ver=1587112476.0:12150)
at s. (libs.min.js?ver=1587112476.0:12151)
at s.n.emit (libs.min.js?ver=1587112476.0:12150)
at s.add (libs.min.js?ver=1587112476.0:12150)