nerdexam
Salesforce

PDI · Question #222

A developer is tasked with building a custom Lightning web component to collect Contact information. The form will be shared among many different types of users in the org. There are security…

The correct answer is D. lightning-input-field. To ensure field-level security and CRUD permissions are respected for different users within a Lightning Web Component form, the developer should use lightning-input-field components.

Submitted by fatema_kw· Apr 18, 2026User Interface

Question

A developer is tasked with building a custom Lightning web component to collect Contact information. The form will be shared among many different types of users in the org. There are security requirements that only certain fields should be edited and viewed by certain groups of users. What should the developer use in their Lightning Web Component to support the security requirements?

Options

  • Aforce-input-field
  • Bui-input-field
  • Caura-input-field
  • Dlightning-input-field

How the community answered

(57 responses)
  • A
    5% (3)
  • B
    2% (1)
  • C
    4% (2)
  • D
    89% (51)

Why each option

To ensure field-level security and CRUD permissions are respected for different users within a Lightning Web Component form, the developer should use `lightning-input-field` components.

Aforce-input-field

`force-input-field` is not a standard or valid Lightning Web Component tag; the correct component for respecting FLS and CRUD is `lightning-input-field`.

Bui-input-field

`ui-input-field` is not a standard or valid Lightning Web Component tag; it might be an outdated or incorrect reference to a component.

Caura-input-field

`aura-input-field` is not a standard or valid Lightning Web Component tag; components prefixed with `aura-` belong to Aura Components, which have a different syntax and structure than LWCs.

Dlightning-input-fieldCorrect

The `lightning-input-field` component automatically respects the user's field-level security and object-level permissions (CRUD) for the fields it displays, rendering them as read-only, editable, or hidden based on the current user's profile and permission sets, thus supporting robust security requirements for various user groups.

Concept tested: Lightning Web Component (LWC) forms and security (FLS/CRUD)

Source: https://developer.salesforce.com/docs/component-library/bundle/lightning-input-field/documentation

Topics

#Lightning Web Components#Field-Level Security (FLS)#User Interface Components#Data Security

Community Discussion

No community discussion yet for this question.

Full PDI Practice