Mobile Locker JavaScript SDK
    Preparing search index...

    Variable dataConst

    data: {
        submitForm(formName: string, formInput: Record<string, unknown>): void;
        getProducts(): Promise<Product[]>;
        getProduct(id: number): Promise<Product>;
        getLabels(): Promise<Label[]>;
        getLabel(id: number): Promise<Label>;
        getFolders(): Promise<Folder[]>;
        getFolder(id: number): Promise<Folder>;
        getCustomers(): Promise<Customer[]>;
        getCustomer(id: string): Promise<Customer>;
    } = ...

    Type Declaration

    • submitForm: function
      • Submit a data capture form event.

        Records the form submission in the Mobile Locker analytics pipeline under the 'data-capture' category. Use this to track lead forms, survey responses, or any structured input the user submits during a presentation.

        Parameters

        • formName: string

          Identifier for the form (e.g. 'lead-form', 'product-interest').

        • formInput: Record<string, unknown>

          Key/value pairs representing the form fields and their values.

        Returns void

        mobilelocker.data.submitForm('lead-form', { firstName: 'Jane', email: 'jane@example.com' })
        
    • getProducts: function
    • getProduct: function
    • getLabels: function
    • getLabel: function
    • getFolders: function
    • getFolder: function
    • getCustomers: function
    • getCustomer: function