Make a field to true by default

kpj
Giga Contributor

I created an Active field with True/False type. I have given the default Value as true in Dictionary as well. But on the form, I do not see the Active as true i.e., Active check-box is not true.

I really appreciate for your valuable answers

Thanks,

KP

9 REPLIES 9

salvadormarchan
Kilo Guru

KP,


Either check the Business Rule or Client Script for a start...search the field for that table...there could be an inherit script somewhere,,,please let me know if this helps...Cheers, Dor


Robert Beeman
Kilo Sage

If you are setting the default value to a boolean true (no quotes around it) then it should be working. I just verified it in my dev instance. If you just created the field then it won't set it for pre-existing records, only records created after the default was defined.


reedwowens
Giga Expert

Jack,



Here are some screenshots on Geneva with this working:



Screenshot_032116_105236_AM.jpg



This is a new table I created:



Screenshot_032116_105410_AM.jpg



Just setting the default value to true works.   Do you have any Business Rules or UI Policies overriding the default value?


kpj
Giga Contributor

Thank you All for quick response. I do not have any Business Rules or Client Script running on this form.



Robert - Yes, I have pre-existing records and these records are also need to be set True.



Just to be Specific on my problem: I have pre-existing records on a Table and I want all those records to be set as true