T
Twenty2w ago
kyrpav

Setup of Mandatory fields.

It was recomended that with direct db access i can set some of them as mandatory. It seems in case of text at least i can not. When i set description to not null but i remove the default ''::text value i can not hit the create new record cause i get exception
No description
No description
4 Replies
Prastoin
Prastoin5d ago
Hello there, I'm not sure to understand the initial motivation here ? Have you tried clearing your cache after doing so ? Passing directly by the database omits a lot of business logic yarn command:prod cache:flush
kyrpav
kyrpavOP5d ago
this business logic does not exist in UI
Prastoin
Prastoin5d ago
I don't think you can edit standard field isNullable option Alternavely you can create a custo field to will server this purpose
kyrpav
kyrpavOP5d ago
there is not solution in user interface to setup a field as mandatory to create a record or not. you can not set this up from the user interface irrelevant if the records are standard or not also when you change the db to remove the default values to create really an mandatory field this will not work in UI but only with API UI crashes

Did you find this page helpful?