Hi all, I have the following code snippet (in a f...
# suitescript
c
Hi all, I have the following code snippet (in a for-loop) when creating an assistant Suitelet: var increaseFields = assistant.addField({ id: priceAdjMatIds[i], type: serverWidget.FieldType.CHECKBOX, label: priceAdjMaterials[i], container: 'increase_field_group', }); var decreaseFields = assistant.addField({ id: priceAdjMatIdsDec[i], type: serverWidget.FieldType.CHECKBOX, label: priceAdjMaterials[i], container: 'decrease_field_group' }); And these fields retain their values even when I navigate to the URL from the deployment record. Is there a way for me to clear out these fields every time the suitelet starts up? Thanks!
b
update the default values of the fields
usually be detecting that the request method was a GET
c
so would it be something like: increaseFields.defaultValue = false?
that worked, thank you