How to create new related record from popover

Discussion created by user26927 on May 2, 2016
Latest reply on Dec 14, 2017 by bleyden



I am trying to create a new related record from a popover window. 


I have accounts and contacts. 

In the accounts layout...I have portal showing all related contacts. 

I am trying to create new related contact records from the accounts layout. 


I have a popover window with global contact fields like first name, last name, email. 

There is a save button at the bottom of the popover that runs a scrip which sets the fields from the global fields entered in the popover.  The popover has an on object exit scrip that clears the global values. 


Everything works...ONCE.  When I try to create a second related contact from the just alters the first contact record I created. 


What do I need to do to make this work?


Thank you kindly