How do you set the Default value for textfield in metadata .php file?
Actually you can set default value for a text field in studio!
If you want to do it through code, below is the steps.
create a new file 'set_default_value.php' in ~custom/Extension/modules/<your-module-name>/Ext/Vardefs/. and add the below content.
Now run a Quick Repair and Rebuild by navigating to Admin > Repair > Quick Repair and Rebuild.
Hope it Helps!
Retrieving data ...