I want to put in a default value of null (or blank) for a user created field in Studio. Is this possible?
hi Marielle Durrett, have you checked the studio for integer field. set default value in field highlighted as needed.
Please check the screenshot.
What do I put in that field? If I leave it blank it puts zero as the default. It won't accept "null".
Hi Marielle Durrett
Have you tried extending the vardefs of the field with the value you want.
Thanks for your help, Sidhu. I don't know how to extend the vardefs of the field. Is there documentation that will show me how to do that?
For your case it should look like
$dictionary['<module>']['fields']['<fields>']['default'] = null;
You can check custom/modules/<module>/vardefs.php file for more info
Thank you! I will do this.
Retrieving data ...