Custom fields

Custom fields

Callback function not working number or text type. Please help how to work for callback function
    $zoho.salesiq.customfield.add(
   {

      "name":"Phone",
      "hint":"Phone Number",
      "type":"number",
      "required":"true",
      "visibility":"both",
      "maxlength":"10",
      "callback":function(value){ alert(value);}
   });