Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Mandatory for Radiobutton property which is in repeating layout

SA-22485

Summary



The user has configured list of Questions and Answers , answers are radio button controls which are mandatory, if with out selecting the answers when the user submits, it displays Error symbol.

Issue: Here the label for the Radio button that is, "Answer" is getting in red color only for the first question where as for the other questions "Answer" Labels are in black color. Even after giving answer to the first Question, the Error symbol disappears as expected but the "Answer" Label is still in red color. When user answers to any one of the questions the error image is going of and the "Answer" label for the first question is getting black in color.


Error Messages



No error message.


Steps to Reproduce



1) Create a section with Repeat dynamic layout.
2) Add Radio buttons in one of the column of the layout and configure them as required.
3) Add three to four rows in the repeating layout.
4) Click 'Submit' button.

Root Cause



The 'for' attribute in the label field has the value corresponding to its input field. Since the input fields have the same Id and are differentiated by name attribute, all the label fields have the same 'for' attribute.
Due to this every time user tries to search a label with a specific 'for' field it picks up the first element with that particular value in the DOM.

Resolution



Apply HFix-27076.

Published April 27, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us