Learn how to create a dynamic Show/Hide reply container using the Assignment interaction
Learn how to create a dynamic Show/Hide reply container using the Assignment interaction in the Avonni Dynamic Components App. This example demonstrates how to manage component state declaratively.
Build a UI where:
In the Resources panel:
isReplying
false
This variable controls whether the reply panel is visible.
This container will be shown or hidden based on the value of isReplying
.
Reply
Interaction Configuration (On Click):
{!isReplying}
equal
true
Clicking the button sets isReplying
to true
, which will display the reply panel.
utility:close
or utility:delete
Interaction Configuration (On Click):
{!isReplying}
equal
false
Clicking the icon resets the variable, hiding the container again.
isReplying
is equal to true
.Result
isReplying
is false
, so the reply container is hidden.isReplying
to true
, making the container appear.false
, hiding it again.All of this logic is handled declaratively with just two Assignment interactions—no custom code required
Save time, reduce costs, and see your Salesforce projects come to life faster.