In my model driven app, There is an Yes/No field

I am trying to get its value using Javascript
var acpStatus = formContext.getAttribute("wti_acp").getValue();
But it is throwing error.
formContext.getAttribute is not a function
Can someone please help