Phone Field Renderer

I tried this but it is not working, the page won’t display when I add this. I would like to either strip all characters and save that value so if the user enters 111-444-5555 it saves 1114445555 and renders (111) 444-5555

I tried just putting in my custom field name manually and it still does do anything the page wont load using this?

field.model.updateRow(field.row,‘Your_Custom_Field__c’,stringValue,{initiatorId: field._GUID});