The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Form Builder: <INPUT> default values? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16) +--- Thread: Form Builder: <INPUT> default values? (/showthread.php?tid=1984) |
Form Builder: <INPUT> default values? - philou - Apr 8th, 2012 Hi, is it possible to specify the default value for a field (input element) generated through Form Builder? In my particular case, I would like a textarea input field to already contain some text, which will be completed by the user of the form. If that is not possible, I would have to resort to the rather inelegant solution of putting the HTML markup for that particular input inside the Smarty template with an IF statement. Many thanks, p. RE: Form Builder: <INPUT> default values? - paulr - Jul 19th, 2012 Again probably too late for the original poster, but here's the answer for anyone else: In the form > Views > select the view where you need the default input (if there's more than one view, otherwise in the one there is) > General tab > at the bottom is 'Default Values for New Submissions'. Add a row, select the field in question from the dropdown and type in the Default value you want. Update View and that's it. |