Hello Makhate,
Couple things!
So first of all, *if* the CSS is for the custom form and the custom form
only, putting them in the source tab like you described *should* work, but
it can be finicky, as DHIS 2 does alter the HTML as it is being displayed.
Best figure out what works in the chrome
Thanks,
I ran the POST-request and it looks like it ran successfully because i can
see the CSS file when i run /api/28/files/style.
One last thing, how do i link/reference that css file? I'm asking this
because the styling is not working on my forms.
Warmest regards,
Makhate, ICAP Lesotho
On
Did you have a look at our developer documentation on the use of custom
CSS/JS?
https://docs.dhis2.org/master/en/developer/html/webapi_ui_customization.html
This should also work for inline JS in the form.
On Wed, Feb 7, 2018 at 6:38 AM, Makhate Makhate
Hi Diao,
Thanks for helping out.
What do you mean when you say "*it maybe possible to use files*" what do
you mean by files.
The only trick that I could come up with is doing it like this but it
doesn't quite work:
/*
CSS code here
*/
Well, doing it like this, when i hit
Hi Makhate,
It maybe possible to use files but I used to paste Javascript code in the
Source window at the custom form editor, following this link
https://docs.dhis2.org/master/en/user/html/database_design.html#d0e36608
see the section *30.5.3.1.2. Custom Forms.*
Best
*Diao*
30.5.3.1.2. Custom
​Hello Communit​y,
I am customizing the UI form of our datasets here. We need help on where to
put CSS and Javascript files.
Kind regards,
Makhate Makhate
ICAP, Lesotho
___
Mailing list: https://launchpad.net/~dhis2-users
Post to :
6 matches
Mail list logo