<div dir="auto">Hola Ruben. Yo lo he hecho en un par de ocasiones perp no lo tdngo documentado. Si gustas hacemos una llamada para mostrarte lo que hice y te comparto los archivos para lograrlo.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue., 20 de enero de 2022 9:10 p. m., Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com">rulotec1@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Sorry, there was a mistake in my previous email in the second approach. The files DO get uploaded.</div><div>But in the detailview, the field value appears like this:</div><div><br></div><div><img src="cid:ii_kyntmxpc3" alt="image.png" width="159" height="66"><br></div><div><br></div><div>Just two dashes --</div><div><br></div><div><br></div><div><br clear="all"><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 20, 2022 at 8:53 PM Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com" target="_blank" rel="noreferrer">rulotec1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi everyone,<div><br></div><div>I'm trying to create an  upload field. Like the contact's image field but this one should allow for pdfs, doc, xls, etc... not just images. The use case is: make file fields mandatory, so that the user has to upload something. Currently, with the documents module you can have related files, but you cannot make them mandatory.</div><div><br></div><div>I've tried 2 approaches</div><div><br></div><div>1) Simply add a relation field linked to the documents module. After adding the field, it looks like so:</div><div><br></div><div><img src="cid:ii_kynspjb00" alt="image.png" width="345" height="73"><br></div><div><br></div><div>But only the lookup button works. The add button doesn't do anything. What I would like is that this modal would show up:</div><div><br></div><div><img src="cid:ii_kynsra3u1" alt="image.png" width="562" height="440"><br></div><div><br></div><div>2) I've previously managed to add an image field (uitype 69) like so: <a href="https://code.vtiger.com/vtiger/vtigercrm/issues/1635" target="_blank" rel="noreferrer">https://code.vtiger.com/vtiger/vtigercrm/issues/1635</a></div><div><br></div><div>So I tried using uitypes 28 and 61 to be able to upload other files different from images. None of them seem to work.</div><div>A button like this is displayed in the edit view: </div><img src="cid:ii_kynt4kpd2" alt="image.png" width="187" height="67"><br><div>But the files do not get uploaded.</div><div><br></div><div>If someone has any tips or solutions so I don't have to spend a lot of time on this, please let me know.</div><div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div></div></div>
</blockquote></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>