Form Helper Question

Permalink
Hi, can anyone give me an example of how to add a default value to a text field using the form helper please - I seem to have drawn a blank on how to so this.

 
chemmett replied on at Permalink Best Answer Reply
chemmett
Just pass the default value as the second parameter:
$form->text('fieldName','defaultValue');

This might help:http://www.concrete5.org/documentation/developers/forms/standard-wi...
WebcentricLtd replied on at Permalink Reply
lol - thanks, had read that but had a complete brainfart - couldn't work out where I was going wrong with something so simple. Was already loading a variable in there for that parameter.