Label Position
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2023 07:48 AM - edited 04-14-2023 08:07 AM
Hi guys ,
I want to put a label on top off some field, like this image :
For this solution i change the "g_form.getLabel('teste').style="width=70%", but i have multiple fields, and i'm trying to find another way to do this.
Can anyone suggest some workaround?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2023 01:48 AM
You have to do this for each field. You can write a onload client script and have to use it for each field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2023 02:44 AM
Hi Tiago,
One solution could be to use a separate HTML element to display the label above the field. You could use the HTML element 'label' and set its 'for' attribute to the 'id' of the input element. Here's an example code snippet:
HTML:
<label for="field1">Label Text</label>
<input type="text" id="field1" name="field1">
CSS:
label {
display: block;
width: 70%;
margin-bottom: 5px;
}
You can add as many 'label' elements as you need for different fields, and set their 'for' attribute to the corresponding 'id' of the input element. This way, the label will be associated with the field and clicking on it will focus on the input field.
Hope this helps!
Thanks,
Rahul Kumar
Thanks,
Rahul Kumar