Width of input/drop down in custom event capture forms

Hi, I'm trying to set up an event capture custom form in 2.20. It looks like a style="100%" attribute is added directly to all input elements, making it impossible to use use css classes in the custom form. Unless it has changed recently, this has always been possible in the aggregate custom forms and can be quite useful. Would it be possible to make it to work in a similar way for tracker custom forms?

Regards
Olav

A cheap and cheerful workaround could be to append ‘!important’ to the css statements which you need to override. It should force your style regardless of the specificity of the selector in the original stylesheet.

E.g:

{

width: 20em !important;

}

···

2015-09-21 15:22 GMT+02:00 Olav Poppe olav.poppe@me.com:

Hi, I’m trying to set up an event capture custom form in 2.20. It looks like a style=“100%” attribute is added directly to all input elements, making it impossible to use use css classes in the custom form. Unless it has changed recently, this has always been possible in the aggregate custom forms and can be quite useful. Would it be possible to make it to work in a similar way for tracker custom forms?

Regards

Olav


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi,

Not sure why it was added, will be removed.

Normally we don’t style custom form, it is up to the user to style.

···

On Mon, Sep 21, 2015 at 3:37 PM, Halvdan Grelland halvdanhg@gmail.com wrote:

A cheap and cheerful workaround could be to append ‘!important’ to the css statements which you need to override. It should force your style regardless of the specificity of the selector in the original stylesheet.

E.g:

{

width: 20em !important;

}


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Thank you,

Abyot.

2015-09-21 15:22 GMT+02:00 Olav Poppe olav.poppe@me.com:

Hi, I’m trying to set up an event capture custom form in 2.20. It looks like a style=“100%” attribute is added directly to all input elements, making it impossible to use use css classes in the custom form. Unless it has changed recently, this has always been possible in the aggregate custom forms and can be quite useful. Would it be possible to make it to work in a similar way for tracker custom forms?

Regards

Olav


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi,

Abyot, yes, that’s also what I thought, it defeats the purpose of the custom form.

Halvdan, thanks, didn’t think of that - will do that in the interim.

Olav

···

On Mon, Sep 21, 2015 at 3:37 PM, Halvdan Grelland halvdanhg@gmail.com wrote:

A cheap and cheerful workaround could be to append ‘!important’ to the css statements which you need to override. It should force your style regardless of the specificity of the selector in the original stylesheet.

E.g:

{

width: 20em !important;

}


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Thank you,

Abyot.

2015-09-21 15:22 GMT+02:00 Olav Poppe olav.poppe@me.com:

Hi, I’m trying to set up an event capture custom form in 2.20. It looks like a style=“100%” attribute is added directly to all input elements, making it impossible to use use css classes in the custom form. Unless it has changed recently, this has always been possible in the aggregate custom forms and can be quite useful. Would it be possible to make it to work in a similar way for tracker custom forms?

Regards

Olav


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp