additionalScope for JS Query

Can I use additionalScope to pass parameters / data to a javascript query? I want to run a simple script:


jsqSaveMemo.trigger(
  {
    additionalScope: {
      newMemoFromForm: 'Hi Howie'
    }
  }
);

jsqSaveMemo is a javascript query that will do some manipulation of the additionalScope data and then save it to the DB.

In the jsqSaveMemo, I have this test code:

console.log( {{newMemoFromForm}} );

Throws all kinds of errors in the browser console.

1 Like