How to disable textbox in a custom form in Tracker Capture App

Hi devs,

I have a requirement that to disabled a textbox (input type=text) in custom entry form in Tracker Capture App (v 2.26).
For example: the id of the input is “j92bPN38i2u-ermM0d4KorW-val”, and I was using JQuery:

$(“#j92bPN38i2u-ermM0d4KorW-val”).attr(“disabled”, true), but it didn’t work. It worked on custom tracked entity attribute form but not on custom data entry form.

How can I do that?

Best regards,

Dung

···

Nguyen Anh Dung - HISP Vietnam
Phone: (+084) 090 8686 274