Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM 2013: Pre-Update plugin interfering with form JS

$
0
0
I ran into something crazy today in CRM 2013, and I wondered if others had hit this. On the campaign activity form, there is js on the onchange event for the start/end dates, to make sure that start is before end. We have a pre-update plugin on campaign activity that can populate those fields. In CRM 2011, this was not a problem. In CRM 2013, if we make a change and save, that fires our pre-update plugin which will modify the dates on the target in the plugin context. The form is then refreshed with the updated dates... EXCEPT that it appears to sequentially process the target changes, so that the start date is updated first, before the end date, and is found to be later than the end date, and the JS throws an error. 

Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>