<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi alan,<div class=""><br class=""></div><div class="">Use case is as follows: the sales person need to add documents (PDF or Images) while adding tasks, that’s why we discarded the relationship with documents. How can I do?</div><div class=""><br class=""></div><div class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div>Best Regards,<br class="">Sukhdev Mohan<br class="">———————————</div><div>Cel. (+39) 320 7020345<br class=""><a href="mailto:s.mohan@myti.it" class="">Email s.mohan@myti.it</a></div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">Il giorno 26 feb 2020, alle ore 11:34, Alan Lord <<a href="mailto:alanslists@gmail.com" class="">alanslists@gmail.com</a>> ha scritto:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 26/02/2020 09:52, Sukhdev Mohan wrote:<br class=""><blockquote type="cite" class="">Hi All,<br class="">I need to create an upload for Task module. I’ve used the following code to add the field with UI type 69<br class=""></blockquote><br class=""><blockquote type="cite" class="">But I’m displaying an inout box instead of the input type file. How can I achieve it?<br class=""></blockquote><br class="">It isn't exactly trivial.<br class=""><br class="">You'll need to examine how either the Documents module deals with it (See the Documents class file and it's save_module method which overrides CRMEntity; there is code in CRMEntity which makes UIType 69 save as setype "Image Attachment". (See Contacts and Products modules)<br class=""><br class="">You might also want to look at UIType 61 which is used in ModComments and Emails, depending on what you really need to do.<br class=""><br class="">You might find it easier to simply add Project Tasks as a relation to the Documents module...<br class=""><br class=""><br class="">HTH<br class=""><br class=""><br class="">Al<br class=""><br class="">_______________________________________________<br class=""><a href="http://www.vtiger.com/" class="">http://www.vtiger.com/</a></div></div></blockquote></div><br class=""></div></body></html>