Add content to dynamic region


If I have a dynamic region and would like to populate it with a form based on a button click, whats the best way to do this?

Tried this but nothing happens. Should I add an element into this? Or is there some bettwe way of handling?

Set-UDElement -Id ‘test’ -content {
New-UDTypography -Text ‘Update credential’ -variant “h6” -Align “Center”

How is your current dynamic region and button looking?

I got it working with an Element, but it is a grid with 2 buttons and underneath a blank dynamic region, I was then trying to set the content on the fly when you clicked a button.

Using a blank element I can sent the content so it works. Maybe I was just using the wrong item before.

Glad you figured it out :slight_smile: