Home > @magiclane/maps-sdk > ContactInfo > setField

ContactInfo.setField() method

Sets field type, value and name. The field must already exist.

Signature:

setField(index: number, type: ContactInfoFieldType, value: string, name: string): void;

Parameters

Parameter

Type

Description

index

number

Field index

type

ContactInfoFieldType

Field's type

value

string

Field's value

name

string

Field's name

Returns:

void