Sorry, found one more quirk...when submitting the form (I.e. numberOfErrors==0), I had to move the recordService.Submit() and SaveFormToRecord() outside of your for loop as it was invoking the method(s) for each field. This also caused workflows to be executed one field ata time. So, for example, I received three email confirmations for my contact form with incremental data in it :)
Wicked nice package....
First of all, THANK YOU for putting this together. Just saved my butt on a project :)
I noticed a couple of things in your documentation that I thought I'd point out for other too:
Sorry, found one more quirk...when submitting the form (I.e. numberOfErrors==0), I had to move the recordService.Submit() and SaveFormToRecord() outside of your for loop as it was invoking the method(s) for each field. This also caused workflows to be executed one field ata time. So, for example, I received three email confirmations for my contact form with incremental data in it :)
Just and FYI. Thanks!
Thanks Nik, will update ASAP, apparently I posted an old version as I'd already solved that bug on my dev machine, sorry!
Fixed and updated! Thanks again!
Ah, no worries at all. Thanks for sharing it in the first place.
-- Nik
is working on a reply...