← Back to team overview

dhis2-users team mailing list archive

Re: Need some help

 

Hi Stephen,

we don't support that directly at the moment.. But if you are willing
to get your hands a bit dirty you can make a hack..

1. Upload your images as a file resource (reports module -> resource).
Then click on the green icon in the list of resources to get it again
and copy the URL to the image (from the browser address bar).

2. In the custom data entry form designer click on "source". Lets
assume the URL you copied is this:

http://apps.dhis2.org/demo/api/documents/Bshl5IEiLwo/data

Then paste this HTML code into the form, for instance in a table cell,
where you want the image to display:

<img src="http://apps.dhis2.org/demo/api/documents/Bshl5IEiLwo/data";>




regards,

Lars




On Tue, Sep 11, 2012 at 12:33 PM, Stephen Gbanyan <mambu9@xxxxxxxxx> wrote:
> Hi All,
>
> I have created a custom form and I am trying to have an image inserted into
> it can someone help?
>
> Thanks
>
> --
> __________________________________
> Stephen M. Gbanyan, Jr.
> Assistant Director
> Health Management Information System
> Ministry of Health and Social Welfare
> Republic of Liberia
> +231-886-847-915
> skype: mambu9
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>


References