I have a fresh dev org, with nothing at all in it other than this one trigger that is below. When I create a new lead, this trigger is ran. (ie, I put the new leads name as John Smith and Company as ABC Co). When I click save, the record shows with hello world as the first and last name on the new lead. I do not understand what would cause the before update trigger to run on insert. This only happens in lightning, not in classic. I am in Version 41.0 but also tried it in 40.0 and 34.0 and I get the same results. Any insight would be greatly appreciated. Thank you (if this is a dupe, sorry...I could not find an answer to this).
trigger LeadTrig on Lead (before update) {
for(Lead l : trigger.new){
l.firstName = 'hello';
l.lastName = 'world';
}
}
PROFILING
). You may have to comb through line by line but should eventually find the issue.