rawExpression replacement

I’m trying to fix my old AB which used rawExpression using simpleFunction. Students need to type an equation and domain into a table and the graph should be drawn (see screen 3). Seems to work when I look at the Preview, but not when I go in as a student…?

Please help!?

Is there a certain cell it’s not working? It’s seems to be okay for me both in preview and as a student.