"True/False" field , set default value is true, why in form layout it isn't be checked?

zhihong
Tera Contributor

hi experts,

I set "Active" field default value is true, why new a record , it isn't be checked?

find_real_file.png

find_real_file.png

17 REPLIES 17

Eric Menzel
Giga Contributor

Hi,

please also check the dictionary overrides:

Some Tables are Child-Tables of their parents (like Task -> Incident).
sometimes the parent tale overrides values of the child table fields.

 

How to check?

Please open the configuration for your table ("System Definitions" -> "tables").
Open the table your trouble-fild is on. After that open the dictionary entry of your true/false field.

There please check if (in related lists) you can see if a "dictionary override" exits which overrides the default value. If so - please check the base table (for example "task") and change the default value there!

 

I hope this helped you - if so, please mark as correct answer. Tank you!

Chris Sanford
Giga Guru

In case anyone has a similar issue to this like I did today, this might be the culprit.

If you create a new record from a list that has the filter condition active=false, it will always set active to false on the new form regardless of the default value, and vice versa.

In my case, it was the table awa_service_channel which has the default as active false, and the entire form also happens to break if you open a new record from a list where active=true!

tienminhngu
Tera Contributor

Use this code in the Default value, not only you need the value, but also the "javascript"

javascript: current.u_active = true;