November 9, 200916 yr Is there a way to have the OnRecordCommit script trigger run only once? What i am trying to accomplish is when a new record is added, i would like to copy the phone number field to the PID field and the name field to the SID field. I was planning on using the OnRecordCommit script trigger but i only want this script to happen when the record is created, not everytime a save is changed. If someone where to change the name or the phone number of the record, i dont want it to update the PID or SID. Is there a way to have this script run ONLY when a new record is created? Thanks
November 9, 200916 yr Just use a if then test to see if the field is empty or not. If it's empty the copy the field, and if not empty then don't copy the field. Hope this helps
November 9, 200916 yr Author I knew it had to be something simple, guess i havent had enough coffee yet this morning. Thanks!
December 17, 200916 yr You can probably use get(Openrecordstate) and check to see if it is a new record.
Create an account or sign in to comment