Hierarchy

  • default
    • FormElementLists

Constructors

  • Parameters

    Returns FormElementLists

    import { FormElementLists } from '@oneblink/sdk'
    const options = {
    accessKey: '123455678901ABCDEFGHIJKL',
    secretKey: '123455678901ABCDEFGHIJKL123455678901ABCDEFGHIJKL',
    }
    const formElementListsClient = new FormElementLists(options)

Methods

  • Minimum Role Permission

    Lists: Manager

    Parameters

    Returns Promise<FormElementOptionSet>

    const data = {
    name: 'my list',
    organisationId: 'abc123',
    environments: [
    {
    options: [
    {
    label: 'One',
    value: '1',
    },
    {
    label: 'Two',
    value: '2',
    },
    ],
    formsAppEnvironmentId: 1,
    },
    ],
    type: 'STATIC',
    }
    const list = await formElementListsClient.createFormElementList(data)
    // Use list here...
  • Minimum Role Permission

    Lists: Manager

    Parameters

    • id: number

      The id of the list to delete

    Returns Promise<void>

    await formElementListsClient.deleteFormElementList(1)
    
  • Minimum Role Permission

    Lists: Manager

    Parameters

    Returns Promise<FormElementOptionSet>

    const data = {
    id: 1,
    name: 'my list',
    organisationId: 'abc123',
    environments: [
    {
    options: [
    {
    label: 'One',
    value: '1',
    },
    {
    label: 'Two',
    value: '2',
    },
    {
    label: 'Three',
    value: '2',
    },
    ],
    formsAppEnvironmentId: 1,
    },
    ],
    type: 'STATIC',
    }
    const list = await formElementListsClient.updateFormElementList(data)
    // Use list here...