The radio button can also get its label dynamically from a variable. In the example below, the first radio button's label needs to show the current date to the end user.
Steps to add dynamic content to radio button's label:
- Follow the instructions described in 'Set up Radio Buttons' section to set up the radio button.
- Click on the radio button, then select the 'Span' element on the breadcrumb.
- On the right pane, add the wanted variable to the 'Content' attribute in the Dynamic Attributes section. To display the current date, the variable
todaywas used for the example. The 'Span' element will become bold and dark blue, indicating that there's dynamic content behind.