Today something caught my eye. For some reason I cannot preload a form field of type 'text' with a value. I am not sure if this is intentional, an omission or a bug?
With a form field of type 'textarea' it works. I can preload a value into the form in this way:
or even in this way:
Which is powerful and works great!
But if I try this exact same thing with type 'text' then the form field remains empty.
For now I simply use the textarea instead of text and it works. But I am curious... am I doing something wrong?
With a form field of type 'textarea' it works. I can preload a value into the form in this way:
- Code: Select all
<cms:input
type="textarea"
name="example"
cols="80"
rows="5" >
Default field value
</cms:input>
or even in this way:
- Code: Select all
<cms:input
type="textarea"
name="example"
cols="80"
rows="5" >
<cms:show some_value />
</cms:input>
Which is powerful and works great!
But if I try this exact same thing with type 'text' then the form field remains empty.
For now I simply use the textarea instead of text and it works. But I am curious... am I doing something wrong?