Skip to main content

Input SObject Field

Artem Kniazev
Artem Kniazev

example

Usage​

Simply add to your html markup:

<c-input-sobject-field
object-api-name={inputMapping.sourceObject}
field={inputMapping.sourceField}
object-list={objectList}
filter-options-fn={filterOptionsFn}
onchange={handleChange}
></c-input-sobject-field>

Properties​

Namerequired?typeDescription/Example
object-listrequiredArray of Objects[{label: 'Account', apiName: 'Account'}
object-api-nameoptionalStringObject Api Name to start with
fieldoptionalStringField Api Name to start with
filter-options-fnoptionalFunctionFunction to filter options

Methods​

NameArgumentsDescription/Example
reportValidityBooleanHide/Show Errors

Methods​

NameDescription/Example
change (onchange)When user selects value
validity (onvalidity)When validity state changed