Checkbox List Default
Checkboxlist default() does not work in EditRecord. How to resolve it?
11 Replies
Defaults don't get applied when editing records. They are only applied when creating.
so how to apply the default when editing record?
Something like this
thank you, sir. I try
Just bear in mind that this will override any value that field previously had. Which is why default() only applies when creating, when by definition fields don't yet have values.
That's why the check for
is_null()
(or something similar depending on the field) is needed->default() did not get applied when I'm creating too for Checkboxlist
My code is something like this
are you using the panel builder or only the form builder?
panel builder create resource page
looks like i solved it by not using ->default() on the create page, time to sleep
thank you