Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

RadioButtonList groups

Avatar

Former Community Member

I currently am building a form that has 5 sets of radio buttons similar to the layout of the following table.

ScheduleFinancialScopeHeader 4Header 5
Action RequiredAction RequiredAction RequiredAction RequiredAction Required
CautionCautionCautionCautionCaution
On PlanOn PlanOn PlanOn Plan

I would like each group to operate independantly.

I am also trying to highlight the background of the selected radio button in each group while keeping the non-selected buttons white. Similar to a traffic light system. My level of javascript and form design is at a novice level.

Any advice would be much appreciated regarding this topic.

3 Replies

Avatar

Level 10

Hi,

When you drag a radio button onto the page, you get two things:

  1. A radio button; and
  2. A radio button exclusion group.

See the hierarchy:

Radio buttons 01.png

You can select a radio button and while holding down Control, drag a new copy (radio button) within the radio button exclusion group. You can then reposition this on the page. You should end up with three radio buttons in the one radio button exclusion group:

Radio buttons 02.png

You would then need to copy create different radio button exclusion groups for each section of the form.

There is an example here that goes through some of the visual scripting options: http://assure.ly/kp60nk.

Hope that helps,

Niall

Avatar

Former Community Member

Hi Niall,

Thanks for the examples, much appreciated.

I have tried to copy over the script events into the Testing1 document to get it working. But I seem to be doing something wrong as the script is not working as it should.

I would like to achieve the same outcome regarding the radio buttons as in the examples of the Azzure PDF's. I am just not able to work out where I am going wrong.

All help would be greatly received.

Steve

********************************************************************************

This email, including any attachments sent with it, is confidential and for the sole use of the intended recipient(s). This confidentiality is not waived or lost, if you receive it and you are not the intended recipient(s), or if it is transmitted/received in error.

Any unauthorised use, alteration, disclosure, distribution or review of this email is strictly prohibited. The information contained in this email, including any attachment sent with it, may be subject to a statutory duty of confidentiality if it relates to health service matters.

If you are not the intended recipient(s), or if you have received this email in error, you are asked to immediately notify the sender by telephone collect on Australia +61 1800 198 175 or by return email. You should also delete this email, and any copies, from your computer system network and destroy any hard copies produced.

If not an intended recipient of this email, you must not copy, distribute or take any action(s) that relies on it; any form of disclosure, modification, distribution and/or publication of this email is also prohibited.

Although Queensland Health takes all reasonable steps to ensure this email does not contain malicious software, Queensland Health does not accept responsibility for the consequences if any person's computer inadvertently suffers any disruption to services, loss of information, harm or is infected with a virus, other malicious computer programme or code that may occur as a consequence of receiving this email.

Unless stated otherwise, this email represents only the views of the sender and not the views of the Queensland Government.

Avatar

Former Community Member

Hi Niall,

I have got the code to work and am over the moon. I believe that I can get my traffic light system to work now. Thanks for all your time and effort.

Steve

********************************************************************************

This email, including any attachments sent with it, is confidential and for the sole use of the intended recipient(s). This confidentiality is not waived or lost, if you receive it and you are not the intended recipient(s), or if it is transmitted/received in error.

Any unauthorised use, alteration, disclosure, distribution or review of this email is strictly prohibited. The information contained in this email, including any attachment sent with it, may be subject to a statutory duty of confidentiality if it relates to health service matters.

If you are not the intended recipient(s), or if you have received this email in error, you are asked to immediately notify the sender by telephone collect on Australia +61 1800 198 175 or by return email. You should also delete this email, and any copies, from your computer system network and destroy any hard copies produced.

If not an intended recipient of this email, you must not copy, distribute or take any action(s) that relies on it; any form of disclosure, modification, distribution and/or publication of this email is also prohibited.

Although Queensland Health takes all reasonable steps to ensure this email does not contain malicious software, Queensland Health does not accept responsibility for the consequences if any person's computer inadvertently suffers any disruption to services, loss of information, harm or is infected with a virus, other malicious computer programme or code that may occur as a consequence of receiving this email.

Unless stated otherwise, this email represents only the views of the sender and not the views of the Queensland Government.