How can I set the tab when using form.addSublist? ...
# ask-stanley-ai
k
How can I set the tab when using form.addSublist? More specifically, what value is the tab property seeking?
c
AI generated answer (using internal Slack threads):
When using
form.addSublist
, the
tab
property is seeking the ID of the tab where you want to add the sublist. If you want to add a sublist to an existing tab, you need to provide the ID of that tab. Here is an example:
Copy code
javascript
form.addSublist({
    id: 'custpage_uom_sublist_info',
    label: 'UOM Info',
    type: serverWidget.SublistType.INLINEEDITOR,
    tab: 'existing_tab_id'
});
In this example, 'existing_tab_id' is the ID of the tab where you want to add the sublist. If the tab does not exist, you will need to create it first using
form.addTab
or
form.insertTab
. Please note that if you want to add a sublist to a custom tab, you need to create the custom tab first and then add the sublist to it. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848083556
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845520139
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83313
Please provide your feedback on this answer.
Thank you for your feedback