This branch ensures that the HTML ID of radio buttons in surveys is unique across surveys. This avoids the problem of duplicate HTML IDs when more than one survey is present in a single unit whose answer keys happen to overlap.
Testing instructions
Install this branch in your devstack
In Studio, create a unit with two sample surveys - keep the default questions and answers - and publish it.
In the LMS browse to the survey.
Using the browser's developer tools (or show source), verify that each of the radio buttons in the two surveys has a unique HTML ID.
This branch ensures that the HTML ID of radio buttons in surveys is unique across surveys. This avoids the problem of duplicate HTML IDs when more than one survey is present in a single unit whose answer keys happen to overlap.
Testing instructions