Trying to pass in a value for a input in a form seems to yield no results. The documentation for the helper inputText shows a value option as a part of the creation of the input, but I am not sure how to pass in the desired parameters to the constructor.
I am passing in the parameters as follows:
@inputText(accountForm("accountName"), args = '_label -> "Account Name: ", '_value -> "Test")
The
valueparameter you see in the helperinputTextcomes from theFieldclass. If you want to give your field a default value, you have to set the value in your Controller. You can set default values by using thefillmethod from theFormclass.Note: there is also the HTML5 placeholder attribute. You can pass this attribute with the inputText helper:
@inputText(accountForm("accountName"), 'placeholder -> "Test")