<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">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" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div></div></div>