When I am authoring the name on the dialog for radio button eg: contact_method. It is not coming on the html. Getting some different value like this: radiobutton-f9353ec45c_name. Can anyone please help me on this? Attaching sc for your references.
The reason for this approach is that the name attribute of each radio button group must be unique. If it's not, the submitted data would be identical for all radio button groups. There are scenarios where forms may include radio buttons with the same name attribute across different panels or fragments within the same form
While I agree that a CSS selector is necessary to uniquely identify such radio buttons, to address this, we are planning the following updates:
The name attribute will now be formatted as ${id}_${name}, allowing you to use the endsWith CSS selector to target the radio button.
We will also introduce a data-name attribute, which will contain just the original name of the radio button, making it easier to reference.
There might be Caching Issues which can cause this problem. Please try clearing following caches and test again.
Dispatcher Cache: Sometimes, changes might not reflect due to caching. Clear the dispatcher cache to ensure that the latest changes are being served. Browser Cache: Clear your browser cache or try accessing the page in incognito mode to rule out client-side caching issues.