Milcho Dimkov
09/05/2024, 9:32 AMCeligo AI
09/05/2024, 9:32 AMAI generated answer (using internal Slack threads):In a Suitelet, to make some of the fields appear in a second column (not on a sublist), you can use the layout types
STARTROW
, MIDROW
, or 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 is a brief explanation of how to use these layout types:
- `STARTROW`: This layout type starts a new row in the form. You can use this layout type for the first field that you want to appear on the left side.
- `MIDROW`: This layout type continues the current row with a new field. You can use this layout type for the subsequent fields that you want to appear next to the first field.
- `ENDROW`: This layout type ends the current row. You can use this layout type for the last field that you want to appear on the right side.
Here is an example of how to use these layout types:
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 appear side by side in the form.
******
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
09/05/2024, 9:33 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842808366
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834266365
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829475522
Celigo AI
09/05/2024, 9:33 AM