Boban Dragojlovic
05/13/2025, 1:53 PMCeligo AI
05/13/2025, 1:53 PMAI generated answer (using internal Slack threads):To force fields in a Suitelet to be single column, you can use the layout types
STARTROW
, MIDROW
, and ENDROW
. These layout types are typically used for fields within groups, but they can also be used to position fields side by side within a single column.
Here's how you can do it:
1. Set the layout type of the first field to STARTROW
. This will start a new row for this field.
2. Set the layout type of the second field to MIDROW
or ENDROW
. This will place the second field next to the first field within the same row.
Here's a code snippet that demonstrates this:
javascript
var field1 = form.addField({
id: 'custpage_field1',
type: serverWidget.FieldType.TEXT,
label: 'Field 1',
container: 'group'
});
field1.layoutType = serverWidget.FieldLayoutType.STARTROW;
var field2 = form.addField({
id: 'custpage_field2',
type: serverWidget.FieldType.TEXT,
label: 'Field 2',
container: 'group'
});
field2.layoutType = serverWidget.FieldLayoutType.MIDROW;
In this example, Field 1
and Field 2
will be displayed side by side within a single column.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
05/13/2025, 1:54 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.799698174
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.788817108
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.787493765
Celigo AI
05/13/2025, 1:54 PM