<div dir="ltr">If you're not averse to modifying the database, what we did here was<div><br></div><div>ALTER TABLE vtiger_foo</div><div>MODIFY COLUMN leadsource NOT NULL DEFAULT 'bar';</div><div><br></div><div>
We actually went a step further with a </div><div><br></div><div>REFERENCES vtiger_leadsource (leadsource) ON UPDATE CASCADE<br></div><div><br></div><div>so that any renaming of lead sources is propagated.</div><div><br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 4, 2013 at 7:27 PM, Richard Hills <span dir="ltr"><<a href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am experiencing the following problem:<br>
When I create an account/opportunity from a lead if no values are mapped for my custom picklists, rather than defaulting these to the values selected in the module manager these values are filled as null.<br>
<br>
I was just wondering if anyone can suggest a solution, I presume the code in the conversion part of the system simply ignores these defaults and if possible I would like to avoid having to write this script. If this has never been done however I may look at fixing up the code to look properly for default field values. I would love to hear I have just done something wrong, so if this is working for you then please let me know also.<br>

<br>
I have considered writing a cleanup workflow but again as we can not match on null in the conditions area of the workflow setup this does not seem to be possible.<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Richard Hills<br>
TechnologyWise Ltd, Tauranga, NZ<br>
<a href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a><br>
<a href="http://www.technologywise.co.nz" target="_blank">www.technologywise.co.nz</a><br>
ph: +64 (0)7 571 1060<br>
fax: +64 (0)7 571 1061<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</font></span></blockquote></div><br></div>