Adding a multi-line text field to a UI Page
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2021 03:10 AM
Hello!
I posted a question in this forum and was correctly answered. Thank you!
But I want to change the text field in the pop-up display from a single-line text field to a multi-line.
This is the HTML section in the UI Page.
<g:ui_form>
<input type="hidden" id="canceled" name="canceled" value="false"/>
<input type="hidden" name="task_id" id="task_id" value="${RP.getWindowProperties().get('sysId')}"/>
<div class="col-sm-21">
<span class="col-sm-19">
<input type="text" name="comments" id="comments" size="50" maxlength="100"/> <br/><br/><br/>
</span>
</div>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="left" nowrap="true">
<g:dialog_buttons_ok_cancel ok="return submitInfo();" cancel="return cancelInfo();" />
</td>
</tr>
</table>
</g:ui_form>
Is it possible to make the 'comments' field a multi-line text field?
Thank you.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2021 03:16 AM
Hi,
For html making a field as mandatory or required you need to set use this attribute "required"
Example: <textarea rows="4" cols="50" name="comments" required>
Here's a simple demo:
Multiline input field issue quick fix
Regards,
Vaishnavi Lathkar