Virtual drop down list

Create virtual drop-down list in the before load context of the User event script.

let addressList = form.addField({
          id: "custpage_address",
          type: serverWidget.FieldType.SELECT,
          label: "GSTIN Address",
        });
        addressList.addSelectOption({
          value: "NONE",
          text: " "
        })
        addressList.addSelectOption({
          value: locationAddress1,
          text: locationText1
        })
        addressList.addSelectOption({
          value: locationAddress2,
          text: locationText2
        })

Leave a comment

Your email address will not be published. Required fields are marked *