Widget v3 Initialization
The init script creates an iframe and fetches the widget app sources and styles.
The Widget v3 Button
To be to initialize the widget modal with the needed data you have to define the widget button.
Field attributes allow you to pre-define data and to customize widget presentation.
- Allowed fields
- Allowed presentations
Recording UI Customization
Below is a list of variables, along with their default values, that allow you to customize the Widget v3 recording UI:
Putting It All Together
Below is an example script that will successfully run the Widget v3 once your event_code and access_token have been added. Optionally, you can also configure the 'primary brand' color for the widget which will change the overall color styling. Note that the color needs to be defined using hex color code.
- To find your eventCode log in to the NameCoach site, navigate to the Name Page you’d like the event_code for then navigate to ‘Request Names/Your Link’ and press the ‘Copy’ button next to ‘API Access Code’
- To generate your accessToken navigate to ‘Account’ > ‘Settings’ > ‘Access Tokens’