nerdexam
Salesforce

PDI · Question #195

Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values…

The correct answer is D. Quick Actions. To replace a Classic JavaScript button that prepopulated fields for new records in Lightning Experience, Quick Actions are the declarative and recommended solution.

Submitted by zhang_li· Apr 18, 2026Logic and Process Automation

Question

Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values. What can the developer use to accomplish this?

Options

  • ARecord triggered flows
  • BApex triggers
  • CValidation rules
  • DQuick Actions

How the community answered

(59 responses)
  • A
    10% (6)
  • B
    7% (4)
  • C
    3% (2)
  • D
    80% (47)

Why each option

To replace a Classic JavaScript button that prepopulated fields for new records in Lightning Experience, Quick Actions are the declarative and recommended solution.

ARecord triggered flows

Record-triggered flows automate processes based on record changes (creation, update, deletion) and execute in the background, rather than providing an interactive UI element for users to initiate record creation with prepopulated values.

BApex triggers

Apex triggers are programmatic solutions that execute before or after DML operations on records and are used for complex backend logic, not for replacing a user-facing button that initiates record creation with prepopulated fields.

CValidation rules

Validation rules enforce data integrity by preventing records from being saved if they don't meet specified criteria; they do not create records or prepopulate field values.

DQuick ActionsCorrect

Quick Actions allow users to quickly create records with pre-defined field values directly from a record page or the global actions menu, providing a declarative way to replace the functionality of a Classic JavaScript button for prepopulating fields during record creation. They are specifically designed for efficient data entry and interaction within the Lightning Experience UI.

Concept tested: Quick Actions for record creation

Source: https://help.salesforce.com/s/articleView?id=sf.actions_overview.htm&type=5

Topics

#Quick Actions#Prepopulation#Lightning Experience#Classic to Lightning Transition

Community Discussion

No community discussion yet for this question.

Full PDI Practice