[HTMLFormEntry] JS computed values based on events in the VIEW mode of form

Hello

Using HTMLFormEntry is it possible to show the computed values in the view mode? We have a form where we calculate/show certain things based on a value filled in datetimepicker, radio-button checked.

We are not storing this value. This doesn’t show up in the VIEW mode of form. Is there a way to show it in VIEW mode?

Example: We calculate the time since injury based on a value picked in datetimepicker.

CC: @mksd @mksrom @dkayiwa @ssmusoke @premnisha

Are you using Javascript to calculate the values?

This is definitely possible, though you might need to do some hacks to get it to display the way you want it too…

Here’s an example of how we do it on one of our forms:

Take care, Mark

1 Like

Thanks @mogoodrich,

Yes we are using javascript. We will try to implement this.