Skip to main content
Jan 28, 2025 2:40 AM UTC
Solved

I am facing an issue with AEM Forms Radio button.

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.

Khushwant_Singh
Khushwant_SinghAccepted solution
Adobe Employee
Jan 29, 2025 6:42 AM UTC

@syedwa3 , We have logged a ticket to fix it. We will inform you once the fix is incorporated in the product. 

5 replies

Adobe Employee
Jan 28, 2025 3:07 AM UTC

Drag and drop a new component and try again 

Translate
SyedWa3Author
Jan 28, 2025 4:38 AM UTC

Yeah, initially I also thought it because of the component but no it is happening for all the radio buttons.

Translate
Adobe Employee
Jan 29, 2025 5:51 AM UTC

Hello @syedwa3 

 

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.

 

Thanks,

Rahul Pandey

Translate
rishim22446870
Adobe Employee
Adobe Employee
Jan 29, 2025 6:25 AM UTC

@syedwa3

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:

  1. The name attribute will now be formatted as ${id}_${name}, allowing you to use the endsWith CSS selector to target the radio button.
  2. We will also introduce a data-name attribute, which will contain just the original name of the radio button, making it easier to reference.
Translate
Khushwant_Singh
Adobe Employee
Khushwant_SinghAdobe EmployeeAccepted solution
Adobe Employee
Jan 29, 2025 6:42 AM UTC

@syedwa3 , We have logged a ticket to fix it. We will inform you once the fix is incorporated in the product. 

Translate