How to set default value in text field.

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

Silverstripe Version:3.2.1

How to set the default value in the text field in pages. I want to set my price by default 30 in the price textbox on my custom module page file.

Couldn’t find the equivalent docs entry for v3 but DataObject::$defaults lets you do that: