Changing Default value of Checkbox in Ax2012

Cjconry picture Cjconry · Mar 4, 2013 · Viewed 9.1k times · Source

For a check box I am trying to set the default value to checked.

I set the value in the properties to 1
Didn't appear checked by default.
Restarted AOS, did Full compile and CIL generation.
Still no luck.

Any Ideas what I am missing?

Answer

sycojason picture sycojason · Mar 4, 2013

Try inputing the value to 1 in the run method or classDeclaration with the FormCheckBoxControl method.

[checkbox value] = FormCheckBoxControl.checked(1);