Expand my Community achievements bar.

SOLVED

I am facing an issue with AEM Forms Radio button.

Avatar

Level 1

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.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Moderator

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

View solution in original post

5 Replies

Avatar

Employee Advisor

Drag and drop a new component and try again 

Avatar

Level 1

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

Avatar

Employee

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

Avatar

Employee

@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.

Avatar

Correct answer by
Moderator

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