Custom Function: Refresh Page

Custom Function: Refresh Page

Hello

I am calling a custom function from a Contact Form Button to update the current contact (and other company contacts)

The following works nicely...but I need to reload the current page to show the updated data on the contact page...
  1. accountId=input.companyid.toString();
  2. iaccountId=input.companyid.toLong();
  3. rec = zoho.crm.getRecordById(("Accounts"),iaccountId);
  4. resp = zoho.crm.getRelatedRecords("Contacts",("Accounts"),accountId);
  5. for each ele in resp
  6. {
  7.     mp=map();
  8.     mp.put("Mailing Street",rec.get("Shipping Street"));
  9.     mp.put("Mailing State",rec.get("Shipping State"));
  10.     mp.put("Mailing City",rec.get("Shipping City"));
  11.     mp.put("Mailing Zip",rec.get("Shipping Code"));
  12.     mp.put("Mailing Country",rec.get("Shipping Country"));
  13.     contactId=ele.get("CONTACTID");
  14.     updateResp = zoho.crm.updateRecord("Contacts",contactId,mp);
  15. }
**** This line of code is not working.  Any suggestions?

  1. openUrl("https://crm.zoho.com/crm/EntityInfo.do?module=Contacts&id=" + input.contactidforrefresh,"Parent window","");