I am facing an issue with AEM Forms Radio button. | Community
Skip to main content
January 28, 2025
Solved

I am facing an issue with AEM Forms Radio button.

  • January 28, 2025
  • 3 replies
  • 898 views

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.

Best answer by Khushwant_Singh

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

3 replies

Adobe Employee
January 28, 2025

Drag and drop a new component and try again 

SyedWa3Author
January 28, 2025

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

Adobe Employee
January 29, 2025

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

rishim22446870
Adobe Employee
Adobe Employee
January 29, 2025

@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.
Khushwant_Singh
Adobe Employee
Khushwant_SinghAdobe EmployeeAccepted solution
Adobe Employee
January 29, 2025

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