jonathan
(Mutagubya Jonathan)
November 3, 2023, 6:41am
1
Hi team,
Is there a way to show only time in html form entry ?
Looked into this
Platform Version: 1.11.4
OpenMRS Version: 2.3
Question:
On an HTML form, I would like to have the date-time widget of an obs show the Date and Time (Hour and Minutes), without the seconds field. Is it possible to “hide” the seconds box?
Or, is there a way to make the time fields smaller in the SimpleUI and StandardUI of the Reference Application?
[image]
and saw that there is a way to hide seconds …however want also to hide the date …section
here is my obs tag
<obs id="time" conceptId="3fd05451-ea4d-41cc-b26c-9a4c96add027" allowTime="true" hideSeconds="true"/>
cc @dkayiwa @sharif @ball
ball
(Ellen Ball)
November 3, 2023, 2:56pm
2
The attribute/feature to show a time for a datetime concept does not exist. Feel free to create a ticket and add the code.
PIH doesn’t have a use case for this, but likely others do.
1 Like
sharif
(Sharif Magembe)
November 9, 2023, 8:44am
3
Hello @jonathan . Are you in position to create a ticket for this ?, Do you btw still need this ?
jonathan
(Mutagubya Jonathan)
November 9, 2023, 9:32am
4
Oh yes @sharif however feel free to create a ticket you can assign me or Work on it at anytime been sorting out some priorty tasks but can look in this by this Friday or Sunday
jonathan
(Mutagubya Jonathan)
December 3, 2023, 12:15pm
5
Hey @sharif got a quick way on this … What have done is :
To Update the concept datatype to Time provides some thing like this
also a note
Am also using bootstrap which attaches some designing
NOTE :
This however does not hide the seconds though in my instance this is okay for me now
cc @ball @sharif
1 Like