← Back to team overview

dhis2-devs team mailing list archive

Re: Tracker capture and custom forms

 

Hi, 
thanks both. My challenge is that we have two fields, where the user needs to fill one of them. So we can’t make either of them required, and currently we can’t show a warning to remind users to fill in one of them (since we use a custom form). This should address this when implemented: https://blueprints.launchpad.net/dhis2/+spec/program-rules-error-on-completion

Markus, regarding widget vs inside form, I think there are pros and cons to both - but the main thing is that there is something! And it wouldn’t hurt if there was consistency between how this was handled in TC and EC. Currently EC has a mix of both, with "required" labels in the form and warnings in the widget.

Olav



> 10. mai 2016 kl. 22.18 skrev Elmarie Claasen <elmarie@xxxxxxxx>:
> 
> Hi Olav,
> 
> Just a note that in 2.23 Tracker Capture you are not able to complete a program stage if required fields are missing. Each datavalue is saved once captured though and you are still able to close a form with only some fields captured. But at least the enforcement on completing a program stage does help.
> 
> Elmarie
> 
> On 10 May 2016 15:45, "Olav Poppe" <olav.poppe@xxxxxx <mailto:olav.poppe@xxxxxx>> wrote:
> Hi devs,
> first, I’ve been working on a custom data entry form for tracker (2.22 and 2.23). I’ve customised the same form as programmes with and without registration, and I notice that in Tracker Capture everything is seemingly "magnified" by 25% or so compared to Event Capture (e.g. rows that are 35px high in EC are 44px in TC). Is there a reason for this? The way it is rendered in Event Capture seems more "normal" to me, whilst opening custom forms in Tracker Capture always make me think Chrome is set to zoom…
> 
> Second, in Tracker Capture, there seems to be no way of displaying "validation warnings" (defined through program rules) - could there be something similar to EC, with a "Validation warnings" widget? Similarly, while EC will highlight missing required fields when completing ("Required" in red), there is no indicator TC as to what field(s) are missing.
> 
> Regards
> Olav
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs <https://launchpad.net/~dhis2-devs>
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx <mailto:dhis2-devs@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~dhis2-devs <https://launchpad.net/~dhis2-devs>
> More help   : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
> 
> This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission.  If you cannot access the disclaimer, kindly send an email to disclaimer@xxxxxxxx <mailto:disclaimer@xxxxxxxx> and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.
> 


References