How do i add dynamic values into the custom list i...
# suitescript
m
How do i add dynamic values into the custom list in suitescript?
s
Remove the source when creating the list and manually put the values you want in there.
m
can we do that in suitlet form?
I want to add suitlet form values into the custom list on post and i want to load that values into the custom form
s
you can put whatever values you want in a dropdown, just don' make the dropdown source from anything
m
I want to add values to the custom list but using suitescript? is it possible?
e
I think this is what you're looking for .... if I understand it correctly...
Copy code
let stageField = form.addField({
    id: 'custpage_stage',
    label: 'Stage',
    type: serverWidget.FieldType.SELECT,
});

stageField.addSelectOption({
    value: "all",
    text: "-ANY-",
    isSelected: true
});

stageField.addSelectOption({
    value: "LEAD",
    text: "Lead",
    isSelected: false
});

stageField.addSelectOption({
    value: "PROSPECT",
    text: "Prospect",
    isSelected: false
});

stageField.addSelectOption({
    value: "CUSTOMER",
    text: "Customer",
    isSelected: false
});
m
@ericbirdsall Thanks for your response, but I'm talking about Custom List