Would you help me to understand what's the difference of this two fields in Orchard CMS?
Many thanks,
Rocky
A text field is a basic text control that enables the user to type a small amount of text. When the user indicates that text entry is complete (usually by pressing Enter), the text field fires an action event. If you need to obtain more than one line of input from the user, use a text area.
Definition and Usage The <textarea> tag defines a multi-line text input control. The <textarea> element is often used in a form, to collect user inputs like comments or reviews. A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).
Text fields allow users to enter text into a UI. They typically appear in forms and dialogs.
The InputField is newer than the TextField and has more options, such as the ability to set the type (e.g. text, tel, email), autofocus, autocomplete, placeholder text, editor css class and maxlength.
The TextField on the other hand supports a flavor, allowing you to turn the text field into a single line textbox, a textarea, a markdown editor, html editor, or any other flavor provided by any module.
In my opinion, we should consider getting rid of the Input Field and update the TextField in core with the capabilities found in InputField. This avoids confusion and at the same time offers greater flexibility.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With