Formula field not refreshing

Mark,

I tried following this logic for a Model I’ve got called “Task_Edit” but it is getting an error every time I try to run the snippet.

The snippet is written as:

skuid.$M(‘Task_Edit’).evaluateFormulas();


Any ideas why that would happen, and what I can do to fix it?