How to hide certain values in a field before other fields are entered?


it is possible to show the format-date-time(now(), ‘%Y%m%d%H%M%S’)) value after inputting another integer number from another field? for example this 2 fields: ARV Code and ID Code
The ARV CODE = integer
The ID Code: auto-generate using format-date-time(now(), ‘%Y%m%d%H%M%S’))

when we start the form, then I want to hide only the date and time value (only show ID Code blank field) in ID Code (not the whole field) and the value will appear after inputting any number in the ARV Code field.

I try to use skip logic as well as disabled = TRUE, but it is completely hidden the whole field. I just want to hide only the value.


@chenboly, could you share the relevant part of the XLSForm with the community?

Thanks @Kal_Lam here is the screenshot of XLSForm.

Hello, is there any solution ?

So you mean the ID CODE should only appear once the ARV CODE is entered in the form? Did I get you correct?

Yes, that is correct.

@chenboly, could you share the relevant part of your XLSForm with the community? Maybe the community should be able to help you solve your issue.

Hi @Kal_Lam
Here is the part of XLS Form.

@chenboly, you could do it using the trigger option as shown in the image shared below:

In the survey tab of your XLSForm:

Image 1

Data entry screen as seen in Enketo: when nothing is entered

Data entry screen as seen in Enketo: when a value is entered

Reference XLSForm:

trigger.xlsx (10.3 KB)