Set default value for data elements in tracker program

Dear Team,
is it possible to set default value for DE for tracker program?
thank you
channara

Hello @Channara

Yes you can do it with Program Rule (with Assign value action)

Regards

3 Likes

@didate is correct. And remember that the program rule could evaluate always to true by using an expression such as that “true”

2 Likes

Hi @didate and @jaime.bosque ,
Yes, the assign value from program rule is working. But can we make it editable? mean users/data clerk able to change value from default if they need while entry data.

thank you
channara

Hello @Channara

Umm I don’t know, But the solution I see is to use a second data element (Yes Only) which will make the first one editable when you check it.

The rule will be : assign a value as long as the checked data element is not checked

1 Like