- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2022 06:10 AM
I have a sample code snippet using a g:ui_input_field where the field size is set staticly with "size=75". Can this be set dynamically to adjust to the width of the UI page?
<tr>
<td colspan="2" >
<j:set var="jvar_mandatory" value="false"/>
<g:ui_input_field id="short_description" name="short_description" label="Short Description" value="${jvar_name} is having issues" size="75"/>
</td>
</tr>
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2022 08:30 AM
Size only effects how many characters a field can handle, not how wide it is. You can set the width of the element using the style attribute. Something like:
<g:ui_input_field style="width: 100%;" />
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2022 08:30 AM
Size only effects how many characters a field can handle, not how wide it is. You can set the width of the element using the style attribute. Something like:
<g:ui_input_field style="width: 100%;" />