Edit Surface Form Embedding Script
Let’s edit the Surface Form Embedding Script to display the form as a widget.Customize Widget Appearance
You can customize the appearance of the widget by adjusting thewidgetStyles options in the SurfaceEmbed instance.
Control Popup Size
When the widget is clicked, it triggers a popup. You can control the size of this popup using the popupSize variable on the SurfaceEmbed instance. Current accepted values are small, medium, and large.Use it with Popup Embedding
The widget inherits the popup embedding type only, Hence, we can still use the popup embedding type by addingsurface-form-button class to any HTML element to trigger the popup.